; TeX output 1998.01.17:2004y?DtGGcmr17The7tGGcmss17enumeratepacqkage!", cmsy10XQ cmr12DarvidCarlislepScarlisle@cs.man.ac.uk&37 1994/01/31.!Kt : cmbx9Abstractэxo cmr9Thispac9k|ragegivestheenumerateenvironmentanoptionalargument kwhic9hTdeterminesthestyleinwhichthecounterisprinted.xAn^oAccurenceofoneofthetok9ensߤN cmtt9AaIi^or1producesthev|raluekofwthecoun9terprintedwith(respAectively)\Alph\alph\Roman\romanwork\arabic.xTheselettersma9ybAesurroundedbyanystringsinvolvinganyotherTuAEXkexpressions,1ho9weverEthetok9ensAaIi1EmustbAeinsidea{}groupifktheyTarenottobAetak9enasspecial.!čRNff cmbx121jLExamples x ꪍ[UK`y cmr10EXUUi.woneoneoneoneoneoneone woneUUoneoneoneoneXEXUUii.wtwowexampleUUa)one[oftwo[oneof{twooneoftwovOexampleUUb)twoUUoftwoSGA-1honeSGA-2htwo  \begin{enumerate}[EXi.] \itemoneoneoneoneoneoneone,oneoneoneone\label{LA} \itemtwo\begin{enumerate}[{example}a)]\itemoneoftwo s,oneoftwo:?]oneoftwo\label{LB}\itemtwooftwo\end{enumerate}\itemtwooftwo\end{enumerate} \end{enumerate} \begin{enumerate}[{A}-1] \itemone\label{LC} \itemtwo \end{enumerate}Rnfffr @ -:q% cmsy6L|{Ycmr8ThisX lehasvÎersionnumb3\@toodeep\elseR27y2\advance\@enumdepth\@neR28y2\edef\@enumctr{enum\romannumeral\the\@enumdepth}\fiR29f\@ifnextchar[{\@@enum@}{\@enum@}}"y\@@enum@RHandleUUtheoptionalargument..R30\\def\@@enum@[#1]{%RInitialisetheloGopwhichwillbreakaparttheoptionalargument.@Thecommandto RprintthelabGelisbuiltupin\@enlab.WG\@enThewillbeusedtode ne\theenum b> cmmi10n.R31f\@enLab{}\let\@enThe\@enQmarkRThe܏\@enum@bGelowisneverexpanded,]itisusedtodetecttheendofthetoken Rlist.R32f\@enloop#1\@enum@RIssueUUawarningifwedidnot ndoneofthe`spGecial'tokens.R33f\ifx\@enThe\@enQmark\@warning{Thecounterwillnotbeprinted.% R34jp^^J\space\@spaces\@spaces\@spacesThelabelis:\the\@enLab}\fiRDe neUU\labelenumnand\theenumn.R35f\expandafter\edef\csnamelabel\@enumctr\endcsname{\the\@enLab}% R36f\expandafter\let\csnamethe\@enumctr\endcsname\@enTheRSet#thecounterto7sothatwegetthewidthof`vii'ifromannumbGeringisin RforceUUthenset\leftmarginn.qtothewidthofthelabGelplus\labelsep.R37f\csnamec@\@enumctr\endcsname7 R38f\expandafter\settowidthR39]\csnameleftmargin\romannumeral\@enumdepth\endcsnameR40]{\the\@enLab\hspace{\labelsep}}%3dy?RFinallyUUcall\@enum@whichisthesecondhalfoftheoriginalde nition.R41f\@enum@}'3P\@enum@RAllthelistparametershavenowbGeende ned,socall\list.2Thisistakenstraight RfromUUtheoriginalde nitionof\enumerate.R42\\def\@enum@{\list{\csnamelabel\@enumctr\endcsname}% R43 {\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}}}R44\h!5" cmmi9=pack9age#g i4;y&"V cmbx10#ow cmss9" cmsy9!5" cmmi9 cmmi10K`y cmr10ٓRcmr7!