diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-the-commands.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-the-commands.html | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-the-commands.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-the-commands.html deleted file mode 100644 index b7180d7fc5c..00000000000 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-the-commands.html +++ /dev/null @@ -1,36 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label the-commands</title> -</head><body> -<h3>Redefining counters’ <code>\</code><code>the-</code>commands</h3> -<p/>Whenever you request a new LaTeX counter, LaTeX creates a bunch -of behind-the-scenes commands, as well as defining the counter -itself. -<p/>Among other things, <code>\</code><code>newcounter{</code><em>fred</em><code>}</code> creates a command -<code>\</code><code>the</code><code><em>fred</em></code>, which expands to “the value of -<code><em>fred</em></code>” when you’re typesetting. -<p/>The definition of <code>\</code><code>the</code><code><em>fred</em></code> should express the -value of the counter: it is almost always always a mistake to use the -command to produce anything else. The value may reasonably be -expressed as an arabic, a roman or a greek number, as an alphabetic -expression, or even as a sequence (or pattern of) symbols. If you -need a decision process on whether to re-define -<code>\</code><code>the</code><code><em>fred</em></code>, consider what might happen when you do -so. -<p/>So, for example, if you want your section numbers to be terminated by -a period, you could make <code>\</code><code>thesection</code> expand with a terminating -period. However, such a change to <code>\</code><code>thesection</code> makes the -definition of <code>\</code><code>thesubsection</code> look distinctly odd: you are going to -find yourself redefining things left, right and centre. Rather, use -the standard techniques for -<a href="FAQ-seccntfmt.html">adjusting the presentation of section numbers</a>. -<p/>Or, suppose you want the page number to appear at the bottom of each -page surrounded by dashes (as in -“<code>-</code><code>-~</code><code>nnn~-</code><code>-</code>”). -If you try to achieve this by redefining <code>\</code><code>thepage</code>, problems will -arise from the use of the page number in the table of contents (each -number will have the dashes attached), and <code>\</code><code>pageref</code> references -will be oddly modified. In this case, the change of appearance is -best done by redefining the page style itself, perhaps using -<a href="FAQ-fancyhdr.html">package <i>fancyhdr</i></a>. -<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=the-commands">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=the-commands</a> -</body> |