latex2html (1) Linux Manual Page
NAME
latex2html – translate LaTeX files to HTML (HyperText Markup Language)
SYNOPSIS
latex2html [options] [target [target …]]
DESCRIPTION
This manual page explains the LaTeX2HTML utility, which is a Perl program that translates LaTeX document into HTML format. For each source file given as an argument the translator will create a directory containing the corresponding HTML files. For details and examples, please consult the online html documentation, a copy of which should be available in /usr/share/doc/latex2html/manual.ps.gz or /usr/share/doc/latex2html/html/
CAVEAT
This documentation has been derived from the TeX manual, and may not be up to date. Please refer to the online manual for authoritative documentation.
Options controlling Titles, File-Names and Sectioning
-t <top-page-title>- Same as setting: $TITLE = <top-page-title>; Name the document using this title.
-short_extn- Same as setting: $SHORTEXTN = 1; Use a filename prefix of .htm for the produced
HTMLfiles. This is particularly useful for creating pages to be stored on CD-ROM or other media, to be used with operating systems that require a 3-character extension. -long_titles <num>- Same as setting: $LONG_TITLES = <num>; Instead of the standard names: node1.html, node2.html,… the filenames for each
HTMLpage are constructed from the first <num> words of the section heading for that page, separated by the `_’ character. Commas and common short words (a an to by of and for the) are omitted from both title and word-count. Warning: Use this switch with great caution. Currently there are no checks for uniqueness of names or overall length. Very long names can easily result from using this feature. -custom_titles- Same as setting: $CUSTOM_TITLES = 1; Instead of the standard names: node1.html, node2.html, … the filenames for each
HTMLpage are constructed using aPerlsubroutine named custom_title_hook . The user may define his/her own version of this subroutine, within a .latex2html-init file say, to override the default (which uses the standard names). This subroutine takes the section-heading as a parameter and must return the required name, or the empty string (default). -dir <output-directory>- Same as setting: $DESTDIR = <output-directory>; Redirect the output to the specified directory. The default behaviour is to create (or reuse) a directory having the same name as the prefix of the document being processed.
-no_subdir- Same as setting: $NO_SUBDIR = 1; Place the generated
HTMLfiles into the current directory. This overrides any $DESTDIR setting. -prefix <filename-prefix>- Same as setting: $PREFIX = <filename-prefix>; The <filename-prefix> will be prepended to all .gif, .pl and .html files produced, except for the top-level .html file; it may include a (relative) directory path. This will enable multiple products of
LaTeX2HTMLto peacefully coexist in the same directory. However, do not attempt to simultaneously run multiple instances ofLaTeX2HTMLusing the same output directory, else various temporary files will overwrite each other. -auto_prefix- Same as setting: $AUTO_PREFIX = 1; Constructs the prefix as `<title>-‘ to be prepended to all the files produced, where <title> is the name of the
LaTeXfile being processed. (Note the `-‘ in this prefix.) This overrides any $PREFIX setting. -no_auto_link- Same as setting: $NO_AUTO_LINK = 1; If $NO_AUTO_LINK is empty and variables $LINKPOINT and $LINKNAME are defined appropriately (as is the default in the latex2html.config file), then a hard link to the main
HTMLpage is produced, using the name supplied in $LINKNAME. Typically this is index.html; on many systems a file of this name will be used, if it exists, when a browser tries to view a URL which points to a directory. On other systems a different value for $LINKNAME may be appropriate. Typically $LINKPOINT has value $FILE.html, but this may also be changed to match whichever HTML page is to become the target of the automatic link. Use of the -no_auto_link switch cancels this automatic linking facility, when not required for a particular document. -split <num>- Same as setting: $MAX_SPLIT_DEPTH = <num>; (default is 8) Stop splitting sections into separate files at this depth. Specifying -split 0 will put the entire document into a single
HTMLfile. See below for the different levels of sectioning. Also see the next item for how to set a “relative” depth for splitting. -split +<num>- Same as setting: $MAX_SPLIT_DEPTH = -<num>; (default is 8) The level at which to stop splitting sections is calculated “relative to” the shallowest level of sectioning that occurs within the document. For example, if the document contains \section commands, but no \part or
