head 1.1;
access;
symbols;
locks
mys:1.1; strict;
comment @# @;
1.1
date 99.11.22.23.41.12; author mys; state Exp;
branches;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@############################################################
Counters
############################################################
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.
\addtocounter: Add a quantity to a counter.
\alph: Print value of a counter using letters.
\arabic: Print value of a counter using numerals.
\fnsymbol: Print value of a counter using symbols.
\newcounter: Define a new counter.
\refstepcounter: Add to counter, resetting subsidiary counters.
\roman: Print value of a counter using roman numerals.
\setcounter: Set the value of a counter.
\stepcounter: Add to counter, resetting subsidiary counters.
\usecounter: Use a specified counter in a list environment.
\value: Use the value of a counter in an expression.
############################################################
\addtocounter ::addtocounter::
############################################################
\addtocounter{counter}{value}
The \addtocounter command increments the counter by the
amount specified by the value argument. The value argument
can be negative.
############################################################
\alph ::alph::
############################################################
\alph{counter}
This command causes the value of the counter to be printed
in alphabetic characters. The \alph command uses lower case
alphabetic alphabetic characters, i.e., a, b, c... while the
\Alph command uses upper case alphabetic characters,
i.e., A, B, C....
############################################################
\arabic ::arabic::
############################################################
\arabic{counter}
The \arabic command causes the value of the counter to be
printed in Arabic numbers, i.e., 3.
############################################################
\fnsymbol ::fnsymbol::
############################################################
\fnsymbol{counter}
The \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. eg. From 1-9:
NB. counter must have a value between 1 and 9 inclusive.
############################################################
\newcounter ::newcounter::
############################################################
\newcounter{foo}[counter]
The \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 ::refstepcounter::
############################################################
\refstepcounter{counter}
The \refstepcounter command works like \stepcounter See
section \stepcounter, except it also defines the current
\ref value to be the result of \thecounter.
############################################################
\roman ::roman
############################################################
\roman{counter}
This command causes the value of the counter to be printed
in Roman numerals. The \roman command uses lower case Roman
numerals, i.e., i, ii, iii..., while the \Roman command uses
upper case Roman numerals, i.e., I, II, III....
############################################################
\stepcounter ::stepcounter::
############################################################
\stepcounter{counter}
The \stepcounter command adds one to the counter and resets
all subsidiary counters.
############################################################
\setcounter ::setcounter::
############################################################
\setcounter{counter}{value}
The \setcounter command sets the value of the counter to that
specified by the value argument.
############################################################
\usecounter ::usecounter::
############################################################
\usecounter{counter}
The \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 ::value::
############################################################
\value{counter}
The \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.
@