Next: , Previous: , Up: Insertions   [Contents][Index]

12.6 @sub and @sup: Inserting Subscripts and Superscripts

You 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:




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:




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.