Word – Type math formulas in Microsoft Word the LaTeX way

latexmicrosoft wordworksheet-function

I wonder if there is some free solutions for typing math formulas the LaTeX way in Microsoft Word document (Office 2007)?

Best Answer

If you are running Office 365 version 1707 or later, the Equation Editor allows you to convert LaTex into the native format. See the first part of this answer.

In older versions of Office, the Equation Editor can understand certain LaTeX components. However, it builds the equation as you go, and you cannot convert an entire LaTeX equation. See the second part of this answer if you are running:

  • WinWord 2007, 2010, 2013, and 2016
  • MacWord 2011 and 2016

On Office 365 version 1707 or later

  1. Put the Equation Editor into LaTeX mode. In the Equation Editor Design ribbon, go to the Conversions group and click LaTeX.

    Conversions group on the Equation Editor-Design ribbon

  2. Type the LaTeX.

    After entering LaTeX equation

  3. Open the Convert dropdown menu and click Current - Professional.

    Convert menu, Current - Professional

  4. The LaTeX will be processed into the Equation Editor's native format.

    Resulting equation

You can also convert back to LaTeX to edit the equation.

  1. Open the Convert dropdown menu, and then click Current - Linear.
  2. The equation is converted back to LaTeX format. Note: This is not your original LaTeX source, because it has been round-tripped through the Equation Editor's internal format.
  3. Open the Convert dropdown menu, and then click Current - Professional.

You have to use the dropdown menu because the Convert button doesn't toggle automatically between Linear and Professional. It keeps the last-used command.

There are some limitations. For example, the Office 365 Equation Editor does not understand the \begin and \end commands. See the Microsoft documentation for examples and possible workarounds:


On Office 2007-2016 (Mac Office 2011-2016)

Very few people realize that the built-in equation editor in Word 2007 actually understands LaTeX-style equation entry. Simply insert a new equation, and then type LaTeX into it. As you type, Word will build up a graphical representation of the equation.

LaTeX-style equation entry in Word 2007 and above

Once it appears in the GUI, you can no longer edit it as LaTeX. Word does not have an embedded TeX processor -- it's just doing pattern matching to convert simple LaTeX syntax into the native equation format. You should therefore not expect to get perfect fidelity for super-complex LaTeX equations. However, it's enough for probably anyone but a mathematician, and it's a lot faster than clicking elements with the mouse.

The Word 2007 equation editor also has a linear equation entry format, which is fairly intuitive and does not require familiarity with LaTeX. For example, typing in (a+b)/(c+d) will result in a nicely-formatted fraction.

Linear equation entry in Word 2007 and above

Notes:

  1. Many scientific journals will not accept Word documents with the new equation format -- even if you save as .doc instead of .docx.

  2. This doesn't turn Word into LaTeX. It just does the equations themselves, and nothing else. You don't even get equation numbering.

Related Question