Packages and Style-Files
Subsections
Similar to the document-class mechanism described in
the previous sectionSectionsec:cls,
LATEX2HTML provides a mechanism whereby the code to translate specific
packages and style-files is automatically loaded, if such code is available.
For example, when use of a style such as german.sty
is detected in a LATEX source document, either by
- a usepackage command of LATEX2e;
- an option to the documentstyle command of LATEX 2.09 ;
- an explicit input or include command;
the translator looks for a corresponding .perl file
having the same file-name prefix;
e.g. the file $LATEX2HTMLDIR/styles/german.perl.
If such a .perl file is found,
then its code will be incorporated with the main script,
to be used as required.
This mechanism helps to keep the core script smaller, as well as making
it easier for others to contribute and share solutions on
how to translate specific style-files.
The current distribution includes the files to support the styles
listed in the table belowTable styles.
These provide good examples of how you can create
further extensions to LATEX2HTML.
The problem however, is that writing such extensions requires an understanding
of programming and of the way the processing in LATEX2HTML is organised.
Interfaces that are more “user-friendly” are being investigated.
Some of the techniques currently used are explained in
a later sectionSection sec:ext.