diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelctr.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelctr.html | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelctr.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelctr.html deleted file mode 100644 index 7ca320c4793..00000000000 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-labelctr.html +++ /dev/null @@ -1,21 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label labelctr</title> -</head><body> -<h3>Making labels from a counter</h3> -<p/>Suppose we have a LaTeX counter, which we’ve defined with -<code>\</code><code>newcounter{foo}</code>. We can increment the value of the counter -by <code>\</code><code>addtocounter{foo}{1}</code>, but that’s pretty clunky for an -operation that happens so often … so there’s a command -<code>\</code><code>stepcounter{foo}</code> that does this special case of -increasing-by-one. -<p/>There’s an internal LaTeX variable, the “current label”, that -remembers the last ‘labellable’ thing that LaTeX has processed. -You could (if you were to insist) set that value by the relevant -TeX command (having taken the necessary precautions to ensure that -the internal command worked) — but it’s not necessary. If, instead -of either of the stepping methods above, you say -<code>\</code><code>refstepcounter{foo}</code>, the internal variable is set to the -new value, and (until something else comes along), <code>\</code><code>label</code> will -refer to the counter. -<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=labelctr">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=labelctr</a> -</body> |