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

                      Content MathML

                      Reading time: 1min

                      Reference describing how MathType works with Content MathML.

                      Summary

                      MathType primarily works with Presentation MathML, but it can also import, process, and convert Content MathML. Content MathML represents the semantic meaning of a formula. It describes what the expression means, rather than how it should be displayed.

                      Presentation MathML and Content MathML

                      Type Purpose Example elements
                      Presentation MathML Describes how a formula is displayed. <mfrac>, <msqrt>, <msub>, <msup>
                      Content MathML Describes the semantic meaning of a formula. <apply>, <plus>, <times>, <sin>

                      MathType uses Presentation MathML as its primary editing and rendering format. Content MathML can be used when semantic processing is required, such as conversion, syntax validation, or expression evaluation.

                      Supported behaviour

                      Feature Supported Notes
                      Content MathML input ✓ MathType can accept Content MathML as input.
                      Content MathML rendering ✓ Rendering services can render Content MathML.
                      Content MathML export Via conversion The editor generates Presentation MathML directly. Content MathML must be obtained by conversion.
                      Presentation to Content conversion ✓ Available through API services.
                      Content to Presentation conversion ✓ Available through API services.
                      Syntax checking ✓ Can be used to identify expressions that cannot be converted or evaluated.

                      Syntax checking

                      Syntax checking identifies formulas that are not valid according to MathType's internal grammar. This is useful when formulas need to be converted to Content MathML or evaluated.

                      For example, an incomplete expression such as 3+ is not considered valid.

                      screen1-1.png

                      Syntax checking can be enabled using the checkSyntax editor parameter.

                      editor.setParams({
                        checkSyntax: "true"
                      });

                      For evaluation workflows, syntax checking is commonly used together with the evaluate toolbar.

                      editor.setParams({
                        toolbar: "evaluate",
                        checkSyntax: "true"
                      });

                      Importing Content MathML

                      The MathType editor accepts both Presentation MathML and Content MathML as input. Rendering services can also use Content MathML when generating output formats such as SVG or PNG.

                      Exporting Content MathML

                      The MathType editor interface generates Presentation MathML. To obtain Content MathML, convert the generated Presentation MathML using the available MathType conversion services.

                      Conversion Description
                      Presentation MathML to Content MathML Converts visual MathML into semantic MathML.
                      Content MathML to Presentation MathML Converts semantic MathML into visual MathML.

                      See API services for endpoint and API details.

                       

                      Relationship with expression evaluation

                      Expression evaluation depends on Content MathML. When evaluating a formula, MathType converts the expression into Content MathML and then evaluates the resulting semantic expression tree.

                      See Expression evaluation for details.

                       

                      Notes

                      • Content MathML support depends on MathType's internal content grammar.
                      • Invalid or ambiguous expressions may fail syntax checking or conversion.
                      • Content MathML is most useful for semantic workflows such as evaluation, validation, or interoperability.

                      Related articles

                      • MathML coverage reference.
                      • Expression evaluation.
                      • API services.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • MathType Integration Services parameters
                      • MathType Editor parameters
                      • MathType Hand parameters
                      • WIRISplugins.js parameters
                      • Toolbar XML reference

                      Content MathML

                      Summary Presentation MathML and Content MathML Supported behaviour Syntax checking Importing Content MathML Exporting Content MathML Relationship with expression evaluation Notes Related articles

                      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