TeX/count

From Wikibooks, the open-content textbooks collection

< TeX
Jump to: navigation, search

[edit] Synopsis

\count<number>=<integer>

[edit] Description

<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.

[edit] Examples

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