summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/latex2e-html/ltx-180.html
blob: f1dc0b481e78faf8590669c2e31c6399411f7e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head><title>Help On LaTeX  Superscripts</title></head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">Superscripts</font></h1>
<p>
 To get an expression,  exp, to appear  as a superscript,  you just  type
 <tt>^{exp}</tt>.<p>
 Can be used only  in <a href="ltx-115.html#math">math</a> mode.  
Thus, for a simple expression that is part of the running text:
<pre>  
    <tt>x$^3$ is the third power of x</tt>
</pre>
should display as "x<sup>3</sup> is the third power of x".  Note that
the braces around the argument may be omitted if the superscript is 
a single character. 
<p>
If a symbol has both subscripts and superscripts, the order doesn't matter.  
The following are equivalent:<br>
<pre>     <tt>a_n^2</tt> and <tt>a^2_n</tt></pre>
<p>
Superscripts may have their own superscripts:
<pre>
    <tt>$x^{y^{z}}$</tt>
</pre>
should display something like
<pre>
        z
       y
      x
</pre>
<hr>
 See also: <A href="ltx-115.html">Math Formulas</A>,
 <A href="ltx-179.html">Subscripts</A><br>
Back to the <a href="ltx-2.html">Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 31 May 1995.
</address>  
</body>
</html>