summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-enumerate.html
blob: d6a2196f96f346bab6874f8ca9299041c4d1db29 (plain)
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 (&lsquo;<code>1</code>&rsquo; for arabic numerals, &lsquo;<code>a</code>&rsquo; or &lsquo;<code>A</code>&rsquo;
for alphabetic enumeration, and &lsquo;<code>i</code>&rsquo; or &lsquo;<code>I</code>&rsquo; for Roman
numerals), and things to act as decoration of the enumeration.  So,
for example
<blockquote>
<pre>
\usepackage{enumerate}
...
\begin{enumerate}[(a)]
\item ...  ...
\end{enumerate}
</pre>
</blockquote><p>
starts a list whose labels run (a), (b), (c), ...; while
<blockquote>
<pre>
\usepackage{enumerate}
...
\begin{enumerate}[I/]
\item ...  ...
\end{enumerate}
</pre>
</blockquote><p>
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><p>
Note that the &lsquo;<code>*</code>&rsquo; 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><p>
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="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/required/tools/">browse the directory</a>)
<dt><tt><i>enumitem.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/enumitem.zip">macros/latex/contrib/enumitem</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/enumitem/">browse the directory</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
<dt><tt><i>paralist.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/paralist.zip">macros/latex/contrib/paralist</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/paralist/">browse the directory</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>