"mlabeledtr" - MathML Labeled Row Element

Q

How to use the MathML Labeled Row Element: "mlabeledtr"?

✍: FYIcenter.com

A

"mlabeledtr" is the MathML Table Row Element that allows you to specify a labeled row in a "mtable" element.

The syntax for "mlabeledtr" element is:

<mlabeledtr>label cell cell ... </mlabeledtr>

Here is an example of using the "mlabeledtr" element.

<math><mtable frame="solid" side="right">          
  <mlabeledtr><mtd><mtext>1</mtext></mtd>
  <mtd><mi>x</mi><mo>=</mo><mi>a</mi></mtd></mlabeledtr>     
  <mlabeledtr><mtd><mtext>2</mtext></mtd>
  <mtd><mi>y</mi><mo>=</mo><mi>b</mi></mtd></mlabeledtr>
  </mtable></math>
              
      1
      x=a     
      2
      y=b
      

Note that some Web browsers may not support "mlabeledtr" elements correctly. In that case, you may want to add row labels as extra cells in regular "mtr" elements as shown below:

<math><mtable frame="solid" columnalign="left" columnspacing="0.5in">          
  <mtr><mtd><mi>x</mi><mo>=</mo><mi>a</mi></mtd>
  <mtd><mtext>Vertcal line</mtext></mtd></mtr>     
  <mtr><mtd><mi>y</mi><mo>=</mo><mi>b</mi></mtd><mtd>
  <mtext>Horizontal line</mtext></mtd></mtr>
  </mtable></math>
              
      x=a
      Vertcal line     
      y=b
      Horizontal line
      

 

MathML (Mathematical Markup Language)

"mtd" - MathML Table Data Element

MathML Elements for Tables

⇑⇑ MathML (Mathematical Markup Language)

2025-04-11, 175🔥, 0💬