在 itemize 内设置文本缩进

在 itemize 内设置文本缩进

在我的 LaTeX 文件中我编写了如下代码:

\begin{itemize}
\item Item NO 1
\\paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
paragraph no1 paragraph no1 paragraph no1 
\item Item NO 2
\\paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 
\item Item NO 3
\\paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 
\end{itemize}

输出如下

  • 商品编号 1

    段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1

  • 第 2 项

    段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2

  • 商品编号 3

    段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3

但我想要的是这样的

  • 商品编号 1

段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1 段落编号1

  • 第 2 项

段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2 段落编号2

  • 商品编号 3

段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3 段落编号3

我如何实现这个目标?

答案1

使用enumitem包裹将项目标签向内推,同时将左边距固定在0pt

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{itemize}
\item Item NO 1
    \\paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
    paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
    paragraph no1 paragraph no1 paragraph no1 
    \item Item NO 2
    \\paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2
    paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2
    paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2 
    \item Item NO 3
    \\paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3
    paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3
    paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 
\end{itemize}

\begin{itemize}[itemindent=2em,leftmargin=0pt]
    \item Item NO 1

    paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
    paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 
    paragraph no1 paragraph no1 paragraph no1 

    \item Item NO 2

    paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2
    paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2
    paragraph no2 paragraph no2 paragraph no2 paragraph no2 paragraph no2

    \item Item NO 3

    paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3
    paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3
    paragraph no3 paragraph no3 paragraph no3 paragraph no3 paragraph no3 
\end{itemize}

\end{document}

\item请注意上面后面的空行itemize(而不是使用\\)。

为了视觉清晰,我添加了一个框架(使用showframe)。

答案2

这不是最漂亮的解决方案,但它会强制它做你想做的事情:

\begin{itemize}
\item Item NO 1 \\
\mbox{}\hspace{-10pt}\parbox{\linewidth}{paragraph no1 paragraph no1 paragraph no1 paragraph no1 paragraph no1 

\end{itemize}

相关内容