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
| Element | Description | Markup | Drawn |
|---|---|---|---|
<mi> | Identifier (variable) | <mi>x</mi> | |
<mn> | Number | <mn>42</mn> | |
<mo> | Operator | <mo>+</mo> | |
<mfrac> | Fraction | <mfrac><mn>1</mn><mn>2</mn></mfrac> | |
<msup> | Superscript | <msup><mi>x</mi><mn>2</mn></msup> | |
<msub> | Subscript | <msub><mi>x</mi><mn>1</mn></msub> | |
<msqrt> | Square root | <msqrt><mi>x</mi></msqrt> | |
<mroot> | Nth root | <mroot><mi>x</mi><mn>3</mn></mroot> |