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

jhefferon at domain.hid jhefferon at domain.hid
Wed Nov 25 13:16:17 CET 2015


Author: jhefferon
Date: Wed Nov 25 13:16:16 2015
New Revision: 475

URL: http://svn.gna.org/viewcvs/latexrefman?rev=475&view=rev
Log:
Reserved characters

Modified:
    trunk/ChangeLog
    trunk/latex2e.texi

Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=475&r1=474&r2=475&view=diff
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Wed Nov 25 13:16:16 2015
@@ -1,3 +1,9 @@
+2015-11-25  Jim Hefferon  <jhefferon at domain.hid>
+
+	* latex2e.texi (Reserved characters)  Split out symbols by font
+	position.  Distinguish between output in text body font and
+	output in typewriter font.
+
 2015-11-09  Vincent Belaïche  <vincentb1 at domain.hid>
 
 	* latex2e.texi (\newcommand & \renewcommand): Introduce the

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=475&r1=474&r2=475&view=diff
==============================================================================
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Wed Nov 25 13:16:16 2015
@@ -2,7 +2,7 @@
 @c $Id$
 @comment %**start of header (This is for running Texinfo on a region.)
 @setfilename latex2e.info
- at domain.hid UPDATED October 2015
+ at set UPDATED November 2015
 @settitle @LaTeX{}2e unofficial reference manual (@value{UPDATED})
 @comment %**end of header (This is for running Texinfo on a region.)
 
@@ -8283,12 +8283,13 @@
 special meaning do not correspond to simple characters you can type.
 
 @menu
-* Reserved characters::     Inserting @samp{# $ % & ~ _ ^ \ @{ @}}
-* Text symbols::            Inserting other non-letter symbols in text.
-* Accents::                 Inserting accents.
-* Non-English characters::  Inserting other non-English characters.
-* \rule::                   Inserting lines and rectangles.
-* \today::                  Inserting today's date.
+* Reserved characters::         Inserting @samp{# $ % & ~ _ ^ \ @{ @}}
+* Symbols by font position::    Inserting font symbols by number.
+* Text symbols::                Inserting other non-letter symbols in text.
+* Accents::                     Inserting accents.
+* Non-English characters::      Inserting other non-English characters.
+* \rule::                       Inserting lines and rectangles.
+* \today::                      Inserting today's date.
 @end menu
 
 
@@ -8297,12 +8298,14 @@
 
 @cindex reserved characters
 @cindex characters, reserved
-
-The following characters play a special role in @LaTeX{} and are called
-``reserved characters'' or ``special characters''.
-
- at domain.hid
-# $ % & ~ _ ^ \ @{ @}
+ at cindex special characters
+ at cindex characters, special
+ at LaTeX{} sets aside the following characters for special purposes (for
+example, the percent sign at domain.hid{%} is for comments) so they are
+called @dfn{reserved characters} or @dfn{special characters}.
+
+ at example
+# $ % & @{ @} _ ~ ^ \ 
 @end example
 
 @findex \#
@@ -8312,35 +8315,50 @@
 @findex \_
 @findex \@{
 @findex \@}
-Whenever you write one of these characters into your file, @LaTeX{}
-will do something special.  If you simply want the character to be
-printed as itself, include a @code{\} in front of the character.  For
-example, @code{\$} will produce @code{$} in your output.
-
+If you want a reserved character to be printed as itself, in the text
+body font, for all but the final three characters in that list simply
+put a backslash at domain.hid{\} in front of the character.  Thus,
+ at code{\$1.23} will produce at domain.hid} in your output.
+
+ at findex \~
+ at findex \^ 
 @findex \backslash
-One exception to this rule is @code{\} itself, because @code{\\} has
-its own special (context-dependent) meaning.  A roman \ is produced by
-typing @code{$\backslash$} in your file, and a typewriter @code{\} is
-produced by using @samp{\} in a verbatim command (@pxref{verbatim}).
-
- at domain.hid \~
- at domain.hid \^
-Also, @code{\~} and @code{\^} place tilde and circumflex accents over
-the following letter, as in @~{o} and @^{o} (@pxref{Accents}); to get
-a standalone @code{~} or @code{^}, you can again use a verbatim
-command.
+As to the last three characters, to get a tilde in the text body font
+use @code{\~@{@}} (omitting the curly braces would result in the next
+character receiving a tilde accent).  Similarly, to get a get a text
+body font circumflex use @code{\^@{@}}.  A text body font backslash
+results from @code{\textbackslash@{@}}.
+
+To produce the reserved characters in a typewriter font use
+ at code{\verb!!}, as below.
+
+ at example
+\begin at domain.hid@}
+  \# \$ \% \& \@{ \@} \_ \~@{@} \^@{@} \textbackslash \\
+  \verb!# $ % & @{ @} _ ~ ^ \!
+\end at domain.hid@}
+ at end example
+
+In that example the double backslash at domain.hid{\\} is only there to
+split the lines.
+
+
+ at node Symbols by font position
+ at section Symbols by font position
 
 @findex \symbol
 @cindex accessing any character of a font
-
-Finally, you can access any character of the current font once you
-know its number by using the @code{\symbol} command. For example, the
-visible space character used in the @code{\verb*} command has the code
-decimal 32, so it can be typed as @code{\symbol at domain.hid@}}.
-
-You can also specify octal numbers with @code{'} or hexadecimal numbers
-with @code{"}, so the previous example could also be written as
- at domain.hid@}} or @code{\symbol at domain.hid@}}.
+ at cindex font symbols, by number
+
+You can access any character of the current font using its number with
+the @code{\symbol} command. For example, the visible space character
+used in the @code{\verb*} command has the code decimal 32, so it can be
+typed as @code{\symbol at domain.hid@}}.
+
+You can also specify numbers in octal (base 8) by using a @code{'}
+prefix, or hexadecimal (base 16) with a @code{"} prefix, so the previous
+example could also be written as @code{\symbol at domain.hid@}} or
+ at code{\symbol at domain.hid@}}.
 
 
 @node Text symbols





More information about the latexrefman-commits mailing list