缩进描述中的多个段落

缩进描述中的多个段落

我试图在描述中放入多个段落,其中正文缩进一个\parindent,并且我想将第二段相\parindent对于正文缩进一个。

期望结果示例

MY ITEM: Here is some text, and it is a paragraph. When it breaks
    to the next line, it is indented.
        This is my second paragraph. Notice how it has a leading indent, which
    is one \parindent relative to the rest of the description text, and a total
    of 2\parindent from the left margin.

这是我目前的结果:

MY ITEM: Here is some text, and it is a paragraph. When it breaks
    to the next line, it is indented.
    This is my second paragraph. This result, however, does not indent
    my second paragraph relative to the body text in the \item.

这是我的代码:

\usepackage{enumitem}
...
\begin{description}[leftmargin=\parindent,topsep=0pt,partopsep=3pt,parsep=0pt,itemsep=3pt]
\item[MY ITEM] Here is some text, and it is a paragraph. When it breaks
    to the next line, it is indented.
    This is my second paragraph. This result, however, does not indent
    my second paragraph relative to the body text in the \item.
\end{description}

答案1

添加listparindent=\parindent到环境的可选参数。

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\begin{description}[leftmargin=\parindent,topsep=0pt,partopsep=3pt,parsep=0pt,itemsep=3pt,
    listparindent=\parindent]
\item[MY ITEM] Here is some text, and it is a paragraph. When it breaks
    to the next line, it is indented.

    This is my second paragraph. This result, however, does not indent
    my second paragraph relative to the body text in the \verb|\item|.
\end{description}

\end{document}

在此处输入图片描述

相关内容