我想在枚举中写一段。我的代码如下:
\documentclass[a4paper,11pt]{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[leftmargin=*, listparindent=0.7cm]
\item Example
Example example example example example example example example example
example example example example example example example example example example
example example example example example example example example example example
example example.
\end{enumerate}
\end{document}
我想将段落的对齐设置为 1 所在的相同点,但不结束枚举。我希望它看起来像这样:
任何帮助,将不胜感激。
答案1
\documentclass[a4paper,11pt]{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[
leftmargin=0pt, itemindent=20pt,
labelwidth=15pt, labelsep=5pt, listparindent=0.7cm,
align=left]
\item Example
Example example example example example example example example example
example example example example example example example example example example
example example example example example example example example example example
example example.
Example example example example example example example example example
example example example example example example example example example example
example example example example example example example example example example
example example.
\end{enumerate}
\end{document}
答案2
使用wide=
键更简单。请注意,默认情况下,listparindent
设置为 0pt,因为存在非零值parsep
:
\documentclass[a4paper,11pt]{article}
\usepackage[showframe]{geometry} \usepackage{enumitem}
\begin{document}
\begin{enumerate}[wide=0pt, listparindent=1.25em, parsep=0pt]
\item Example
Example example example example example example example example example
example example example example example example example example example example
example example example example example example example example example example
example example.
\end{enumerate}
\end{document}