Latex2html

From CUC3
Revision as of 15:38, 21 July 2008 by import>Csw34
Jump to navigation Jump to search

The latex2html script takes a latex document, and turns it into an equivalent set of HTML pages - broken down by section and then subsection. It generates an index.html page linking to each section and subsection as can be seen for the OPTIM documentation, here. The script itself is available for download here.

Installing the script

As you are most likely installing the script on a workstation where you do not have root access, you need to slightly deviate from the instructions in the INSTALL file. The first change is to the file pstoimg.pin. When converting from pmn to png, the latex2html script tells the converter to use a transparent background colour of 'gray85'. Unfortunately, the new version of the converter does not accept this and so you need to use the correct hex code instead, #D9D9D9.

Here are the before and after lines:

Before:

$trans_color = $TRANSPARENT_COLOR||'gray85';

After:

$trans_color = $TRANSPARENT_COLOR||'#D9D9D9';