Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

package enumitem: Undefined control sequence.

3,895 views
Skip to first unread message

Pedro Carneiro

unread,
Jul 13, 2011, 9:47:40 AM7/13/11
to
Hi all,

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

GL

unread,
Jul 13, 2011, 9:59:07 AM7/13/11
to
Le 13/07/2011 15:47, Pedro Carneiro a écrit :
> Hi all,
>
> 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."

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.

Ulrike Fischer

unread,
Jul 13, 2011, 10:09:51 AM7/13/11
to
Am Wed, 13 Jul 2011 14:47:40 +0100 schrieb Pedro Carneiro:

> 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

Pedro Carneiro

unread,
Jul 13, 2011, 10:14:34 AM7/13/11
to

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

Pedro Carneiro

unread,
Jul 13, 2011, 10:20:14 AM7/13/11
to

Thank you!

Javier Bezos

unread,
Jul 13, 2011, 12:25:15 PM7/13/11
to
El 13/07/2011 16:09, Ulrike Fischer escribió:

> 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

0 new messages