Next: The BOX Tag
Up: WebEQ Math Tags

Subscripts and Superscripts

Expressions surrounded with <SUB></SUB> tags are rendered as subscripts. The underscore character can be used as a shorthand reference for the beginning and ending tag, except when there is ambiguity.

Similarly, expressions surrounded with <SUP></SUP> tags are rendered as superscripts. The carrot character ^ is the short reference.

Example

Source:
2^2^ + 3_3_ + 2<SUP>3<SUP>4</SUP></SUP> + 4<SUB>x^2^</SUB>

Output:

Note that 2^3<SUP>4</SUP>^ would also produce a nested superscript, but 2<SUP>3^4^</SUP> would not. Because the ^ character stands for both the beginning and ending tag, this produces a 2 with a superscript of 3 and a 4 with an empty superscript.

Example

Source:
&int;_0_^1^ &thinsp; 2x &thinsp; dx = 1

Output:

The subscript and superscript tags can also be used to attach limits to big operators. The operators WebEQ regards as big operators are &int;, &sum;, &cup;, &cap;, &oplus; and &otimes;.

Example

Source:
&cap;_i=1_^&infty;^ A_i_ = &cap;
<SUB ALIGN=RIGHT>j&in;&Gamma;</SUB> B_j_ 

Output:

The SUB and SUP tags take an alignment parameter which can be used to override the default placement of limits for big operators. At present, this only work with big operators. Sorry, chemists...


Next: The BOX Tag
Up: WebEQ Math Tags

[HOME] The Geometry Center Home Page

Comments to: rminer@geom.umn.edu
Created: Fri Sep 8 11:39:00 1995 --- Last modified: Thu Mar 28 11:40:12 1996