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
                      • Integration architecture

                      Building Assessment Platforms with MathType

                      Reading time: 3min

                      Use this guide when building an assessment platform that requires mathematical authoring, semantic processing, or numerical evaluation. It summarizes the MathType features most commonly used in assessment workflows and links to the relevant documentation for each one.

                      This guide focuses on authoring mathematical expressions with MathType. If your platform eventually requires automatic grading of mathematical answers, you may also be interested in WirisQuizzes.

                       

                      Before you begin

                      Requirements

                      • A working MathType integration.
                      • Familiarity with Presentation MathML and Content MathML.
                      • Basic knowledge of the MathType editor parameters.

                      Applies to

                      MathType for HTML editors

                      Steps

                      Configure the authoring experience

                      Assessment platforms usually distinguish between authors, who create questions, and students, who answer them. MathType provides several features that help create mathematical expressions more efficiently while reducing authoring errors.

                      Configure Reserved Words

                      Many assessment platforms distinguish between predefined variables and ordinary identifiers. MathType allows those names to be configured as Reserved Words, which are displayed with a different font and, optionally, a custom color in the editor using the forceReservedWords and reservedWordsColor parameters. This helps authors immediately recognize predefined variables while editing expressions. 

                      For example, if P1267 represents a predefined variable in your platform:

                      editor.setParams({
                        // Comma-separated list of predefined variables
                        reservedWords: "sin,cos,tan,P1267",
                      
                        // Optionally highlight reserved words with a custom color
                        forceReservedWords: true,
                        reservedWordsColor: "#ff0000" // Defaults to "#0000ff"
                      });

                      The following example shows how Reserved Words appear inside the editor and the corresponding exported MathML.

                      <math xmlns="http://www.w3.org/1998/Math/MathML">
                       <mi>a</mi>
                       <mo>+</mo>
                       <mi>sin</mi>
                       <mo>(</mo>
                       <mi>P1267</mi>
                       <mo>)</mo>
                       <mo>-</mo>
                       <mi>P1267</mi>
                      </math>

                      Reserved Words are especially useful when authoring questions containing predefined variables or parameters.

                      Reserved Words provide visual differentiation inside the editor only. Their styling is not exported to MathML and they are not intended to store application-specific metadata.

                       

                      Enable Autoformat

                      Autoformat improves the authoring experience by automatically converting common keyboard sequences into mathematical notation while users type. For example:

                      auto1.png

                      It also automatically inserts matching parentheses, brackets, and braces, helping users write expressions faster and reducing typing mistakes.

                      You can see more details about how Autoformat works here.

                       

                      Customize the toolbar

                      Different users often require different editing tools. For example, content authors may need the full MathType toolbar, while students usually benefit from a simplified interface exposing only the most common mathematical constructs. MathType lets you define custom toolbars or use predefined toolbar configurations.

                      editor.setParams({
                        toolbar: 'quizzes',
                      });

                      You can see more details about how to Configure the MathType toolbar here.

                       

                      Process mathematical expressions

                      MathType edits mathematical expressions visually, while importing and exporting MathML. When designing MathML-centric workflows, it is useful to understand which MathML features are supported and how semantic information is handled.

                      Use Content MathML

                      MathType primarily edits Presentation MathML, but it can also import and generate Content MathML through the conversion services.

                      Content MathML represents the semantic meaning of mathematical expressions and is commonly used by assessment platforms for validation, interpretation, and evaluation.

                      You can see more details about Content MathML here.

                       

                      Check supported MathML features

                      MathType supports a large subset of Presentation MathML and Content MathML. Before designing workflows that rely on specific MathML elements or attributes, consult the compatibility reference.

                      You can see a complete list of the supported MathML elements and attributes here.

                       

                      Validate expressions

                      Many assessment workflows require formulas to be syntactically valid before they can be processed further.

                      Enable syntax checking

                      Syntax checking identifies expressions that are not valid according to MathType's internal grammar. For example:

                      • ✅ 3 + 5
                      • ✅ x + 2
                      • ❌ 3 +

                      Syntax checking is enabled through the checkSyntax editor parameter:

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

                      The evaluate toolbar is specifically designed for authoring expressions intended for numerical evaluation. This feature is particularly useful before converting expressions to Content MathML or passing them to downstream processing services.

                      Evaluate expressions

                      Some assessment platforms require numerical evaluation of mathematical expressions. MathType includes an expression evaluation engine that computes the numerical value of expressions represented as MathML. The evaluation engine:

                      • Operates on Content MathML.
                      • Automatically converts Presentation MathML before evaluation.
                      • Performs numerical evaluation.
                      • Is not a Computer Algebra System (CAS).

                      When building evaluation workflows, it is recommended to combine the evaluation toolbar with syntax checking.

                      You can see more details about the MathType expression evaluation engine and its capabilities here.

                       

                      Verify it worked

                      After configuring your platform:

                      • Authors can efficiently create mathematical expressions.
                      • Reserved words are displayed correctly.
                      • Syntax errors are highlighted.
                      • Expressions can be converted to Content MathML.
                      • Expressions can be evaluated when required.

                      Next steps

                      If your platform eventually requires automatic grading of mathematical answers, consider exploring WirisQuizzes.

                      Related

                      • MathType integrations architecture.
                      • MathType integrations deployment models.
                      • Autoformat.
                      • Content MathML.
                      • Supported MathML elements and attributes.
                      • Expression evaluation.
                      • Configure the MathType toolbar.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Integrate MathType with TinyMCE
                      • MathType Integration Services parameters
                      • MathType integrations deployment models

                      Building Assessment Platforms with MathType

                      Before you begin Requirements Applies to Steps Configure the authoring experience Configure Reserved Words Enable Autoformat Customize the toolbar Process mathematical expressions Use Content MathML Check supported MathML features Validate expressions Enable syntax checking Evaluate expressions Verify it worked Next steps Related

                      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