Next: , Previous: \newcommand & \renewcommand, Up: Definitions


12.2 \newcounter

Synopsis:

     \newcounter{cnt}[countername]

The \newcounter command defines a new counter named cnt. The new counter is initialized to zero.

Given the optional argument [countername], cnt will be reset whenever countername is incremented.

See Counters, for more information about counters.