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

jhefferon at domain.hid jhefferon at domain.hid
Tue Sep 15 16:09:17 CEST 2015

Author: jhefferon
Date: Tue Sep 15 16:09:16 2015
New Revision: 437

URL: http://svn.gna.org/viewcvs/latexrefman?rev=437&view=rev
Subscripts and superscripts


Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=437&r1=436&r2=437&view=diff
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Tue Sep 15 16:09:16 2015
@@ -1,3 +1,7 @@
+2015-09-15  Jim Hefferon  <jhefferon at domain.hid>
+	* latex2e.texi (Subscripts & superscripts): Add examples.
 2015-09-15  Vincent Belaïche  <vincent.belaiche at domain.hid>

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=437&r1=436&r2=437&view=diff
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Tue Sep 15 16:09:16 2015
@@ -5942,12 +5942,42 @@
 @findex _
 @findex ^
-To get an expression @var{exp} to appear as a subscript, you just type
- at domain.hid{@}}.  To get @var{exp} to appear as a
-superscript, you type @code{^@{}@var{exp}@code{@}}. @LaTeX{} handles
-superscripted superscripts and all of that stuff in the natural way.
-It even does the right thing when something has both a subscript and a
+In math mode, use the caret character at domain.hid}@}} to make
+the @var{exp} appear as a subscript.  Similarly, in math mode,
+underscore at domain.hid}@}} makes a subscript out of
+ at var{exp}.
+In this example the @code{0} and @code{1} appear as subscripts while the
+ at code{2} is a superscript.
+ at example
+\( (x_0+x_1)^2 \)
+ at end example 
+To have more than one character in @var{exp} use curly braces as in
+ at code{e^@{-2x@}}.
+ at LaTeX{} handles superscripts on superscripts, and all of that stuff, in
+the natural way, so expressions such as @code{e^@{x^2@}} and
+ at code{x_ at domain.hid@}} will look right.  It also does the right thing when
+something has both a subscript and a superscript.  In this example the
+ at code{0} appears at the bottom of the integral sign while the @code{10}
+appears at the top.
+ at example
+\int_0^@{10@} x^2 \,dx
+ at end example
+You can put a superscript or subscript before a symbol with a construct
+such as @code{@{@}_t K^2} in math mode (the initial @code{@{@}} prevents
+the prefixed subscript from being attached to any prior symbols in the
+Outside of math mode, a construct like @code{A
+test$_\textnormal at domain.hid@}$} will produce a subscript typeset in
+text mode, not math mode.  Note that there are packages specialized for
+writing Chemical formulas such as @file{mhchem}.
+ at c xx display mode
 @node Math symbols

More information about the latexrefman-commits mailing list