-
MathType
-
WirisQuizzes
-
Nubric
-
CalcMe
-
MathPlayer
-
Store FAQ
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Open MathML input window in MathType for Microsoft 365
Reading time: 3minMathType's MathML input/output window lets you move between MathML code and visually editable equations in Microsoft Word. You can use it to create an equation from existing MathML code or retrieve the code of an equation already created with MathType.
After converting the code, you can review and edit the resulting equation in the MathType editor before inserting it into your document.
Before you begin
Requirements
The MathType Add-in for Microsoft 365 must be installed and activated.
Applies to
Microsoft Word desktop for Windows and macOS.
The Open MathML option is not available in Word Online or Word for iPad.
See it in action
Watch this video to see how to work with MathML code using the MathType Add-in:
Steps
Create an equation from MathML code
The MathML input/output window lets you use existing MathML code to create an equation in MathType.
- Open a document in the Microsoft Word desktop application.
- Open the MathType Add-in tab in the Word ribbon.
- Select Open MathML.
- Locate the empty element at the end of the code displayed in the MathML input/output window. The surrounding code reflects your current default font and size settings and may differ depending on the options you have selected.
- Enter or paste your MathML equation content inside the empty
<mstyle>element. Change the self-closing element into opening and closing tags, as shown in this example:<math style="font-family:'Times New Roman'" xmlns="http://www.w3.org/1998/Math/MathML"><mstyle mathsize="11px">YOUR MATHML CODE</mstyle></math> - Select Submit.
- Review the resulting equation in the MathType editor.
- Select Insert to add the equation to the document.
MathType supports a defined set of MathML elements and attributes. Before entering or pasting MathML, see the MathML coverage reference to check which elements, attributes, and structures MathType supports.
Checkpoint: The MathML code should appear as an equation in the MathType editor and then in your Word document.

Get the MathML code of an equation
Retrieving the MathML code lets you reuse the mathematical content of an existing MathType equation in another MathML-compatible application or environment.
- Select the MathType equation in the Word document.
- Open the MathType Add-in tab.
- Select Open MathML.
- Review the MathML code displayed in the input/output window.
- Copy the code if you want to reuse it elsewhere.
Checkpoint: The MathML input/output window should display the code corresponding to the selected equation.
Verify it worked
- When entering MathML code, selecting Submit displays the corresponding equation in the MathType editor.
- When opening an existing equation with Open MathML, the input/output window displays its MathML code.
Options and variations
Open MathML from the MathType editor
When the MathType editor is already open, press Ctrl+Shift+X on Windows or macOS to access the MathML code of the equation currently displayed in the editor. You can then replace or modify the code to update the equation, or copy it for use elsewhere.
The Ctrl+Shift+X shortcut only works when the MathType editor is open. It does not open the MathML input/output window directly from Microsoft Word. From Word, use Open MathML in the MathType Add-in tab.
Paste MathML directly into the editor
If you already have MathML code, you can paste it directly into the MathType visual editor. MathType converts supported MathML code into a visually editable equation without requiring you to open the MathML input/output window.
Edit before inserting
After submitting or pasting the MathML code, you can continue editing the resulting equation in the MathType editor before inserting it into Word.
Common errors
The Open MathML option does not appear
This option is only available in the Microsoft Word desktop application for Windows and macOS. It is not available in Word Online or Word for iPad.
The code of an existing equation does not appear
Select the MathType equation in the document before selecting Open MathML. If you are using the keyboard shortcut, first open the selected equation in the MathType editor and then press Ctrl+Shift+X.
The equation does not appear in the MathType editor
Make sure the MathML equation content is inside the existing wrapper and that all opening and closing tags are correctly paired. Then select Submit.
If the code is not converted as expected, check its syntax and consult the MathML coverage reference to confirm that its elements, attributes, and structures are supported.