The BOX element is used for a variety of purposes:
The SHORTREF characters { and } are used as abbreviations for the start and end tags for BOX elements. Use the SGML entities { and } respectively when you need to use these characters literally.
Short fractions, are best represented using the slash character / as in <math>(n + m)/2</math> for (n + m)/2. For more complicated fractions you can use the BOX element with the OVER tag, as in:
1 ----- {1<over>x + y} x + y x - y --------- {x - y<over>1 + {a - b<over>a + b}} a - b 1 + ----- a + b
Use the ATOP tag when you want to place one thing above another, but without the dividing line. With the CHOOSE tag, the expressions are also enclosed within round brackets, for instance:
a - b {a - b<atop>a + b} a + b (n + 1) ( n ) ( n ) {n+1<choose>k} ( ) = ( ) + ( ) = {n<choose>k} ( k ) ( k ) (k - 1) + {n<choose>k-1}
The BOX element can be used with the LEFT and RIGHT tags for delimiters that stretch to match the size of the enclosed expression. You are free to give only one or both of the delimiters, and you can use different symbols for the left and right. Left delimiters should be given before the LEFT tag, while right delimiters should be given following the RIGHT tag, for instance:
( 1 + x ) f(x) = {(<left> f(x) = ( ----- ) 1+x<over> sin x ( sin x ) <right>)}
For curly brackets you will need to use the { and } entities for { and } respectively. The SIZE attribute can be used to get oversized delimiters, for instance:
2 | | omega | | {ω^2^<over>c^2^} ----- |<j| mu |i>| <box size=huge> | <left> 2 | z | <j | μ_z_ | i> c | | <right> | </box>
The full tag name for the BOX element is needed above in order to specify a value for the SIZE attribute. The BOX element is also useful for stretching integral signs to match the height of the integrand. The integral and its limits appear in the position of the left delimiter for the BOX element. You can also include multiple integrals, for instance:
inf inf / / f(x, y) {∫_0_^&inf;^ ∫_0_^&inf;^<left> | | --------- dx dy f(x,y)<over>x^2^ + y^2^} dx dy | | 2 2 / / x + y 0 0
Note: there are no attributes for the LEFT, RIGHT, OVER, ATOP and CHOOSE tags.