Operating System Information --> Unix (WAM and Glue) --> Unix Utilities --> How to convert a MS Word document to TeX -->

How to convert a MS Word document to TeX

The best (read "free") solution appears to be to save the MS Word document as RTF format, then use the program rtf2tex to convert to TeX. You may have to do some conversion by hand once you use rtf2tex. There is also a commercial alternative, which I'll provide information on later in this document.

There are no conversion programs on WAM or Glue to do this; you'll have to download the source from CTAN (Comprehensive TeX Archive Network) and compile it yourself. This was tried on Glue Solaris 2.6 on 4/29/99 and it compiled with no errors, but how well it works on any individual document remains to be seen.

The source of the information is from the "TeX Frequently Asked Questions" available at http://www.cogs.susx.ac.uk/cgi-bin/texfaq2html, and the source code for the package is available via 'Secure FTP' from ftp://ftp.tex.ac.uk/tex-archive/support/rtf2tex.tar.gz

Once you download the file "rtf2tex.tar.gz", you'll first need to unzip it with:

gunzip rtf2tex.tar.gz

This will leave you with a 'tar' format file containing the source. To break this out into its component pieces, type:

tar xf rtf2tex.tar

This will create a directory structure in your current directory of:

tex-archive/support/rtf2tex

Then, to make the files easier to find:

mv  tex-archive/support/rtf2tex  .    (Yes, type the period.   Move the source directory from three
     levels down, up to the current directory)
\rm  -rf  tex-archive/support     (Remove the now-empty directory structure)

Once you're done this, you'll be left with a directory "rtf2latex" in your current directory.

To create the program, change into the "rtf2tex" directory and compile the software using the make program:

cd rtf2tex
make

This will create the executable file rtf2TeX (note the capitalization in the command). There is a README file included in the source distribution which gives tips on using the executable.

There is also a commercial alternative named "Publishing Companion", from the K-Talk Corporation. The cost is about $400. You can find information at the Web sites:

http://www.ktalk.com
http://www.ktalk.com/pubcomp.html

on this software. Contact the vendor with any questions.

How do I:
How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site