____________
Everything LaTeX numbers for you has a counter associated with it. The
name of the counter is the same as the name of the environment or
command that produces the number, except with no \
. (enumi - enumiv
are used for the nested enumerate environment.) Below is a list of the
counters used in LaTeX's standard document classes to control numbering.
part paragraph figure enumi chapter subparagraph table enumii section page footnote enumiii subsection equation mpfootnote enumiv subsubsection
\addtocounter{counter}{value}
\addtocounter
command increments the counter
by the amount
specified by the value
argument. The value
argument can be
negative.
\alph{counter}
\Alph{counter}
\alph
command causes lower case alphabetic
alphabetic characters, i.e., a, b, c...
while the \Alph
command
causes upper case alphabetic characters, i.e., A, B, C...
.
\arabic{counter}
\arabic
command causes the value of the counter to be printed in
arabic numbers, i.e., 3
.
\fnsymbol{counter}
\fnsymbol
command causes the value of the counter to be printed
in a specific sequence of nine symbols that can be used for numbering
footnotes.
Note: counter must have a value between 1 and 9 inclusive.
\newcounter{foo}[counter]
\newcounter
command defines a new counter named `foo'. The
counter is initialized to zero.
The optional argument [counter] causes the counter
foo
to be reset whenever the counter named in
the optional argument is incremented.
\refstepcounter{counter}
\refstepcounter
command works like
\stepcounter
except it also defines the current \ref
value to be the result of \thecounter
.
\roman{counter}
\Roman{counter}
\roman
command causes lower case roman numerals, i.e.,
i, ii, iii...
, while the \Roman
command causes upper case roman
numerals, i.e., I, II, III...
.
\stepcounter{counter}
\stepcounter
command adds one
to the counter and resets all subsidiary counters.
\setcounter{counter}{value}
\setcounter
command sets the value of the counter to that
specified by the value argument.
\usecounter{counter}
\usecounter
command is used in the second argument
of the list
environment to allow the counter specified to be used to number the list
items.
\value{counter}
\value
command produces the value of the counter named in the
mandatory argument. It can be used where LaTeX expects an integer or
number, such as the second argument of a
\setcounter
or
\addtocounter
command, or in:
\hspace{\value{foo}\parindent}It is useful for doing arithmetic with counters.