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:

here_{below}^{above}

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:

e^{x}

In Info and plain text, regardless of being used inside `@math`

,
`@sub{`

is output as ‘`text`}`_{ text}`’ and

`@sup{``text`}

as ‘When the output format (and display program) permit (TeX math, HTML), the superscript is set above the subscript when both commands are given consecutively.