Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (490)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Vertically Stretched (Fence) Operators
What are virtically stretched (fence) operators?
✍: FYIcenter.com
MathML defines a list of virtically stretched operators that are
stretched vertically to match the maximum height of neighboring elements.
Here are some examples:
The example below shows that 2 vertical bars are stretched to match the height of the fraction element.
<math><mo>|</mo><mo>−</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac><mo>|</mo>
<mo>=</mo><mn>0.5</mn></math>
Note that some old browsers do not support automatical stretched operators. In this case, you can add fence="true" and stretchy="true" attributes to force it:
<math><mo fence="true" stretchy="true">|</mo><mo>−</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac><mo fence="true" stretchy="true">|</mo>
<mo>=</mo><mn>0.5</mn></math>
Or try to use the <mfenced> element to replace stretched operators:
<math><mfenced open="|" close="|"><mrow><mo>−</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac></mrow></mfenced>
<mo>=</mo><mn>0.25</mn></math>
Or try to add <mrow> next to the operator to trigger the stretchy detection.
<math><mrow><mo>|</mo><mo>−</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac><mo>|</mo></mrow>
<mo>=</mo><mn>0.5</mn></math>
⇒ "mrow" as Virtical Stretch Boundary
⇐ Stretched and Large Operators
2026-10-24, ∼1881🔥, 0💬
Popular Posts:
How to unzip a Word Document .docx file? According to Microsoft documentation, a .docx file is reall...
Where to find answers to frequently asked questions on Microsoft Word? I want to know how to open PD...
How to find all section breaks in a Microsoft Word document? I want to review them. Section breaks i...
What is "Send to Bluetooth" in Microsoft Word? Should I disable it? "Send to Bluetooth" is a COM Add...
How to login to outlook.office365.com with a Browser? I have a company email account on Office365. I...