1

I have mathematical expressions in word document. Is it possible to export data as MATHML format?

For example below formula existed in a word as a mathematical expression.

enter image description here

Above expression should represent as below MATHML code.

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> 
<mrow> 
<mi>x</mi> 
<mo>=</mo> 
<mfrac> 
<mrow> 
<mo>&#x2212;</mo> 
<mi>b</mi> 
<mo>&#xB1;</mo> 
<msqrt> 
<mrow> 
<msup> 
<mi>b</mi> 
<mn>2</mn> 
</msup> 
<mo>&#x2212;</mo> 
<mn>4</mn> 
<mi>a</mi> 
<mi>c</mi> 
</mrow> 
</msqrt> 
</mrow> 
<mrow> 
<mn>2</mn> 
<mi>a</mi> 
</mrow> 
</mfrac> 

I am able to paste the above example MATHML into word and it will create a graphic. But I am unable create MATHML from existing graphic (in MS Word).

Thank you for your help

sridharnetha
  • 2,104
  • 8
  • 35
  • 69
  • See this other answer; it contains an example conversion from OpenXML to MathML http://stackoverflow.com/questions/16759100/how-to-parse-mathml-in-output-of-wordopenxml – Chris Nov 30 '15 at 19:36

1 Answers1

0

Office includes omml2mml.xsl; you can Google that for more info.

JasonPlutext
  • 15,352
  • 4
  • 44
  • 84
  • I just did. This useless answer is the #1 result on google. – Mike Aug 21 '15 at 01:03
  • 1
    Thanks to your constructive comment (ahem...), I noticed the stylesheet name was wrong and have fixed that in the answer. Google now yields results such as http://blogs.msdn.com/b/murrays/archive/2008/07/28/improved-mathml-support-in-word-2007.aspx – JasonPlutext Aug 21 '15 at 02:57