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

karl at domain.hid karl at domain.hid
Sat Jun 20 16:55:18 CEST 2015


Author: karl
Date: Sat Jun 20 16:55:17 2015
New Revision: 366

URL: http://svn.gna.org/viewcvs/latexrefman?rev=366&view=rev
Log:
\value, \newlength wording

Modified:
    trunk/ChangeLog
    trunk/latex2e.texi

Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=366&r1=365&r2=366&view=diff
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Jun 20 16:55:17 2015
@@ -1,3 +1,7 @@
+2015-06-20  Karl Berry  <karl at domain.hid>
+
+	* latex2e.texi (\value, \newlength): wording.
+
 2015-06-19  Karl Berry  <karl at domain.hid>
 
 	* latex2e.texi (Document class options): mention the geometry package.

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=366&r1=365&r2=366&view=diff
==============================================================================
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Sat Jun 20 16:55:17 2015
@@ -4016,7 +4016,7 @@
 
 
 @node \newcounter
- at domain.hid @code{\newcounter}
+ at section @code{\newcounter}: Allocating a counter
 
 @findex \newcounter
 @cindex counters, defining new
@@ -4044,33 +4044,35 @@
 
 
 @node \newlength
- at domain.hid @code{\newlength}
+ at section @code{\newlength}: Allocating a length
 
 @findex \newlength
- at domain.hid lengths, defining new
-
-Create a new @dfn{length} register.  Synopsis:
+ at cindex lengths, allocating new
+ at cindex rubber lengths, defining new
+ at cindex skip register, plain @TeX{}
+ at cindex glue register, plain @TeX{}
+
+Allocate a new @dfn{length} register.  Synopsis:
 
 @example
 \newlength at domain.hid}@}
 @end example
 
-This command takes one required argument, which must begin with
-backslash (@samp{\}). It creates a new length register, a place to hold
-lengths such as @code{1in plus.2in minus.1in} (what Plain @TeX{} calls a
- at domain.hid} register), and names that register @code{\@var{arg}}.  The
-register gets an initial value of zero (zero points).  If
- at domain.hid}} is already defined, either as a length or just as a
-regular command, then it is an error.
+This command takes one required argument, which must begin with a
+backslash (@samp{\}).  It creates a new length register named
+ at code{\@var{arg}}, which is a place to hold (rubber) lengths such as
+ at code{1in plus.2in minus.1in} (what plain @TeX{} calls a @code{skip}
+register).  The register gets an initial value of zero.  The control
+sequence @code{\@var{arg}} must not already be defined.
 
 @xref{Lengths}, for more about lengths.
 
 
 @node \newsavebox
- at domain.hid @code{\newsavebox}
+ at section @code{\newsavebox}: Allocating a box
 
 @findex \newsavebox
- at domain.hid box, saving
+ at cindex box, allocating new
 
 Allocate a ``bin'' for holding a box.  Synopsis:
 
@@ -4592,18 +4594,16 @@
 \value at domain.hid}@}
 @end example
 
-This command produces the value of @var{counter}.  It is often used in
- at domain.hid} or @code{\addtocounter}, however @code{\value} can be
-used anywhere that @LaTeX{} expects a number.  
+This command expands to the value of @var{counter}.  It is often used
+in @code{\setcounter} or @code{\addtocounter}, but @code{\value} can
+be used anywhere that @LaTeX{} expects a number.  It must not be
+preceded by @code{\protect} (@pxref{\protect}).
 
 The @code{\value} command is not used for typesetting the value of the
 counter.  @xref{\alph \Alph \arabic \roman \Roman \fnsymbol}.
 
-Note that @code{\value} produces an error when it is preceded by
- at domain.hid} (@pxref{\protect}).
-
-This example which will print @samp{Test counter is 6. Other counter is
-5.}.
+This example outputs @samp{Test counter is at domain.hid. Other counter
+is at domain.hid.}.
 
 @example
 \newcounter at domain.hid@} \setcounter at domain.hid@}
@@ -4614,7 +4614,7 @@
 Other counter is \arabic at domain.hid@}.
 @end example
 
-This example this will insert a @code{\hspace at domain.hid@}}.
+This example inserts @code{\hspace at domain.hid@}}.
 
 @example
 \setcounter at domain.hid@} \addtocounter at domain.hid@}





More information about the latexrefman-commits mailing list