Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!daimi!kaja From: kaja@daimi.aau.dk (Kaja P. Christiansen) Newsgroups: comp.text.tex Subject: Re: Latex question about renewcommand Keywords: latex, renewcommand, enumerate counters Message-ID: <1991Jan24.140754.622@daimi.aau.dk> Date: 24 Jan 91 14:07:54 GMT References: <11383@ucrmath.ucr.edu> Sender: kaja@daimi.aau.dk (Kaja P. Christiansen) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 30 neg@aaron.ucr.edu (neil gretsky) writes: >... >\renewcommand{\theenumi}{\roman{enumi}} >\begin{theorem} Let ... >\begin{enumerate} >\item\label{addup} ... >\item\label{single} ... >... >\end{enumerate} >\end{theorem} >... >As part \ref{single} of the theorem ... >*The problem: the counter values print as arabic in the >statement of the theorem and as roman in the ref's following >the theorem; e.g. single prints as "2" in the statement of the theorem >and as "ii" in the ref in the following paragraph. Labels in the enumerate environment are controlled by \labelenumi, so adding a line: \renewcommand{\labelenumi}{\theenumi} or \renewcommand{\labelenumi}{\roman{enumi}} should solve the problem. -- Kaja P. Christiansen Computer Science Department (kpchristiansen@daimi.aau.dk) Aarhus University Phone: +45 86 12 71 88 Ny Munkegade 116, Fax: +45 86 13 57 25 DK-8000 Aarhus C., Denmark