Next: \stepcounter, Previous: \addtocounter, Up: Counters
\refstepcounter{
}
The \refstepcounter command works in the same way as \stepcounter See \stepcounter, except it also defines the current \ref value to be the result of \thecounter.
\refstepcounter
\stepcounter
\ref
\thecounter