{"id":1585,"date":"2020-02-21T10:08:23","date_gmt":"2020-02-21T10:08:23","guid":{"rendered":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/?p=1585"},"modified":"2020-02-21T10:33:54","modified_gmt":"2020-02-21T10:33:54","slug":"generating-mathml-code-for-equations-with-mathtype","status":"publish","type":"post","link":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/posts\/1585","title":{"rendered":"Generating MathML Code for Equations with MathType"},"content":{"rendered":"<p><a href=\"https:\/\/www.dessci.com\/en\/products\/mathtype\/\">MathType<\/a> 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.<\/p>\n<p>MathType installation will create a MathType tab on Microsoft Word, which you then use to insert equations.\u00a0<a style=\"font-weight: bold;\" href=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1586\" src=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-3.png\" alt=\"screenshot of inserting equation with MathType on Microsoft Word\" width=\"683\" height=\"430\" srcset=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-3.png 874w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-3-300x189.png 300w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-3-768x483.png 768w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/a><\/p>\n<p>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 <strong>Preferences &gt; Cut and Copy Preferences<\/strong>. Now select <strong> MathML or Tex <\/strong> radio button and from the dropdown select <strong> MathML 2.0 (namespace attr) <\/strong> and select OK.<\/p>\n<figure id=\"attachment_1588\" aria-describedby=\"caption-attachment-1588\" style=\"width: 872px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1588\" src=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-7.png\" alt=\"Options on MathType Cut and Copy Preferences dialog\" width=\"872\" height=\"530\" srcset=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-7.png 872w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-7-300x182.png 300w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-7-768x467.png 768w\" sizes=\"(max-width: 872px) 100vw, 872px\" \/><\/a><figcaption id=\"caption-attachment-1588\" class=\"wp-caption-text\">MathType Cut and Copy Preferences<\/figcaption><\/figure>\n<p>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.<\/p>\n<figure id=\"attachment_1590\" aria-describedby=\"caption-attachment-1590\" style=\"width: 654px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1590\" src=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-9.png\" alt=\"Generated MathML Code for the created equation\" width=\"654\" height=\"574\" srcset=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-9.png 654w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2020\/02\/screen-9-300x263.png 300w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/a><figcaption id=\"caption-attachment-1590\" class=\"wp-caption-text\">MathML Code<\/figcaption><\/figure>\n<p>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.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n","protected":false},"author":10,"featured_media":1573,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,68],"tags":[26,152,153,154,146,155,150,151],"_links":{"self":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/1585"}],"collection":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/comments?post=1585"}],"version-history":[{"count":3,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/1585\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/1585\/revisions\/1591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/media\/1573"}],"wp:attachment":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/media?parent=1585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/categories?post=1585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/tags?post=1585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}