Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (465)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Use display="inline" with displaystyle="normal"
How to prevent "compact" style when using <math> as an inline element?
✍: FYIcenter.com
By default, <math> element is rendered as an inline element
in "compact" display style.
If you want to keep it as an inline element and displayed in "normal" style, you need add the displaystyle="normal" option in the <math> tag.
Here is a comparison of "compact" and "normal" styles of inline <math> elements:
<math> <munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>∞</mi></munderover><mi>i</mi> <mo>=</mo><mn>1</mn><mo>+</mo><mo>…</mo> </math> <math displaystyle="normal"> <munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>∞</mi></munderover><mi>i</mi> <mo>=</mo><mn>1</mn><mo>+</mo><mo>…</mo> </math>
Here is how they are rendered in the Web browser:
Note that some browser may fail to respect the displaystyle="normal" option. You can use MathJax Live Editor to see the differences.
⇐ Use "math" as Inline Element
2026-10-17, ∼1752🔥, 0💬
Popular Posts:
What is "Microsoft Access Outlook Add-in for Data Collection and Publishing" COM Add-in in Outlook 2...
Where to find answers to frequently asked questions on Microsoft Skype? I want to know how to know h...
What is "OneNote Notes about Word Documents" add-in in Microsoft Word? Should I disable it? "OneNote...
Why the "dir" command hangs when using the FTP command-line tool on Windows? when you run the "dir" ...
Where to find answers to frequently asked questions on Microsoft Outlook? I want to know how to know...