(i) item one
(ii) item two
(iii) item three
instead of
1. item one
2. item two
3. item three
Couldn't discover how to do it from the LaTeX manual.
Yours in frustration,
--
Andrew Knight
Maritime Operations Division
Defence Science and Technology Organisation
PO Box 1500
Salisbury, SA 5108
Australia
----------------------------------------------------------------------------
,-_|\ e-mail: a...@mod.dsto.gov.au
DSTO / \ phone: 61 8 259 5487
AUSTRALIA \_,-*_/ fax: 61 8 259 5139
v
----------------------------------------------------------------------------
>This should be simple. How do I change the enumerate item labels to be small roman numerals instead of arabic:
> (i) item one
> (ii) item two
> (iii) item three
Define \theenumi to produce roman numbers...
\def\theenumi{\roman{enumi}}
then define the label making command, \labelenumi, to put the parentheses
around it...
\def\labelenumi{(\theenumi)}
The original definitions are in the style file for the appropriate
document style: eg. article.sty has single level enumeration in
arabic numbers, second level in alphabetic characters, third in roman
numerals, and fourth in uppercase alphabetic characters. A set of
nested lists will then look like this....
1. Very first item
2. Second first level item
(a) First second level item
i. First third level item
ii. Second third level item
(b) Second second level item
i. Starts to get confusing
A. And how about this?
B. You get the picture.
Dave.
You want to redefine \labelenumi as in the following example.
Note that the redefinition is local to THAT enumerate environment
only.
\begin{enumerate}
\renewcommand{\labelenumi}{(\roman{enumi})} % <<<<<<<<<<<
\item This is a sample
\item This is another sample
\end{enumerate}
--
---------------
Robert Becker, Secretary, 2-332 Dept. of Mathematics, MIT
Cambridge, MA 02139-4307 (617)253-1797 rob...@math.mit.edu
Andrew> This should be simple. How do I change the enumerate item
Andrew> labels to be small roman numerals instead of arabic:
Andrew> (i) item one
Andrew> (ii) item two
Andrew> (iii) item three
The following two declarations will do this, as long as the enumerate
is not nested. (For a second-level enumerate command, use ...ii
instead of ...i).
\renewcommand{\theenumi}{\roman{enumi}}
\renewcommand{\labelenumi}{(\theenumi)}
Alternatively, you can pick up enumerate.sty and go
\begin{enumerate}[(i)]
...
The optional argument causes these parameters to be set automatically.
David
Robert> You want to redefine \labelenumi as in the following example.
Robert> Note that the redefinition is local to THAT enumerate environment
Robert> only.
Robert> \begin{enumerate}
Robert> \renewcommand{\labelenumi}{(\roman{enumi})} % <<<<<<<<<<<
Robert> \item This is a sample
Robert> \item This is another sample
Robert> \end{enumerate}
You also need to redefine \theenumi if you intend to use \label and
\ref to refer to any of these items. See my previous posting.
David
If you want to use the \label and \ref commands you will need
\def\theenumi{(\roman{enumi})} also. Otherwise any reference will use
arabic numerals.
Here is my definition of an renumerate environment which uses roman numerals
for the first and arabic numerals for the third level and is like enumerate in
the second and fourth level:
\newenvironment{renumerate}{
\def\theenumi{(\roman{enumi})}%
\def\theenumii{(\roman{enumi}.\alph{enumii})}%
\def\theenumiii{(\roman{enumi}.\alph{enumii}.arabic{enumiii})}%
\def\theenumiiiv{(\roman{enumi}.\alph{enumii}.arabic{enumiii}.\Alph{enumiv})}%
\renewcommand{\labelenumi}{(\roman{enumi})}%
\renewcommand{\labelenumiii}{(\arabic{enumiii})}%
\begin{enumerate}}%
{\end{enumerate}}
--
,,,
(o o)
+------------------------oOO--(_)--OOo----------------------+
| Stefan Gerberding Phone: ++49-6151-16-5668 |
| Dept. of Computer Science Fax: ++49-6151-16-5326 |
| Technical University of Darmstadt (THD) |
| Alexanderstra3e 10, R.23/05 |
| 64283 Darmstadt, F.R.Germany |
| e-mail: ste...@inferenzsysteme.informatik.th-darmstadt.de |
\begin{enumerate}[\bf a. ] to get boldface alphabetic "numbers".
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet
Telefax: +31 30 513791 Internet: pi...@cs.ruu.nl (*`Pete')
Piet> enumerate.sty is the easiest way to get all kinds of enumeration style. E.g
Piet> I often use
Piet> \begin{enumerate}[\bf a. ] to get boldface alphabetic "numbers".
Ah! its good to know somebody uses it!
Actually enumerate.sty deals with one other detail that has not so far
been mentioned in this thread.
If you just change \theenumi and \labelenumi then you get the standard
indentation. This is hardcoded in article.sty assuming the default
label types (And Fonts!), eg the following from art10.doc:
\leftmargini 25pt
\leftmarginii 22pt % > \labelsep + width of '(m)'
\leftmarginiii 18.7pt % > \labelsep + width of 'vii.'
\leftmarginiv 17pt % > \labelsep + width of 'M.'
enumerate.sty sets \leftmargin based on the actual width of the label when
the value is 7 (to pick up vii if roman is in use).
David
PS
fancyheadings.sty is the easiest way to get all kinds of page style.