diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html index 2f8db896a4f..5db3b5a6368 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelformat.html @@ -4,32 +4,32 @@ <h3>How to change the format of labels</h3> <p/>By default, when a label is created, it takes on the appearance of the counter labelled, so the label appears as -<code>\</code><code>the</code><code><<i>counter</i>></code> — what would be used if you -asked to typeset the counter in your text. This isn’t always what you +<code>\</code><code>the</code><code><<i>counter</i>></code> — what would be used if you +asked to typeset the counter in your text. This isn’t always what you need: for example, if you have nested enumerated lists with the outer numbered and the inner labelled with letters, one might expect to want -to refer to items in the inner list as “2(c)”. (Remember, you can +to refer to items in the inner list as “2(c)”. (Remember, you can <a href="FAQ-enumerate.html">change the structure of list items</a>.) The change is of course possible by explicit labelling of the parent and using that label to -construct the typeset result — something like +construct the typeset result — something like <blockquote> <pre> \ref{parent-item}(\ref{child-item}) </pre> </blockquote><p> -which would be both tedious and error-prone. What’s more, it would be +which would be both tedious and error-prone. What’s more, it would be undesirable, since you would be constructing a visual representation -which is inflexible (you couldn’t change all the references to elements +which is inflexible (you couldn’t change all the references to elements of a list at one fell swoop). <p/>LaTeX in fact has a label-formatting command built into every label -definition; by default it’s null, but it’s available for the user to -program. For any label <<i>counter</i>> there’s a LaTeX internal +definition; by default it’s null, but it’s available for the user to +program. For any label <<i>counter</i>> there’s a LaTeX internal command <code>\</code><code>p@</code><<i><code>counter</i>></code>; for example, a label definition on an inner list item is supposedly done using the command <code>\</code><code>p@enumii{<code>\</code><code>theenumii</code>}</code>. Unfortunately, the internal -workings of this aren’t quite right, and you need to patch the +workings of this aren’t quite right, and you need to patch the <code>\</code><code>refstepcounter</code> command: <blockquote> @@ -52,7 +52,7 @@ all inner lists by adding the following code in your preamble: </pre> </blockquote><p> This would make the labels for second-level enumerated lists appear as -“1(a)” (and so on). The analogous change works for any counter that +“1(a)” (and so on). The analogous change works for any counter that gets used in a <code>\</code><code>label</code> command. <p/>In fact, the <i>fncylab</i> package does all the above (including the patch to LaTeX itself). With the package, the code above is @@ -68,7 +68,7 @@ package, which is discussed in the answer about <a href="FAQ-enumerate.html">decorating enumeration lists</a>. <dl> <dt><tt><i>enumitem.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/enumitem.zip">macros/latex/contrib/enumitem</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/enumitem/">browse the directory</a>) -<dt><tt><i>fncylab.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/misc/fncylab.sty">macros/latex/contrib/misc/fncylab.sty</a> +<dt><tt><i>fncylab.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fncylab.zip">macros/latex/contrib/fncylab</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fncylab/">browse the directory</a>) </dl> <p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=labelformat">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=labelformat</a> </body> |