XML-Technologien / MathML / Presentation markup / Scripts and limits / 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
msubelement setsdisplaystyletofalseand incrementsscriptlevelby 1 in subscript but leaves both attributes unchanged within base.The
msupelement setsdisplaystyletofalseand incrementsscriptlevelby 1 in superscript but leaves both attributes unchanged within base.The
msubsupelement setsdisplaystyletofalseand incrementsscriptlevelby 1 in both subscript and superscript but leaves both attributes unchanged within base.The
munderelement setsdisplaystyletofalsein underscript and incrementsscriptlevelby 1 only whenaccentunder="false". It leaves both attributes unchanged within base.The
moverelement setsdisplaystyletofalsein overscript and incrementsscriptlevelby 1 only whenaccent="false". It leaves both attributes unchanged within base.The
munderoverelement setsdisplaystyletofalsein overscript and incrementsscriptlevelby 1 only whenaccent="false". It setsdisplaystyletofalsein underscript and incrementsscriptlevelby 1 only whenaccentunder="false". It leaves both attributes unchanged within base.The
mmultiscriptselement incrementsscriptlevelby 1 and setsdisplaystyletofalsein 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.
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