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:
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, ∼1911🔥, 0💬
Popular Posts:
Where are Microsoft Teams files located on my Windows 7 system? If you have Microsoft Teams desktop ...
What is a PowerPoint Template (.potx) File? What is the difference between .potx and .pptx files? A ...
How to change the default Save Path on qBittorrent? By default, qBittorrent uses "Downloads" directo...
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
What are Link and Activity LEDs on Ethernet Socket? Link and Activity LEDs on Ethernet Socket are LE...