# \newcounter¶

Command in package counter.

## Synopsis¶

\newcounter{counter}[resetter]


## Description¶

Defines a new counter with name counter. Its initial value is 0. If resetter is set, it must be the name of
another counter. Each time resetter is incremented by \stepcounter, counter is reset to 0.

## Example 1¶

Definition of a new counter "foo" with no resetter

\newcounter{foo}


h2. Example 2

Definition of a new counter "bar" with "foo" as resetter

\newcounter{bar}[foo]

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)