[Tugindia] Numbering in enumerate

Kapil Hari Paranjape tugindia@tug.org
Tue, 1 Oct 2002 09:06:15 +0530


Hello,

Manoj Kummini <kummini@yahoo.com> wrote:
>  --- "E. Krishnan" <ekmath@md5.vsnl.net.in> wrote: 
> 
> > > In enumerate environment I would like to get 
> > > (a) (b) (c) .... instead of 1. 2. 3. ....
> > 
> > I think the best solution is the one suggested by David Kastrup of
> > using 
> > the "enumerate" package and the {(a)] option. The 
> 
> Does this redefine the p@enumii variable? I did not see the
> parenthesis appear while referring to these items. For that to
> happen, doesn't one have to redefine \theenumi ?
> 
> Manoj.

As I understand it one "correct" solution is to use something like:

\begin{enumerate}
\renewcommand{\theenumi}{\alpha{enumi}}
\renewcommand{\labelenumi}{(\theenumi)}
\item Test it once.
\item Test it twice.
\item If it works.
\item Then its alright.
\end{enumerate}

However, this will only work at enumeration depth one (and only for
article.sty). To make changes at all levels you must redefine the
other enum labels. The relevant definitions from article.cls are
essentially:

\renewcommand\theenumi{\arabic{enumi}}
\renewcommand\theenumii{\alph{enumii}}
\renewcommand\theenumiii{\roman{enumiii}}
\renewcommand\theenumiv{\Alph{enumiv}}
\renewcommand\labelenumi{\theenumi.}
\renewcommand\labelenumii{(\theenumii)}
\renewcommand\labelenumiii{\theenumiii.}
\renewcommand\labelenumiv{\theenumiv.}

So you can change these as per your pleasure!

Kapil.