下面的代码无法编译。错误是什么?
\documentclass[english]{article}
\usepackage{enumitem}
\newlist{wideenum}{enumerate}{4}
\setlist[wideenum]{wide}
\begin{document}
\begin{wideenum}
\item abbreviation
\item xxx dfjks fjk kjfds fjkds fjkds fjks jf djks fdjks kjfds kjfsddfjks
fjk kjfds fjkds fjkds fjks jf djks fdjks kjfds kjfsddfjks fjk kjfds
fjkds fjkds fjks jf djks fdjks kjfds kjfsddfjks fjk kjfds fjkds fjkds
fjks jf djks fdjks kjfds kjfsddfjks fjk kjfds fjkds fjkds fjks jf
djks fdjks kjfds kjfsddfjks fjk kjfds fjkds fjkds fjks jf djks fdjks
kjfds kjfsddfjks fjk kjfds fjkds fjkds fjks jf djks fdjks kjfds kjfsd
\end{wideenum}
\end{document}
答案1
错误是“未定义标签”,因此您可以\item[]
按照 Mico 建议提供标签,或者您可以定义一个标签:
\documentclass[english]{article}
\usepackage{enumitem}
\newlist{wideenum}{enumerate}{4}
\setlist[wideenum]{label*=\arabic*.,wide}
\begin{document}
\begin{wideenum}
\item abbreviation
\item dfjks \ldots
\end{wideenum}
\end{document}