\stepcounter

Command in package counter.

Synopsis

\stepcounter{counter}

Description

Increases the value of counter by 1. Thereby, all counters which have counter as their "resetter"
are set to 0

Example

\newcounter{foo}\setcounter{foo}{2}
\newcounter{bar}[foo]\setcounter{bar}{4}

foo = \value{foo}, bar = \value{bar}

\stepcounter{foo}

After the stepcounter call: 

foo = \value{foo}, bar = \value{bar}

Result, as rendered by your browser

foo = 2, bar = 4

After the stepcounter call:

foo = 3, bar = 0


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

Add picture from clipboard (Maximum size: 500 MB)