https://blog.csdn.net/robert_chen1988/article/details/83179571
調(diào)整 LaTeX 中的列表環(huán)境時(shí),使用 enumitem 宏包可以方便的調(diào)整間距。
調(diào)整間距的參數(shù)命令包括兩類。
文章目錄
1. 垂直間距
2. 水平間距
3. 標(biāo)簽樣式
1. 垂直間距
topsep? ? ? 列表環(huán)境與上文之間的距離
parsep? ? ? 條目里面段落之間的距離
itemsep? ? ? 條目之間的距離
partopsep? ? 條目與下面段落的距離
2. 水平間距
leftmargin? ? ? 列表環(huán)境左邊的空白長(zhǎng)度
rightmargin? ? ? 列表環(huán)境右邊的空白長(zhǎng)度
labelsep? ? ? 標(biāo)號(hào)與列表環(huán)境左側(cè)的距離
itemindent? ? ? 條目的縮進(jìn)距離
labelwidth? ? ? 標(biāo)號(hào)的寬度
listparindent? ? ? 條目下面段落的縮進(jìn)距離
舉例:
\usepackage{enumitem}
This is an example of enumitem spacing.
\begin{itemize}[itemsep= 15 pt,topsep = 20 pt]
? ? \item first item.
? ? contents.
? ? \item second item.
? ? contents.
? ? \item third item.
? ? contents.
\end{itemize}
3. 標(biāo)簽樣式
標(biāo)簽樣式也有很多設(shè)置,例如設(shè)置成小括號(hào)阿拉伯?dāng)?shù)字,用 label=(\arabic*):
\begin{enumerate}[label=(\arabic*)]
? ? \item item1
? ? \item item2
\end{enumerate}
設(shè)置成斜體字母,用 label=\emph{\alph*}:
\begin{enumerate}[label=\emph{\alph*}.]
? ? \item item1
? ? \item item2
\end{enumerate}
大寫(xiě)羅馬字母:
\begin{enumerate}[label=(\Roman*)]
? ? \item item1
? ? \item item2
\end{enumerate}