对于以下代码:
\begin{enumerate}
\item this is the first item;
\item second item.
\end{enumerate}
希望把\item的样式改为(1)(2),但是使用如下代码定制样式后:
\begin{enumerate}[(1)]
\item this is the first item;
\item second item.
\end{enumerate}
使用XeLaTeX编译报错:
Latex Error: ./tex/chapter02.tex:37 Package enumitem Error: (1) undefined.
参考 enumitem 文档,(1) 这样的列表样式应该这样实现:
\begin{enumerate}[label=(\arabic*)]
\item this is the first item;
\item second item.
\end{enumerate}
Most helpful comment
参考 enumitem 文档,(1) 这样的列表样式应该这样实现: