XML-Technologien / MathML / Presentation markup / Scripts and limits / Multiscripts

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

Another common type of notation involves objects that have multiple subscripts and superscripts attached to the base expression. This type of notation is used, for example, to represent tensors such as Multiscripts: equation 1. MathML provides the mmultiscripts element specially for this type of notation. This element can be used to attach any number of vertically aligned pairs of subscripts and superscripts to a base expression. It allows you to attach both prescripts and postscripts notation to the left and right of the base expression, respectively.

The syntax for this element is:

<mmultiscripts> base (subscript superscript)* [<mprescripts/> (presubscript presuperscript)*]</mmultiscripts>

The important points to note about the mmultiscripts element are as follows:

Here is an example:

Multiscripts: equation 2

<mmultiscripts>
  <mi>T</mi>
  <mi>b</mi>
  <mi>a</mi>
  <mi>c</mi>
  <none/>
  <mprescripts/>
  <mi>1</mi>
  <none/>
  <mi>2</mi>
  <mi>3</mi>
</mmultiscripts>

The mmultiscripts element has two attributes: subscriptshift and superscriptshift. These specify the minimum amount by which a superscript or subscript should be shifted up or down relative to the baseline of the base expression, respectively.

   

 

 

 

 

nach oben