MathML

Synthetic draws formulas in MathML, the web’s markup for mathematics. These are the elements a formula is most often made of, each with an example as written and as drawn.

Common elements

ElementDescriptionMarkupDrawn
<mi>Identifier (variable)<mi>x</mi>x
<mn>Number<mn>42</mn>42
<mo>Operator<mo>+</mo>+
<mfrac>Fraction<mfrac><mn>1</mn><mn>2</mn></mfrac>12
<msup>Superscript<msup><mi>x</mi><mn>2</mn></msup>x2
<msub>Subscript<msub><mi>x</mi><mn>1</mn></msub>x1
<msqrt>Square root<msqrt><mi>x</mi></msqrt>x
<mroot>Nth root<mroot><mi>x</mi><mn>3</mn></mroot>x3