14.  Subscripts and Superscripts

      Subscripts and superscripts are obtained with the words sub and sup. x sup 2 + y sub k
gives

[equation]

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 [equation] instead of [equation]. 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]

instead of the intended

[equation]

      Subscripted subscripts and superscripted superscripts also work: x sub i sub 1
is

[equation]

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]

      Other than this special case, sub and sup group to the right, so x sup y sub z means [equation], not [equation].