我在用着:
\begin{enumerate}[wide, labelwidth=!, labelindent=0pt]
\item
\end{enumerate}
我如何更改项目的样式?例如其他类型的枚举、粗体数字等?
答案1
使用包enumitem
(文档这里)。
\documentclass[11pt]{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\emph{\alph*}] %Your options go in the label= tag
\item I'm first
\item I'm second
\begin{enumerate}[label=\textbf{\Roman*}]
\item Now I'm first.
\item And I'm second.
\end{enumerate}
\item But I'm the only third.
\end{enumerate}
\end{document}
编辑:
您还可以像这样更改单个标签:
\begin{enumerate}[label=\alph*.]
\item I'm first.
\item I'm second.
\item[\refstepcounter{enumi}\textbf{\alph{enumi}.}] I'm different.
\end{enumerate}
答案2
那么如何使用包枚举呢:
\documentclass{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}[a] %%give the sample model here
\item first item with lowercase alphabet
\begin{enumerate}[i] %%for lower case roman
\item first item with lower case roman numbering
\item second item with lower case roman numbering
\end{enumerate}
\item first item with lowercase alphabet
\end{enumerate}
\begin{enumerate}[7.1] %% for decimal numbered items starting from 7.1
\item numbered first item
\item numbered second item
\end{enumerate}
\end{document}
您还可以在可选括号中添加句点、括号、\bf、\it、\sf、\sc 等!