Generating MathML Code for Equations with MathType

MathType is a software tool you can use with Microsoft Word to create documents with mathematical equations. You can then generate MathML code for the equations. In this blog I will show how you can do this.

MathType installation will create a MathType tab on Microsoft Word, which you then use to insert equations. screenshot of inserting equation with MathType on Microsoft Word

Inserting an equation in MathTypeAfter inserting the equation you want to convert to MathML, click on the equation and open the MathType editor. Go to Preferences > Cut and Copy Preferences. Now select MathML or Tex radio button and from the dropdown select MathML 2.0 (namespace attr) and select OK.

Options on MathType Cut and Copy Preferences dialog
MathType Cut and Copy Preferences

Now you can copy the equation from MathType dialog and paste it onto a text editor. I have used notepad for this. It will give the MathML code for the equation you have created.

Generated MathML Code for the created equation
MathML Code

If you are using this code in Moodle pages there is a setting you need to change which I will discuss in my next post.

 

Leave a Reply

Your email address will not be published. Required fields are marked *