Changes to displaystyle and scriptlevel

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

It is conventional for characters placed in a script position to appear in a smaller font than the base expression. To satisfy this convention, the presentation elements that represent scripts automatically change the value of two attributes of the mstyle element, displaystyle and scriptlevel. Normally, these are inherited from the environment. These changes are summarized here:

  • The msub element sets displaystyle to false and increments scriptlevel by 1 in subscript but leaves both attributes unchanged within base.
  • The msup element sets displaystyle to false and increments scriptlevel by 1 in superscript but leaves both attributes unchanged within base.
  • The msubsup element sets displaystyle to false and increments scriptlevel by 1 in both subscript and superscript but leaves both attributes unchanged within base.
  • The munder element sets displaystyle to false in underscript and increments scriptlevel by 1 only when accentunder="false". It leaves both attributes unchanged within base.
  • The mover element sets displaystyle to false in overscript and increments scriptlevel by 1 only when accent="false". It leaves both attributes unchanged within base.
  • The munderover element sets displaystyle to false in overscript and increments scriptlevel by 1 only when accent="false". It sets displaystyle to false in underscript and increments scriptlevel by 1 only when accentunder="false". It leaves both attributes unchanged within base.
  • The mmultiscripts element increments scriptlevel by 1 and sets displaystyle to false in all its arguments except the base.

For more details about the displaystyle and scriptlevel attributes, see the discussion of the mstyle element under Applying styles.

   

<< back next >>

 

 

 

Tipp der data2type-Redaktion:
Zum Thema MathML bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an:

 

Copyright © CHARLES RIVER MEDIA, INC., Massachusetts (USA) 2003
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "The MathML Handbook" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.


CHARLES RIVER MEDIA, INC., 20 Downer Avenue, Suite 3, Hingham, Massachusetts 02043, United States of America