[l2h] Adding html-code to the <HEAD> section

Julius Smith Julius Smith <jos@w3k.org>
Mon, 02 Oct 2000 16:23:14 -0700

At 06:17 PM 3/1/2000 +0100, Thomas Anders wrote:
>On Mar 1, 17:33, uliw@erdw.ethz.ch wrote:
> > I wonder whether it is possible to add abitrary code (e.g. JavaScript),
> > which is defined inside a latex-document, into the <HEAD> section of
> > the generated html-doc? I looked through the manual, but without any
> > luck...
>Define your own subroutine "meta_information" (use the one in
>latex2html.config as a template) or use the variable $LATEX2HTML_META
>(although I haven't tried the latter yet).

In v99.2 beta 6, setting $LATEX2HTML_META cancels the existing setting, 
which is (from latex2html.pin)

         . "\n<META HTTP-EQUIV=\"Content-Style-Type\" CONTENT=\"text/css\">"
               unless ($LATEX2HTML_META);

Similarly, overriding &meta_information() seems to require rewriting the 
whole thing.  It seems that what we really need is a new variable 
$LATEX2HTML_META_HOOK and/or something like

     . &custom_META_hook($_) if (defined &custom_META_hook)

in the existing meta_information sub.