\stepcounter{name}
| \stepcounter | |
| Art: | Befehl |
| Modus: | Text und Mathe |
| Ort: | Präambel |
| Abhängigkeiten: | keine |
Beschreibung
Erhöht den Wert des Zählers name um eins. Wird in Definitionen verwendet, und wird im Dokument selbst nur in Ausnahmefällen eingesetzt. Sind andere Zähler mit name assoziiert, werden sie dabei auf 0 gesetzt.
Beispiel
\documentclass{article}
\newcounter{foo}
\begin{document}
\thefoo % schreibt `0'
\stepcounter{foo}
\thefoo % schreibt `1'
\end{document}
Siehe auch
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.