Skip to content

How to Insert LaTeX Equations in Word: Modern and Older Versions

LaTeX equation to Ms Word

Modern desktop versions of Microsoft Word support LaTeX-style equation input for many common mathematical expressions. Insert an equation, switch its input format to LaTeX when available, enter supported syntax and convert it to professional formatting. Older Word versions may require an alternate workflow, and not every LaTeX package or command is supported.

1: Direct LaTeX support in Office 365

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.

Steps to convert LaTeX equation to native format

  1. Insert Equation Editor by going to Insert Tab > Equation or by hitting “Alt+=” (a keyboard shortcut for Equation Editor)
  2. Put the Equation Editor in LaTeX mode by clicking “{} LaTeX” in Equation/Design tab.
Activate LaTeX mode in Ms Word
Activate LaTeX mode in Ms Word
  1. Type LaTeX in Equation Editor
LaTeX equation in Word
LaTeX equation in Word
  1. Click “Convert” drop-down menu in Equation/Design tab and select “Current-Professional”
Converting LaTeX equation to Ms Word
Converting LaTeX equation to Ms Word
  1. The above method will process the LaTeX into Ms Word equation’s native format as follows
Final converted equation
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.

  1. 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

    \[as --> 	<!-- e.g.\]

y=\int_{0}^{\pi}sin(x)dx

    \[-->\]

    \[\]

    \[</body> </html></code></pre> <!-- /wp:prismatic/blocks --> <!-- wp:list --> <ul><li>Insert LaTeX equation (say 0 \leq \lim_{n\to \infty}\frac{n!}{(2n)!}) between\]

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
    How to get MathML code of LaTeX equation
    1. 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.

    The list of important Math Autocorrect shortcuts are covered in my blog. Using Math Autocorrect you can type Math symbols and equation including Greek symbols, subscript and superscript, fraction, Math and science Symbols, Integration, Matrix, etc.

    Math Autocorrect Feature of Ms Word in Action
    Math Autocorrect Feature of Ms Word in Action

    Modern Word equation workflow

    In Word for Windows, press Alt+= to insert an equation or choose Insert > Equation. Use the Equation ribbon to choose LaTeX input where supported. Enter an expression such as \frac{a}{b}, then convert it to professional display. Word's equation editor is not a full LaTeX compiler, so complex environments and custom macros may fail.

    Older Word versions and MathML

    For Word versions without direct LaTeX input, consider converting a supported expression to MathML or using a compatible equation editor. Conversion quality varies; test fractions, matrices, accents and equation numbering after import. Avoid assuming an online converter preserves all mathematical semantics.

    Troubleshooting equation conversion

    If the equation remains literal text, confirm the cursor is inside an equation and the input mode is LaTeX rather than UnicodeMath. Check for unsupported commands or missing braces. For Word equation accent techniques, see Word equation accent shortcuts.

    Leave a Reply

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