Search code examples
c#latexdoxygentexdocx

Convert TEX files to PDF or DOCX?


I'm using Doxygen to build an API library from C# source code. Doxygen generates a library of TEX files.

My client has asked for a PDF version of this API library so I need to convert the TEX file library into a single PDF or DOCX.

I've been looking into tools such as LyX, OpenOffice, and ProText but still haven't found a solution.

All suggetions welcome.


Solution

  • The simplest way to get pdf files is to use pdflatex. Any TeX installation will include it, including MikTeX and TeXLive, the two major Windows implementations. The conversion is perfect by definition because pdflatex is a standard LaTeX compiler.

    Other methods include dvi2pdf, dvi2ps followed by ps2pdf, etc. But these involve an additional step.

    To get a docx file is trickier. There are a range of tex to word converters. I've used Tex2Word with reasonable success, although there is always a deal of tidying up to do. Other tools are discussed here. Whatever you use, you will probably need to convert to doc first, and then to docx, as I don't think any of the conversion tools produce direct docx output.