LaTeX to Word – LaTeX

Here is how to change a .tex file to .html (and then ultimately .doc).

Installing latex2html

Only one way really.

sudo port install latex2html

Using latex2html

Just a very quick and easy line here…

latex2html -html_version 4.0,latin1,unicode -split 1 -nonavigation -noinfo my_file.tex

A few things.

First, for the bibliography to work, the .tex file has to be compiled, so you get all the other things there, like the .bbl file for the bibliography.

Also, it would be a good idea to cd to the folder containing the input .tex file.

Finally, the output is a folder in the same directory, where you will find an index.html file which can then be right-clicked and opened in word.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s