W3cubDocs

/LaTeX

\refstepcounter

Synopsis:

\refstepcounter{counter}

Globally increments the value of counter by one, as does \stepcounter (see \stepcounter). The difference is that this command resets the value of any counter numbered within it. (For the definition of “counters numbered within”, see \newcounter.)

In addition, this command also defines the current \ref value to be the result of \thecounter.

While the counter value is set globally, the \ref value is set locally, i.e., inside the current group.

© 2007–2018 Karl Berry
Public Domain Software
http://latexref.xyz/_005crefstepcounter.html