TeX/count

From Wikibooks, open books for an open world
< TeX
Jump to: navigation, search

Synopsis[edit]

\count<number>=<integer>

Description[edit]

<number> is an integer from 0 to 255. For each <number>, \count<number> is a register that can hold an integer value. A \count register can be set to <integer> with the above form.

Various arithmetic operations can be performed on the \count registers; see \advance, \multiply, and \divide.

Examples[edit]

Uses of the \count registers include keep track of section and equation numbering.