-
MathType
-
WirisQuizzes
-
Nubric
-
CalcMe
-
MathPlayer
-
Store FAQ
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Content MathML
Reading time: 1minReference 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.

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.