-
MathType
-
WirisQuizzes
-
Nubric
-
CalcMe
-
MathPlayer
-
Store FAQ
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
LaTeX support
Reading time: 2minReference describing how MathType detects, stores, renders, and edits LaTeX expressions.
Summary
MathType supports LaTeX expressions by converting them into MathML while preserving the original LaTeX source. This allows formulas to be edited visually in MathType while keeping the original LaTeX available for future editing or interoperability.
Supported behaviour
| Behaviour | Notes |
|---|---|
| Render LaTeX expressions | Expressions enclosed in $$...$$ are rendered automatically. |
| Visual editing | Existing LaTeX expressions can be edited using the MathType editor. |
| Source editing | Authors may edit the original LaTeX directly in the HTML editor. |
| Store formulas as MathML | Formulas are converted to MathML before storage. |
| Preserve the original LaTeX | Stored inside the MathML as a LaTeX annotation. |
Delimiters
MathType recognizes LaTeX expressions enclosed in double dollar signs.
| Delimiter | Description |
|---|---|
$$...$$ |
Marks a mathematical expression to be processed by MathType. |
Storage model
When MathType encounters a supported LaTeX expression:
- The LaTeX expression is parsed.
- It is converted into MathML.
- The original LaTeX is preserved inside the MathML using a
<semantics>/<annotation>element. - The resulting MathML becomes the formula's stored representation.
For example:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
<annotation encoding="LaTeX">\frac12</annotation>
</semantics>
</math>When the content is edited again, MathType retrieves the original LaTeX from the annotation.

Supported LaTeX
MathType supports LaTeX constructs that can be translated to and from MathML. Support, therefore, depends on the compatibility between both formats. Typical supported constructs include:
- Fractions.
- Roots.
- Superscripts and subscripts.
- Matrices.
- Greek letters.
- Operators.
- Integrals.
- Summations.
- Most standard mathematical notation
You can see all the LaTeX expressions supported by MathType in LaTeX coverage reference. See Formula gallery for some examples of supported LaTeX.
Limitations
MathType does not support every possible LaTeX construct. Limitations include:
- Custom commands defined by LaTeX packages.
- Document formatting commands.
- Package-specific extensions.
- Expressions that have no equivalent MathML representation.
MathType focuses on mathematical notation that can be represented in MathML.
Configuration
The server-side parameter wiriseditorparselatex controls whether LaTeX expressions are converted to MathML during processing.
| Parameter | Default | Description |
|---|---|---|
wiriseditorparselatex |
true |
Parses LaTeX expressions and stores them as MathML while preserving the original LaTeX annotation. |
When disabled, LaTeX expressions remain unchanged and must be processed by another LaTeX renderer.
See MathType Integration Services parameters for the complete parameter reference.
Compatibility
If another LaTeX renderer is active, both renderers may attempt to process the same expression. For example, in Moodle, the TeX Filter should be disabled if MathType is expected to process LaTeX expressions.
Example
wiriseditorparselatex = true
LaTeX is parsed and stored as MathML with a LaTeX annotation.
<math xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<mn>1</mn>
<mo>+</mo>
<mn>2</mn>
<annotation encoding="LaTeX">1+2</annotation>
</semantics>
</math>MathType renders this MathML as a formula image.
wiriseditorparselatex = false
LaTeX is not parsed or stored as MathML.
$$1+2$$MathType does not render this LaTeX code as a formula image. A separate LaTeX renderer must be used.
Notes
- LaTeX support is intended for mathematical notation.
- MathML remains the canonical storage format used by MathType.
- The original LaTeX source is preserved whenever possible.