Wiris

Documentation / MathType

  • Demos
  • Visit our website
  • Downloads
  • Contact us
  • MathType

    • WirisQuizzes

      • Nubric

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • MathType
                      • Technical documentation
                      • MathType for HTML editors
                      • Reference

                      MathML coverage by MathType

                      Reading time: 4min

                      This reference lists the MathML elements and attributes supported by MathType Web. Use this article when validating MathML compatibility, troubleshooting import or rendering issues, or developing integrations that generate MathML programmatically.

                      MathType supports both Presentation MathML and Content MathML. Support may vary depending on the element, attribute, and operation being performed.

                      Requirements/Prerequisites:

                      • MathType Web.
                      • Basic familiarity with MathML.
                      • Access to the MathML source being tested or integrated.

                      Concepts:

                      Presentation MathML

                      Presentation MathML describes how mathematical expressions are displayed.

                      Common examples include:

                      • <mfrac>
                      • <msqrt>
                      • <msub>
                      • <msup>

                      Content MathML

                      Content MathML describes the semantic meaning of mathematical expressions.

                      Common examples include:

                      • <apply>
                      • <plus>
                      • <times>
                      • <sin>

                      Mixed markup

                      Mixed markup combines presentation and semantic information.

                      • <semantics>

                      Reference details

                      <math>

                      Attributes:

                      • dir = “rtl”
                      • display = “inline”
                      • indentalign = “auto”, “right”
                      • xmlns = “http://www.w3.org/1998/Math/MathML”
                      • wrs:positionable = “false”
                      • style = 
                        • “font-family: 'Courier New', 'Times New Roman', 'Tahoma', 'Verdana'”
                        • “font-size: 12px-30px, 36px, 48px or 72px”
                        • “max-width: 100px”

                       

                      Presentation MathML

                      The following Presentation MathML elements are supported.

                      <maction>
                      Attribute: 
                      actiontype = "argument"
                      <matrix> <matrixrow> <merror>
                      <menclose>
                      Attribute: 
                      notation = "", "actuarial", "bottom", "box", "box circle unknown", "circle", "downdiagonalstrike", "downdiagonalstrike updiagonalstrike", "horizontalstrike", "left", "longdiv", "madruwb", "northeastarrow", "phasorangle", "radical", "right", "roundedbox", "top", "unknown1 unknown2 unknown3", "updiagonalstrike", "verticalstrike", "verticalstrike horizontalstrike"
                      <mfenced>
                      Attributes:
                      close = "", ")", ">", "[", "]", "|", "||", "}", "⌉", "⌋", "⟧"
                      mathbackground = "#80FF80"
                      mathcolor = "#FF0000"
                      open = "", "(", "<", "[", "]", "{", "|", "||", "⌈", "⌊", "⟦"
                      separators = "", "|"
                      <mfrac>
                      Attributes:
                      bevelled = "true"
                      id = "fraction"
                      linethickness = "0"
                      mathbackground = "#80FF80"
                      <mi>
                      Attributes:
                      mathbackground = "#00FF00", "#80FF80", "#FF0000"
                      mathcolor = "#0000FF", "#191919", "#FF0000"
                      mathsize = "30pt", "40px", "72px"
                      mathvariant = "bold", "bold-double-struck", "bold-fraktur", "bold-italic", "bold-italic-double-struck", "bold-italic-fraktur", "bold-italic-script", "bold-script", "double-struck", "fraktur", "italic", "italic-double-struck", "italic-fraktur", "italic-script", "normal", "script"
                      style = "font-family:'Courier New'", "font-size:11px", "font-size:20px", "font-size:30pt", "font-size:40px", "text-align:right"
                      <mlongdiv>
                      Attributes:
                      charalign = "center"
                      charspacing = "0px"
                      longdivstyle = "shortstackedrightright"
                      stackalign = "left"
                      <mmultiscripts> <mphantom> <mprescripts>
                      <mn>
                      Attributes:
                      mathbackground = "#00AAFF", "#00FFFF", "#AABB00", "#FF0000", "#FFFF00", "cadetblue", "chocolate", "lightgreen", "orange", "purple", "rebeccapurple", "sienna", "steelblue", "yellow", "yellowgreen"
                      mathcolor = "#007F00", "#FAFAFA", "#FF0000"
                      mathsize = "24px", "72px"
                      mathvariant = "bold", "bold-italic", "italic", "normal"
                      <mo>
                      Attributes:
                      id = "division"
                      largeop = "true"
                      lspace = "mediummathspace", "veryverythickmathspace", "veryverythinmathspace"
                      mathbackground = "#00FF00", "#FF0000"
                      mathcolor = "#0000FF", "#007F00", "#FF0000"
                      mathvariant = "fraktur", "italic"
                      rspace = "mediummathspace", "veryverythickmathspace", "veryverythinmathspace"
                      stretchy = "false", "true"
                      style = "font-family:'Courier New'", "font-family:'Times New Roman'", "font-family:Arial", "font-family:Tahoma", "font-family:Verdana", "font-family:stix"
                      <mover>
                      Attribute: 
                      wrs:positionable = "false"
                      <mroot> <msrow> <msub>
                      <msubsup> <msup> <mtd>
                      <mtr> <munderover>  
                      <mrow>
                      Attributes:
                      id = "division"
                      style = "text-align:left"
                      wrs:positionable = "false", "true"
                      <mscarries>
                      Attribute: 
                      location = "e", "ne", "nw", "s", "se", "sw", "w"
                      <msgroup> <msrow>  
                      <msline>
                      Attributes:
                      length = "1", "2", "3", "5"
                      position = "1", "2", "3"
                      <mspace>
                      Attributes:
                      linebreak = "newline"
                      width = "-0.2em", "-0.3em", "0.4em", "0.5ex", "2em", "3px"
                      <msqrt>
                      Attribute: 
                      mathbackground = "#FFFF00"
                      <mstack>
                      Attributes:
                      charalign = "center"
                      charspacing = "0px", "30px"
                      stackalign = "left", "right"
                      <mstyle>
                      Attributes:
                      displaystyle = "false", "true"
                      indentalign = "auto", "center", "right"
                      mathbackground = "#88CC88"
                      mathcolor = "#ff0000", "#ff00ff"
                      mathsize = "20px", "24px", "28px", "36px", "72px"
                      mathvariant = "bold"
                      <mtable>
                      Attributes:
                      align = "SDKline -1", "SDKline 1", "SDKline 2", "bottom", "top"
                      columnalign = "left", "left right", "right", "right center left", "right left"
                      columnlines = "none solid solid none solid", "solid solid none"
                      columnspacing = "24px 6px 36px", "0px", "1.4ex", "12px", "24px", "2px"
                      equalcolumns = "true"
                      equalrows = "true"
                      frame = "solid"
                      framespacing = "20px", "20px 10px"
                      rowalign = "top bottom center"
                      rowlines = "none solid solid none", "solid none"
                      rowspacing = "0", "0.0ex", "1px"
                      <mtext>
                      Attributes:
                      mathcolor = "#ff0000"
                      mathvariant = "bold", "bold-italic", "italic"
                      <munder>
                      Attribute: 
                      wrs:positionable = "false"

                      Content MathML

                      The following Content MathML elements are supported.

                      <abs> <and> <arccos>
                      <apply>
                      Attribute: 
                      xref = "division", "fraction"
                      <arccosh> <arccot> <arccoth>
                      <arccsc> <arccsch> <arcsec>
                      <arcsech> <arcsin> <arcsinh>
                      <arctan> <arctanh> <bind>
                      <bvar> <ci> <condition>
                      <cn>
                      Attribute: 
                      type = "complex-cartesian", "complex-polar", "e-notation", "rational"
                      <conjugate> <cos> <cosh>
                      <cot> <coth> <csc>
                      <csch> <degree> <diff>
                      <divide> <domainofapplication> <emptyset>
                      <eq> <equivalent> <exists>
                      <exponentiale> <factorial> <factorof>
                      <floor> <forall> <gcd>
                      <gt> <imaginaryi> <implies>
                      <in> <infinity> <int>
                      <intersect> <inverse> <leq>
                      <interval>
                      Attribute: 
                      closure = "closed", "closed-open", "open", "open-closed"
                      <limit> <ln> <log>
                      <logSDK> <lowlimit> <lt>
                      <minus> <naturalnumbers> <neq>
                      <none> <not> <or>
                      <partialdiff> <pi> <plus>
                      <power> <product> <prsubset>
                      <reln> <root> <sec>
                      <sech> <selector> <sep>
                      <set> <setdiff> <sin>
                      <sinh> <sum> <tan>
                      <tanh> <tendsto> <times>
                      <transpose> <union> <uplimit>
                      <vector>    

                      Mixed markup

                      <semantics>

                      Example usage

                      Example of supported Presentation MathML:

                      
                      <math xmlns="http://www.w3.org/1998/Math/MathML">
                        <mstyle mathcolor="#ff0000" mathsize="24px">
                          <mfrac bevelled="true">
                            <mn>1</mn>
                            <mn>2</mn>
                          </mfrac>
                        </mstyle>
                      </math>

                      Example of supported Content MathML:

                      <math>
                        <apply xref="division">
                          <divide/>
                          <cn type="rational">1</cn>
                          <cn>2</cn>
                        </apply>
                      </math>
                      

                      Error handling

                      If a MathML element or attribute is not supported, MathType may ignore the unsupported value, render the expression differently than expected, or fail to import or convert the expression correctly.

                      When troubleshooting compatibility issues, verify that all elements and attributes used are listed in this reference.

                      Related resources

                      • Content MathML
                      • Expression evaluation
                      • MathML specification

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • MathType for WordPress
                      • Handwritten input

                      MathML coverage by MathType

                      Presentation MathML Content MathML Mixed markup Reference details Presentation MathML Content MathML Mixed markup Example usage Error handling Related resources

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Nubric

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand