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
|
<html>
<head><title>\label</title></head>
<body>
<h1>\label</h1>
<P>
</P>
<P>
<CODE>\label{key}</CODE>
</P>
<P>
A <CODE>\label</CODE> command appearing in ordinary text assigns to the
<CODE>key</CODE> the number of the current sectional unit; one appearing
inside a numbered environment assigns that number to the <CODE>key</CODE>.
</P>
<P>
A <CODE>key</CODE> can consist of any sequence of letters, digits, or
punctuation characters. Upper and lowercase letters are different.
</P>
<P>
To avoid accidentally creating two labels with the same name, it is
common to use labels consisting of a prefix and a suffix separated by a
colon. The prefixes conventionally used are
</P>
<UL>
<LI>
<CODE>cha</CODE>
for chapters
<LI>
<CODE>sec</CODE>
for lower-level sectioning commands
<LI>
<CODE>fig</CODE>
for figures
<LI>
<CODE>tab</CODE>
for tables
<LI>
<CODE>eq</CODE>
for equations
</UL>
<P>
Thus, a label for a figure would look like <CODE>fig:bandersnatch</CODE>.
</P>
<p>--><a href="index.html">LaTeX index</a>
</body>
</html>
|