On 2011-03-18, Modi, Sankalp S wrote:

> When I try to use enumitem module with document class article(IEEEtrans) th=
> e compiler shows error
> --------------------------------------------------------------------
> LaTeX Error: Command \labelindent already defined.

Unfortunately, both the IEEEtran.cls document class and the
enumitem.sty package define the macro \labelindent.

> Any help to avoid this conflict will be appreciated .. I would really like =
> to use advance enumeration features of enumitem package. ( I do not know mu=
> ch about Latex , I have simply migrated Microsoft Word to lyx.)


As IEEEtran.cls provides its own means to format lists, it might be
better to read its documentation and template and use these methods
instead of the enumitem module. Or, if using IEEEtran is not necessary,
to switch to another documentclass.


As IEEEtran.cls actually defines the \labelindent only for backwards
compatibility reasons::

  % provide for legacy IED commands/lengths when possible
  \let\labelindent\IEEElabelindent

the macro can be re-used without side-effects.

Exporting to LaTeX, inserting the line::

  \let\labelindent\relax

before the call to enumitem (\usepackage{enumitem})
and running latex "by hand" works around the name clash.

Unfortunately, it's not easy to insert the line at the required place
from within LyX.

Günter

Reply via email to