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, ∼1860🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Mozilla Firefox? I want to know how to know h...
How to connect FileZilla to an Anonymous FTP Server? If you know the server host name, you can conne...
How to find all section breaks in a Microsoft Word document? I want to review them. Section breaks i...
Why am I not seeing the "Call Forwarding" option on Skype for Business on Windows? You don't see the...
How to view the document.xml file with a Web browser? Since the document.xml file contains text cont...