TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I work with a lot of word documents. I want to make some of these look better with LaTex, but it's almost impossible to manually extract images/equations and put them into a .tex file and then convert them to LaTex.

I know I might be asking for too much, but is there a nice, free way to do convert Word documents to .tex? I've tried Abiword and rtf2latex2e but neither worked too well. Word2TeX is the BEST option out there (gives extremely clean, almost-perfect .tex code), but sadly it is not free and it goes pretty deep in the pocket.

Just to clarify, I'm not looking for a way to store word documents in LaTex format just to make them look pretty. I genuinely want to convert a bunch of existing .docx files into LaTex so that my colleagues and I can maintain them in .tex format for future edits. Any advice would be appreciated.

share|improve this question
up vote 5 down vote accepted

I tried different commercial and free converters. All have there advantages and disadvantages but in the end I settled for the very nice docx2tex.

There were some troubles when the docx-file contains a mix of different fonts but other than that the output is reasonably good. With a bit of manual work I converted a 70 page thesis but have not tried the mathematical part much.

If you want commercial support there are also Word-to-Latex (www.grindeq.com) and another product under the same name Word-to-Latex (www.wordtolatex.com). Both have a free trial version.

For all tools you want to have a nicely structured Word document to start with. No converter can guess the structure of the document if sections are just formatted in bold, etc.

share|improve this answer
I do have nicely structured and formatted word documents to begin with. The main reason I want a Word to LaTex converter is that I'm ending up spending almost as much time manually formatting my Word documents. I'd much rather be doing that with LaTeX as the end result is so much better. The problem is that free options do not grab images very well from the Word docs. Commercial packages are out of my budget ($100) and I'm kind of desperate for a decent free alternative – prrao Feb 20 '12 at 20:16
docx2tex seems to work fine! It does have a few shortcomings but for a free tool it is simply amazing. Thanks! – prrao Feb 21 '12 at 17:43

Another solution for converting docx to TeX that I use, is to load the Word-file into LibreOffice and export it to LaTeX with the help of Writer2LaTeX. The new version 1.4 has lot of options for tinkering with the export filter.

Of course this assumes your Word-file can be converted to (or opened in) LibreOffice without lots of errors. The import filter in later versions version > 3.5.x is much better than before, but the docx-format is said to be complex and with some dark corners.

EDIT: If you are not able to, or willing to, install LibreOffice, in newer versions of Office (> 2010) you may in Word save the file as an .odt-file. Then you can use the command line facility of Writer2Latex to convert the .odt-file to LaTeX-format. See pages 13 ff. in the Wrtier2LaTeX-manual.

share|improve this answer

In my experience Pandoc does a decent job of converting from MS Word 2016 files (.docx) to LaTeX. After installation on OSX El Capitan, I ran the following command to convert my MS Word file:

pandoc -f docx -t latex -o out.tex in.docx

Granted you'll still have to make some edits to match the original, but it is way better than starting afresh and it's free. Also, it supports OSX, Windows and Linux.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.