如何制作如下列表:
1. this is my first paragraph in first \item.
nextline, same paragraph
this is my second paragraph in first \item.
nextline, same paragraph
2. this is my first paragraph in second \item.
nextline, same paragraph
我目前的结果是:
1. this is my first paragraph in first \item.
nextline, same paragraph
this is my second paragraph in first \item.
nextline, same paragraph
2. this is my first paragraph in second \item.
nextline, same paragraph
我尝试过使用\begin{enumerate}[leftmargin=*]
但它只改变了我的列表中的第一个段落。
谢谢你的帮助
答案1
您可以在环境\noindent
中第二段的开头使用enumerate
。以下是获取所需内容的最少代码:
\documentclass{article}
\begin{document}
\begin{enumerate}
\item
this is my first paragraph in first \\item.
nextline, same paragraph
\noindent
this is my second paragraph in first \\item.
nextline, same paragraph
\item
this is my first paragraph in second \\item.
nextline, same paragraph
\noindent
this is my second paragraph in second \\item.
nextline, same paragraph
\end{enumerate}
\end{document}
如果要全局删除首行缩进,可以使用
\setlength{\parindent}{0pt}
在您的文档的序言中。