在使用enumitem时,我遇到了以下问题
\begin{itemize}[leftmargin = *,listparindent =1cm]
\item A.\\ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
\end{itemize}
但是段落第一行“aaaa...”没有缩进。我已经看到过几次了listparindent = \parindent
,但在我的文档中我有\setlength{\parindent}{0cm}
。
答案1
\\
不会结束段落,只会中断行。请插入空白行或使用\par
:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{itemize}[leftmargin = *,listparindent =1cm]
\item A.\\
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaa aaaaaaa
aaaaaa a aaaaaaaaa aaaaaaaa aaa aaaaaaaaa aaa aa a aaaaaaaa
aaaaaaaaa aa aaaaaa aaaaaaaa aaaaaaaa a aaaaaaa aaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaa.
\item B.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaa aaaaaaa
aaaaaa a aaaaaaaaa aaaaaaaa aaa aaaaaaaaa aaa aa a aaaaaaaa
aaaaaaaaa aa aaaaaa aaaaaaaa aaaaaaaa a aaaaaaa aaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaa.
\end{document}