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

jhefferon at domain.hid jhefferon at domain.hid
Wed May 27 02:05:35 CEST 2015

Author: jhefferon
Date: Wed May 27 02:05:34 2015
New Revision: 345

URL: http://svn.gna.org/viewcvs/latexrefman?rev=345&view=rev
more on \newcommand


Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=345&r1=344&r2=345&view=diff
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Wed May 27 02:05:34 2015
@@ -1,3 +1,8 @@
+2015-05-26  Jim Hefferon  <jhefferon at domain.hid>
+	* latex2e.texi (\newcommand & \renewcommand): Add two fine points
+	about \newcommand.
 2015-05-25  Karl Berry  <karl at domain.hid>
 	* Makefile (texi2html_top): New variable.

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=345&r1=344&r2=345&view=diff
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Wed May 27 02:05:34 2015
@@ -3801,9 +3801,23 @@
 @code{\salutation[John]} gives @samp{Dear John:}.  And
 @code{\salutation[]} gives @samp{Dear :}.
+A command with no arguments that is followed in the source by a space
+will swallow that space.  The solution is to type @code{@{@}} after the
+command and before the space.
+The braces around @var{defn} do not delimit the scope of the result of
+expanding @var{defn}.  So @code{\newcommand at domain.hid #1@}}
+is wrong since in the sentence
+ at example
+The \shipname at domain.hid@} met the \shipname at domain.hid@}.
+ at end example
+the words @samp{met the} will be in italics.  An extra pair of braces
+ at code{\newcommand at domain.hid #1@}@}} fixes it.
 @c xx \ensuremath, ?xspace or at least some comment about swallowing a space.
 @c xx \providecommand, * form (non-\long)
 @node \newcounter
 @section @code{\newcounter}

More information about the latexrefman-commits mailing list