Subscripts and superscripts are
obtained with the words
sub
and
sup.
x sup 2 + y sub k
gives
![[equation]](eqn-57.gif)
EQN
takes care of all the size changes and vertical motions
needed to make the output look right.
The words
sub
and
sup
must be surrounded by spaces;
x sub2
will give you
instead of
.
Furthermore, don't forget to leave a space
(or a tilde, etc.)
to mark the end of a subscript or superscript.
A common error is to say
something like
y = (x sup 2)+1
which causes
![[equation]](eqn-60.gif)
instead of the intended
![[equation]](eqn-61.gif)
Subscripted subscripts and superscripted superscripts
also work:
x sub i sub 1
is
![[equation]](eqn-62.gif)
A subscript and superscript on the same thing
are printed one above the other
if the subscript comes
first:
x sub i sup 2
is
![[equation]](eqn-63.gif)
Other than this special case,
sub
and
sup
group to the right, so
x sup y sub z
means
, not
.