1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<head>
<title>UK TeX FAQ -- question label enumerate</title>
</head><body>
<h3>Fancy enumeration lists</h3>
<p>The <i>enumerate</i> package allows you to control the display of
the enumeration counter. The package adds an optional parameter to
the <code>enumerate</code> environment, which is used to specify the
layout of the labels. The layout parameter contains an enumeration
type ('<code>1</code>' for arabic numerals, '<code>a</code>' or '<code>A</code>'
for alphabetic enumeration, and '<code>i</code>' or '<code>I</code>' for Roman
numberals), and things to act as decoration of the enumeration. So,
for example
<blockquote>
<pre>
\usepackage{enumerate}
...
\begin{enumerate}[(a)]
\item ... ...
\end{enumerate}
</pre>
</blockquote>
starts a list whose labels run (a), (b), (c), ...; while
<blockquote>
<pre>
\usepackage{enumerate}
...
\begin{enumerate}[I/]
\item ... ...
\end{enumerate}
</pre>
</blockquote>
starts a list whose labels run I/, II/, III/, ...
<p>The <i>paralist</i> package, whose primary purpose is
<a href="FAQ-complist.html">compaction of lists</a>, provides the same facilities
for its <code>enumerate</code>-like environments.
<p>If you need non-stereotyped designs, the <i>enumitem</i> package
gives you most of the flexibility you might want to design your own.
The silly roman example above could be achieved by:
<blockquote>
<pre>
\usepackage{enumitem}
...
\begin{enumerate}[label=\Roman{*}/]
\item ... ...
\end{enumerate}
</pre>
</blockquote>
Note that the '<code>*</code>' in the key value stands for the list
counter at this level. You can also manipulate the format of
references to list item labels:
<blockquote>
<pre>
\usepackage{enumitem}
...
\begin{enumerate}[label=\Roman{*}/, ref=(\roman{*})]
\item ... ...
\end{enumerate}
</pre>
</blockquote>
to make references to the list items format appear as (i), (ii),
(iii), etc.
<p>The <i>memoir</i> class includes functions that match those in the
<i>enumerate</i> package, and has similar functionality for
<code>itemize</code> lists.
<dl>
<dt><tt><i>enumerate.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse</a>)
<dt><tt><i>enumitem.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/enumitem.zip">macros/latex/contrib/enumitem</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/enumitem.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/enumitem/">browse</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>)
<dt><tt><i>paralist.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/paralist.zip">macros/latex/contrib/paralist</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/paralist.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/paralist/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=enumerate">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=enumerate</a>
</body>
|