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:
Use "mtable" for Linebreaking and Indentation
How to use <mtable> tag a workaround to force linebreaks and indentations?
✍: FYIcenter.com
<mtable> tags are good solutions to control line breaks,
indentations and alignments.
Here is a good example of using <mtable> to display a multi-line formula with comments:
<math display="block">
<mtable columnspacing="0.1in" columnalign="left">
<mtr>
<mtd><mi>y</mi></mtd>
<mtd><mo>=</mo></mtd>
<mtd> <mfrac>
<mrow> <msup><mi>x</mi><mn>2</mn></msup> <mo>−</mo> <mn>4</mn> </mrow>
<mrow> <mi>x</mi><mo>−</mo><mn>2</mn> </mrow>
</mfrac> </mtd>
<mtd><mtext>where</mtext><mspace width="0.3em"/>
<mi>x</mi><mo>≠</mo><mn>2</mn></mtd>
</mtr> <mtr>
<mtd></mtd>
<mtd><mo>=</mo></mtd>
<mtd> <mfrac>
<mrow>
<mo>(</mo> <mi>x</mi><mo>+</mo><mn>2</mn> <mo>)</mo> <mo>⁢</mo>
<mo>(</mo> <mi>x</mi><mo>−</mo><mn>2</mn> <mo>)</mo>
</mrow>
<mrow> <mi>x</mi><mo>−</mo><mn>2</mn> </mrow>
</mfrac> </mtd>
<mtd><mtext>factoring</mtext><mspace width="0.3em"/>
<msup><mi>x</mi><mn>2</mn></msup> <mo>−</mo> <mn>4</mn></mtd>
</mtr> <mtr>
<mtd></mtd>
<mtd><mo>=</mo></mtd>
<mtd><mi>x</mi><mo>+</mo><mn>2</mn></mtd>
<mtd><mtext>cancelling</mtext><mspace width="0.3em"/>
<mi>x</mi><mo>−</mo><mn>2</mn></mtd>
</mtr>
</mtable>
</math>
⇒ Use "columnwidth" for Cross Formula Alignment
⇐ Forced Linebreaking on "mspace" Tags
2026-10-17, ∼1778🔥, 0💬
Popular Posts:
What is "OneNote Notes about Word Documents" add-in in Microsoft Word? Should I disable it? "OneNote...
How to unzip a Word Document .docx file? According to Microsoft documentation, a .docx file is reall...
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
Where does Mozilla Firefox 2 store download files? When you download files from Websites, Mozilla Fi...
What is "Send to Bluetooth" in Microsoft Word? Should I disable it? "Send to Bluetooth" is a COM Add...