Next: Inserting Math, Previous: Inserting Quotation Marks, Up: Insertions [Contents][Index]
@sub
and @sup
: Inserting Subscripts and SuperscriptsYou can insert subscripts and superscripts, in either text or math,
with the @sub
and @sup
commands. (For other
mathematical expressions, see the next section.) For example, here is
a purely textual subscript and superscript:
here@sub{below}@sup{above}
produces:
herebelowabove
Inside @math
, @sub
and @sup
produce
mathematical subscripts and superscripts. This uses a different font
in the TeX output (math italic instead of text italic); it makes no
difference in the other output formats. Here’s an example:
@math{e@sup{x}}
produces:
ex
In Info and plain text, regardless of being used inside @math
,
@sub{text}
is output as ‘_{text}’ and
@sup{text}
as ‘^{text}’, including the
literal braces (to mark the beginning and end of the “script” text
to the reader).
When the output format (and display program) permit (TeX math, HTML), the superscript is set above the subscript when both commands are given consecutively.