When I compile this
\listfiles
\documentclass{article}
\usepackage{enumitem}
%\setlist[enumerate]{leftmargin=*} % run fine
\setlist[itemize]{leftmargin=*} % produces "! Undefined control sequence."
%\setlist[description]{leftmargin=*} % produces "! Undefined control
sequence."
\begin{document}
\begin{enumerate}
\item enumerate
\end{enumerate}
\begin{itemize}
\item itemize
\end{itemize}
\begin{description}
\item[first] description
\end{description}
\end{document}
I get
! Undefined control sequence.
<argument> enit@cw@\@enumctr
l.14 \item
itemize
! Undefined control sequence.
<argument> enit@cv@\@enumctr
l.14 \item
itemize
("D:\MiKTeX 2.9\tex\latex\base\omscmr.fd") [1] (d:\file.aux)
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
enumitem.sty 2011/07/09 v3.2 Customized lists
omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
***********
Any help would be appreciated.
Pedro Carneiro
It a question of interface: no enumitem environment named "itemize"
has been defined with \newlist.
To modify the {itemize} environment, one should use \setitemize.
But may be J Bezos could provide \setlist[itemize] as an alias for
\setitemize...
Regards.
> Hi all,
>
> When I compile this
> I get
> ! Undefined control sequence.
> <argument> enit@cw@\@enumctr
That's a bug in enumitem. It uses
\@ifundefined{enit@cw@\@enumctr}{...}{...}
which gives an error if \@enumctr is not defined.
I have already reported the bug.
Try
\makeatletter
\providecommand\@enumctr{}
\makeatother
until enumitem is updated.
--
Ulrike Fischer
But
\documentclass{article}
\usepackage{enumitem}
\setlist[description]{labelindent=\parindent} % works fine
%\setlist[description]{leftmargin=*} % produces "! Undefined control
sequence."
\begin{document}
\begin{itemize}
\item itemize
\end{itemize}
\end{document}
Thanks
Pedro Carneiro
Thank you!
> That's a bug in enumitem. It uses
>
> \@ifundefined{enit@cw@\@enumctr}{...}{...}
>
> which gives an error if \@enumctr is not defined.
>
> I have already reported the bug.
And I'll send to CTAN a fix in a couple of days.
Thanks.
Javier