<< 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.

Definite integral limits

<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> &int; </m:mo> <m:mn> 0 </m:mn> <m:mn> 1 </m:mn> </m:msubsup> <m:mrow> <m:msup> <m:mi> &ExponentialE; </m:mi> <m:mi> x </m:mi> </m:msup> <m:mo> &InvisibleTimes; </m:mo> <m:mrow> <m:mo> &DifferentialD; </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 :

y = 0 1 x x

"munder" layout scripting element

Specific attributes :   accentunder

    Attribute value types

  • accentunder (default : automatic) : true | false

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.

Underscripting

<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'> &OverBar; </m:mo> </m:munder> <m:mtext> &ThinSpace; vs &ThinSpace; </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'> &OverBar; </m:mo> </m:munder> </m:mrow> </m:math>

Save the file after editing as “test.xml”. The display looks like :

x + y + z ¯   vs   x + y + z ¯

"mover" layout scripting element

Specific attributes :   accent

    Attribute value types

  • accent (default : automatic) : true | false

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 :

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A primer in mathml. OpenStax CNX. Apr 19, 2006 Download for free at http://cnx.org/content/col10345/1.16
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A primer in mathml' conversation and receive update notifications?

Ask