Wednesday, March 11, 2015

Importing LaTeX equations to MS Word

Hey,

This is how it is done.
The credit should go to original contributor at [here]


  • Let's assume your equation is x=y+z
  • Create the following .html file using your favorite text editor and insert the equation between $$ marks.


<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>tex texample</title>
</head>
<body>

$$x=y+z$$

</body>
</html>
  • View that in a web browser, right click and select "show MathML as/MathML Code"
  • Select all and copy it into your favorite text editor in a new document.
  • Add <?xml version="1.0"?> at the beginning and again copy everything.
  • Paste it in MS Word and there you have your equation.