[latexrefman-commits] r479 - in /trunk: ChangeLog latex2e.texi

jhefferon at domain.hid jhefferon at domain.hid
Sat Nov 28 12:23:55 CET 2015


Author: jhefferon
Date: Sat Nov 28 12:23:55 2015
New Revision: 479

URL: http://svn.gna.org/viewcvs/latexrefman?rev=479&view=rev
Log:
Counters

Modified:
    trunk/ChangeLog
    trunk/latex2e.texi

Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=479&r1=478&r2=479&view=diff
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Nov 28 12:23:55 2015
@@ -1,3 +1,8 @@
+2015-11-28  Jim Hefferon  <jhefferon at domain.hid>
+
+	* latex2e.texi (Counters)  Add variable `counter' to description
+	of the counter-formatting commands.  (From latex.texinfo.)
+
 2015-11-27  Jim Hefferon  <jhefferon at domain.hid>
 
 	* latex2e.texi (\makeatletter and \makeatother)  Adjust wording.

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=479&r1=478&r2=479&view=diff
==============================================================================
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Sat Nov 28 12:23:55 2015
@@ -549,12 +549,14 @@
 
 The alteration is needed because many of @LaTeX{}'s commands use
 @code{@@} in their name, to prevent users from accidentally defining a
-command that replaces one of @LaTeX{}'s own.  Command names can only
-consist of a category at domain.hid character, ordinarily backslash, followed
-by at least one category at domain.hid character.  So under the default
-category codes, user-defined commands cannot contain an @code{@@}.  But
- at domain.hid} and @code{\makeatother} allow users to define or
-redefine commands named with @code{@@}.
+command that replaces one of @LaTeX{}'s own.  Command names consist of a
+category at domain.hid character, ordinarily backslash, followed by letters,
+category at domain.hid characters (except that a command name can consist of a
+single category at domain.hid character followed by a single non-letter
+symbol).  So under the default category codes, user-defined commands
+cannot contain an @code{@@}.  But @code{\makeatletter} and
+ at code{\makeatother} allow users to define or redefine commands named
+with @code{@@}.
 
 Use these inside a @file{.tex} file, in the preamble.  Don't use them
 inside @file{.sty} or @file{.cls} files since the @code{\documentclass}
@@ -5348,7 +5350,7 @@
 @noindent with the optional argument after the second required argument,
 creates an environment whose counter is subordinate to the existing
 counter @var{numbered_within}: it will be reset when
- at domain.hid} is reset.
+ at var{numbered_within} is reset).
 
 Using the second form,
 
@@ -5502,7 +5504,7 @@
 
 @example
 \newfont at domain.hid at 11pt@}
-\newfont at domain.hid scaled 1100@}
+\newfont at domain.hid scaled 11pt@}
 \testfontat abc
 \testfontscaled abc
 @end example
@@ -5576,11 +5578,13 @@
 
 Everything @LaTeX{} numbers for you has a counter associated with
 it. The name of the counter is often the same as the name of the
-environment or command associated with the number, except with no
-backslash (@code{\}).  Thus the @code{\chapter} command starts a
-chapter and the @code{chapter} counter keeps track of the chapter
-number.  Below is a list of the counters used in @LaTeX{}'s standard
-document classes to control numbering.
+environment or command associated with the number, except that the
+counter's name has no backslash at domain.hid{\}.  Thus, associated with
+the @code{\chapter} command is the @code{chapter} counter that keeps
+track of the chapter number.  
+
+Below is a list of the counters used in @LaTeX{}'s standard document
+classes to control numbering.
 
 @example
 part            paragraph       figure          enumi
@@ -5591,24 +5595,22 @@
 @end example
 
 The @code{mpfootnote} counter is used by the @code{\footnote} command
-inside of a minipage (@pxref{minipage}).
-
-The @code{enumi} through @code{enumiv} counters are used in the
- at domain.hid} environment, for up to four nested levels
-(@pxref{enumerate}).
+inside of a minipage (@pxref{minipage}).  The counters @code{enumi}
+through @code{enumiv} are used in the @code{enumerate} environment, for
+up to four levels of nesting (@pxref{enumerate}).
 
 New counters are created with @code{\newcounter}.  @xref{\newcounter}.
 
 
 @menu
-* \alph \Alph \arabic \roman \Roman \fnsymbol::  Print value of a counter.
-* \usecounter::         Use a specified counter in a list environment.
-* \value::              Use the value of a counter in an expression.
-* \setcounter::         Set the value of a counter.
-* \addtocounter::       Add a quantity to a counter.
-* \refstepcounter::     Add to counter, resetting subsidiary counters.
-* \stepcounter::        Add to counter, resetting subsidiary counters.
-* \day \month \year::   Numeric date values.
+* \alph \Alph \arabic \roman \Roman \fnsymbol:: Print value of a counter.
+* \usecounter::       Use a specified counter in a list environment.
+* \value::            Use the value of a counter in an expression.  
+* \setcounter::       Set the value of a counter.
+* \addtocounter::     Add a quantity to a counter.
+* \refstepcounter::   Add to a counter.
+* \stepcounter::      Add to a counter, resetting subsidiary counters.
+* \day \month \year:: Numeric date values.
 @end menu
 
 
@@ -5616,28 +5618,33 @@
 @section @code{\alph \Alph \arabic \roman \Roman \fnsymbol}: Printing counters
 
 @cindex counters, printing
+
+Print the value of a counter, in a specified style.  For instance, if
+the counter @var{counter} has the value 1 then a
+ at code{\alph at domain.hid}@}} in your source will result in a lower case
+letter at domain.hid appearing in the output.
 
 All of these commands take a single counter as an argument, for
 instance, @code{\alph at domain.hid@}}.  Note that the counter name does not
 start with a backslash.
 
 @ftable @code
- at domain.hid \alph
+ at item \alph at domain.hid}@}
 prints @var{counter} using lowercase letters: `a', `b', @enddots{}
 
- at domain.hid \Alph
+ at item \Alph at domain.hid}@}
 uses uppercase letters: `A', `B', @enddots{}
 
- at domain.hid \arabic
+ at item \arabic at domain.hid}@}
 uses Arabic numbers: `1', `2', @enddots{}
 
- at domain.hid \roman
+ at item \roman at domain.hid}@}
 uses lowercase roman numerals: `i', `ii', @enddots{}
 
- at domain.hid \Roman
+ at item \Roman at domain.hid}@}
 uses uppercase roman numerals: `I', `II', @enddots{}
 
- at domain.hid \fnsymbol
+ at item \fnsymbol at domain.hid}@}
 prints the value of @var{counter} in a specific sequence of nine
 symbols (conventionally used for labeling footnotes).  The value of
 @var{counter} must be between at domain.hid and at domain.hid, inclusive.





More information about the latexrefman-commits mailing list