Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (476)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
scriptlevel="0" on "msup"
How to prevent <msup> using smaller fonts?
✍: FYIcenter.com
Each MathML element carries an attribute called "scriptlevel"
to control its font size. The "scriptlevel" starts from 0 at
<math> element and passes down to most child elements without
any changes.
But when a child element needs to be shifted vertically like superscript, subscript, overscript, underscript, numerator, denominator, etc., its "scriptlevel" will be increased by 1. This tells the browser to reduce the font size by 71%.
If you don't want this to happen on a <msup> element, you can add the "scriptlevel" attribute explicitly to override its value. The example below shows that the font size of number "4" on the right hand side stays with the original value.
<math><msup><mn>5</mn><msup><mn>4</mn><msup><mn>3</mn>
<mn>2</mn></msup></msup></msup> <mo>=</mo>
<msup><mn>5</mn><msup scriptlevel="0"><mn>4</mn><msup><mn>3</mn>
<mn>2</mn></msup></msup></msup></math>
⇒ Stretched and Large Operators
⇐ displaystyle="true" on "mfrace"
2026-10-24, ∼1826🔥, 0💬
Popular Posts:
How to download and install older versions of Microsoft Office on my Mac computer? I am running macO...
How to download publication files from libgen.rs? libgen.rs or gen.lib.rus.ec is the most robust Web...
What is "OneNote Notes about Word Documents" add-in in Microsoft Word? Should I disable it? "OneNote...
How to create a new PowerPoint Template? I have created a slide master and some useful slide layouts...
How to start to troubleshoot my Actiontec GT784WNV Modem? I am not able to access Internet. If you a...