>
>
> Hi, I am new to this list, so please let me know if this is a FAQ: it has
> been asked in the mailing-list archive, but never answered.
>
> Simply, I want to have latex2html produce JavaScript as part of it's
> output. The JavaScript code must appear between the <HEAD> and </HEAD>
> tags to be interpreted correctly. (How) can I achieve this? I have written
> a "my-style.perl" file which outputs the JavaScript okay, but is there a
> way to get it to go in the document header? At the moment I have to
> post-edit the HTML.
>
There is no mechanism designed specifically for this, however
in LaTeX2HTML V98.2 the following line occurs in the subroutine &initialise
$LATEX2HTML_META = '<META NAME="Generator" CONTENT="LaTeX2HTML
v'.$TEX2HTMLV_SHORT.'">'
. "\n<META HTTP-EQUIV=\"Content-Style-Type\" CONTENT=\"text/css\">"
unless ($LATEX2HTML_META);
The contents of $LATEX2HTML_META are placed verbatim into the <HEAD>...</HEAD>
portion of the HTML page.
If you define $LATEX2HTML_META to have a different value, then that will be
placed instead. Note that it must be a constant string; there is no evaluation
of functions, or expansion of macros, performed on the data provided this way.
Furthermore, the new value of $LATEX2HTML_META must be given in an initialisation
file, since &initialise is called before any translation of macros,
hence before your my-style.perl is read.
Hope this helps,
Ross Moore