There is probably a better way to do this -- if so I'm all ears.
I want to customize the Info page (usually titled "About this
page..."), and I want to be able to include the document title that is
defined via the LaTEX \title command.
l2h is able to insert the document title, date of translation, etc.,
via the following PERL vars in &do_cmd_textohtmlinfopage:
$t_title document title
$arvg command line flags
$address_data[0] user name of initiator
$address_data[1] date of translation
But $t_title is of course not configured when the latex2html.config
file is required, so it is not available to me if I want to insert the
document title into the $INFO variable.
There is a hook called on every page: &replace_infopage_hook. What I
did was insert a placeholder into the info page and then replace it
with my title, like this:
$INFO = "THISISTHEPLACEHOLDERFORMYCUSTOMINFOPAGEHACK";
sub replace_infopage_hook {
local($icc_infopage) = join(''
,"This is my custom page<P>"
,"Document title is <STRONG>$t_title</STRONG>");
s/THISISTHEPLACEHOLDERFORMYCUSTOMINFOPAGEHACK/$icc_infopage/;
}
This would work except that $t_title is -still- not configured when
&replace_infopage_hook is called.
Anyone know a way to do what I want?
Thanks,
Dan Young