Skip to content
Jonathan Chan edited this page Mar 12, 2024 · 1 revision

Tags

Tag Description Use
<math> root element <math display="block"></math>, <math display="inline"></math>
<mi> identifier
<mn> number
<mo> operator
<mrow> grouping
<mspace> spacing <mspace depth="" height="" width="" />
<mfrac> fraction <mfrac>numerator denominator</mfrac>
<mroot> nth root <mroot>base index</mroot>
<msqrt> square root <msqrt>base</msqrt>
<msub> postsubscript <msub>base subscript</msub>
<msup> postsupscript <msup>base supscript</msup>
<msubsup> postsubsupscript <msubsup>base subscript supscript</msubsup>
<munder> underscript <munder>base underscript</munder>
<mover> overscript <mover>base overscript</mover>
<munderover> underoverscript <munderover>base underscript overscript</munderover>
<mmultiscripts> {pre-, post-}{super-, sub-}scripts <mmultiscripts>base postsubscript postsuperscript<mprescripts/>presubscript presuperscript</mmultiscripts>
<mtable> tables, matrices <mtable><mtr><mtd></mtd></mtr></mtable>
<menclose> various enclosing notations <menclose notation=""></menclose> (see below)

Attributes

Attribute Values Description
notation longdiv, actuarial, box, roundedbox, circle, left, right, top, bottom, updiagonalstrike, downdiagonalstrike, verticalstrike, horizontalstrike, madruwb, updiagonalarrow, phasorangle various enclosing notations
mathvariant normal, bold, italic, bold-italic, double-struck, fraktur, script, bold-fraktur, bold-script, sans-serif, bold-sans-serif, sans-serif-italic, sans-serif-bold-italic, monospace text script style

Tips

  • To have delimiters surround an entire expression, use <mrow> outside of <mo> around the delimiters, e.g.
    <mrow>
    <mo>[</mo>
    <mtable>
      <mtr>
        <mtd>1</mtd><mtd>2</mtd>
      </mtr>
      <mtr>
        <mtd>3</mtd><mtd>4</mtd>
      </mtr>
    <mtable>
    <mo>]</mo>
    </mrow>
    
    for square brackets around a 2 × 2 matrix.
  • The XML Entity Definitions for Characters has character entity references you can use for symbols, e.g. &int; for ∫