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

jhefferon at domain.hid jhefferon at domain.hid
Sat May 30 23:15:30 CEST 2015


Author: jhefferon
Date: Sat May 30 23:15:29 2015
New Revision: 349

URL: http://svn.gna.org/viewcvs/latexrefman?rev=349&view=rev
Log:
\newlength

Modified:
    trunk/ChangeLog
    trunk/latex2e.texi

Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=349&r1=348&r2=349&view=diff
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat May 30 23:15:29 2015
@@ -1,3 +1,8 @@
+2015-05-30  Jim Hefferon  <jhefferon at domain.hid>
+
+	* latex2e.texi (\newlength): Add details, including that the name
+	nust begin with a backslash.
+
 2015-05-29  Jim Hefferon  <jhefferon at domain.hid>
 
 	* latex2e.texi (\providecommand): Add node.

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=349&r1=348&r2=349&view=diff
==============================================================================
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Sat May 30 23:15:29 2015
@@ -3818,7 +3818,7 @@
 the words @samp{met the} will be in italics.  An extra pair of braces
 @code{\newcommand at domain.hid #1@}@}} fixes it.
 
- at domain.hid xx \ensuremath, ?xspace or at least some comment about swallowing a space.
+
 @node \providecommand 
 @section @code{\providecommand}
 @findex \providecommand
@@ -3853,8 +3853,9 @@
 @end example
 
 The @code{\newcounter} command globally defines a new counter named
- at domain.hid}.  The name consists of letters and does not begin
-with a backslash (@samp{\}).  The new counter is initialized to zero.
+ at var{countername}.  The name consists of letters only and does not begin
+with a backslash (@samp{\}).  The name must not already be used by
+another counter. The new counter is initialized to zero.
 
 If the optional argument @code{[@var{supercounter}]} appears, then
 @var{countername} will be numbered within, or subsidiary to, the
@@ -3872,19 +3873,21 @@
 @findex \newlength
 @cindex lengths, defining new
 
-Synopsis:
+Create a new @dfn{length} register.  Synopsis:
 
 @example
 \newlength at domain.hid}@}
 @end example
 
-The @code{\newlength} command defines the mandatory argument as a
- at domain.hid} command with a value of zero.  The argument must
-be a control sequence, as in @code{\newlength at domain.hid@}}.  An error
-occurs if @code{\foo} is already defined.
-
- at domain.hid}, for how to set the new length to a nonzero value, and
-for more information about lengths in general.
+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 code{skip} register), and names that register @code{\@var{arg}}.  The
+register gets an initial value of zero (zero points).  If
+ at code{\@var{arg}} is already defined, either as a length or just as a
+regular command, then it is an error.
+
+ at xref{Lengths}, for more about lengths.
 
 
 @node \newsavebox





More information about the latexrefman-commits mailing list