<< Chapter < Page | Chapter >> Page > |
The amount of shifting can be specified by giving numerical values to “subscriptshift” and “superscriptshift” attributes preferably in “ex” unit. The code below demonstrates assigning limiting values to integral with “msubsup” element, while “msup” element is used to construct exponential function.
<m:math display="block">
<m:math display="block">
<m:mrow>
<m:mi> y </m:mi>
<m:mo> = </m:mo>
<m:mrow>
<m:msubsup>
<m:mo> ∫ </m:mo>
<m:mn> 0 </m:mn>
<m:mn> 1 </m:mn>
</m:msubsup>
<m:mrow>
<m:msup>
<m:mi> ⅇ </m:mi>
<m:mi> x </m:mi>
</m:msup>
<m:mo> ⁢ </m:mo>
<m:mrow>
<m:mo> ⅆ </m:mo>
<m:mi> x </m:mi>
</m:mrow>
</m:mrow>
</m:mrow>
</m:mrow>
</m:math>
Save the file after editing as “test.xml”. The display looks like :
The “munder” takes two arguments. First one is the base and second one is the scripting character. The syntax of the element is :
<munder> base underscript </munder>
The scripting character is placed below the base character/ expression. The “accentunder” attribute is either “true” or “false”, which determines whether the underscript is implemented as accent or limit. The implementation of accent is drawn closer to the base and is of the same size as that of base. On the other hand, limit is drawn relative away from the base and is reduced in size.
If under-script is an “mo” element, the value of its “accent” attribute is used as the default value of “accentunder”. However, an explicitly given value overrides the default.
<m:math display="block">
<m:math display="block">
<m:mrow>
<m:munder accentunder="true">
<m:mrow>
<m:mi> x </m:mi>
<m:mo> + </m:mo>
<m:mi> y </m:mi>
<m:mo> + </m:mo>
<m:mi> z </m:mi>
</m:mrow>
<m:mo stretchy='true'> ‾ </m:mo>
</m:munder>
<m:mtext>   vs  
</m:mtext>
<m:munder accentunder="false">
<m:mrow>
<m:mi> x </m:mi>
<m:mo> + </m:mo>
<m:mi> y </m:mi>
<m:mo> + </m:mo>
<m:mi> z </m:mi>
</m:mrow>
<m:mo stretchy='true'> ‾ </m:mo>
</m:munder>
</m:mrow>
</m:math>
Save the file after editing as “test.xml”. The display looks like :
The “mover” takes two arguments. First one is the base and second one is the scripting character. The scripting character is placed below the base character/expression. The syntax of the element is :
Notification Switch
Would you like to follow the 'A primer in mathml' conversation and receive update notifications?