我想在枚舉中寫一個段落。我的程式碼是這樣的:
\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}