LaTeX provides lots of features for typing complex mathematical equations with ease compared to other softwares like Ms Word. Microsoft has recognized this and started supporting LaTeX in Office-365. However, if you have an older version of Ms Word you can still bring LaTeX equation into it. This blog covers 3 different ways to bring LaTeX equation in Ms Word.
Office 365 version 1707 or later allows you to convert LaTeX equation into Ms Words native format (see the following steps). For the older version of Ms Word/Office you can still use Method 2 or Method 3.
Put the Equation Editor in LaTeX mode by clicking “{} LaTeX” in Equation/Design tab.
Activate LaTeX mode in Ms Word
Type LaTeX in Equation Editor
LaTeX equation in Word
Click “Convert” drop-down menu in Equation/Design tab and select “Current-Professional”
Converting LaTeX equation to Ms Word
The above method will process the LaTeX into Ms Word equation’s native format as follows
Final converted equation
2: LaTeX to MathML to Ms Word [2007-365 (2011 to 365 Mac Office)]
If your Ms Word version doesn’t support above method, then you can use this (or next) method.
In this method, you copy MathML code of LaTeX equation and paste it into Ms Word(as keep text only) to get an equation in Ms Word.
Get MathML code of LaTeX equation using following steps
Let’s say you have LaTeX equation for which you need MathML code.
Copy the following text and paste it in notepad/notepad++ or any other text editor (not document processing software like Ms Word).
<!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>
<!-- This is comment -->
<!-- Put your LaTeX between
y=\int_{0}^{\pi}sin(x)dx
sign and save the file with .html extension. If you have more than one equation, put each equation in separate enclosing signs.
Open above html file in a browser like Chrome (If everything is set-up correctly and you have an internet connection, then you should see equation)
Right click equation and choose "Show Math As" → "MathML code"
How to get MathML code of LaTeX equation
Step 2 Copy the MathML code and paste it in Ms Word and simultaneously hit "Ctrl" and "T". Alternatively, you can go to the small Ctrl image at the end of the MathML Code you pasted and select the option "Keep text Only"
3: Math Autocorrect option of Ms Word (Word 2007 and above)
Ms Word provides simple and easy to learn Math Autocorrect option to type Math. This option is very much LaTeX. You simple type Math Autocorrect shortcut in equation editor and hit space to get desired math symbol.
C P Gupta is a YouTuber and Blogger. He is expert in Microsoft Word, Excel and PowerPoint. His YouTube channel @pickupbrain is very popular and has crossed 9.9 Million Views.