Wednesday, December 4, 2013

From Latex to DOCX

Latex is awesome!  I just thought I needed to say it straight up...seriously, I made the switch from Microsoft Word years ago and never looked back.

Having said that, Microsoft Word has its benefits.

Sometimes you find yourself wanting to convert you tex file into docx or any other format. This is not a trivial task. You can copy & paste or use online services but I always wanted to have a tool to do it on my computer.

I recently came across this nifty tool, pandoc, a universal document converter:

"If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to

It works great. I was able to convert from Latex to Word and get very decent results. It was able to port citation, figures and even mathematical equations!

I did have a problem setting it up to support new packages. In particular, it wouldn't detect my acronyms \ac{BLAH}.

I used sed utility to remove them. I know it's not ideal, but it worked for me.

I would like to thank John MacFarlane for creating such a great tool!

Let me know about your experieneces with the tool or maybe you can help me figure out how to make it support additional latex packages :)

Enjoy!

No comments:

Post a Comment