As summarized above in §4 (and in the file webpubdemo/INSTALL), the file webpubdemo/dot-latex2html-init should be copied into your login directory, renamed to .latex2html-init, and edited to install your name, user name, address, and the like.
This init file adds the following features to latex2html:
When editing .latex2html-init, keep in mind that it is a Perl script executed by latex2html after its own initialization. As a result, since latex2html is just a Perl script itself, your .latex2html-init can be used to override any variables or functions in latex2html. Also note that the .l2h file in each document directory can further override settings on a document by document basis. See, for example, webpubdemo/mybook/mybook.l2h for the sorts of things expected in the .l2h file. For your reading convenience, that file is listed below:
# Perl script webpubdemo/mybook/mybook.l2h $MYNAMEDOCDIR = "mybook"; $MYNAMEDOCTITLE = "My Book Title"; $MYNAMEDOCAUTHORS = $MYNAME; $MYNAMEDOCPUBINFO = "Bibliographic citation goes here"; $NOHARDCOPIES = 1; # Reasonable choice for books in print $ADDRESS = &make_myname_address; 1; # This must be the last lineNote the $NOHARDCOPIES variable which is used to suppress the PDF link in the HTML. Read the .l2h files in the other examples for more suggestions like this.
As enumerated in §4, customization of .latex2html-init usually goes as follows:
$JOSHOME = "http://ccrma.stanford.edu/~jos";
$JOS = "<A href=\"" . \$JOSHOME . "/\">Julius O. Smith III</A>";Note that double-quote must be quoted with a backslash (
\"
) in
a Perl string.
# Perl script webpubdemo/mybook/mybook.l2h $JOSDOCDIR = "mybookdirectory"; $JOSDOCTITLE = "My Book Title"; $JOSDOCAUTHORS = $JOS; $JOSDOCPUBINFO = "Bibliographic citation goes here"; $ADDRESS = &make_jos_address; # Call the subroutine in the init file 1; # This must be the last line (return true for success)