To format one-or-more characters as a superscript or exponent, you need to surround the superscript text with a simple formatting code:
{$EXP the superscript} or {$exp the superscript}
for example, the text:
x{$exp 3} - 4x{$EXP 2} + 1
will display as:
x3 - 4x2 + 1
Note that the "EXP" (for EXPonent) is not case sensitive. There must be one-or-more blanks or an equals sign ("=") that will not display between the "EXP" and the superscript characters. Blank spaces following the first non-blank character in the superscript will display. Format code strings must begin and end in the same text string - they cannot span a line break.
To format one-or-more characters as a subscript, you need to surround the subscript text with a simple formatting code:
{$SUB the subscript} or {$sub the subscript}
for example, the text:
x{$sub main} = H{$SUB 2}O
will display as:
xmain = H2O
Note that the "SUB" is not case sensitive. There must be one-or-more blanks or an equals sign ("=") that will not display between the "SUB" and the subscript characters. Blank spaces following the first non-blank character in the subscript will display.
In the following text file, the first question uses "{$EXP 2}" in each answer choice to display "x2". The second question uses "{$SUB 1} to display "x1".
\TITLE Subscripts and Exponents Demo \MC A C (x + 2)(x - 3) = A. x{$EXP 2} + x - 6 B. x{$EXP 2} - x + 6 C. x{$EXP 2} - x - 6 D. x{$EXP 2} - 5x - 1 E. x{$EXP 2} - 6 \TF A T If the distance from the point (x{$SUB 1}, 0) to (3, 4) is 5, then x {$SUB 1} = 0.
The following applet runs this question file: