On Feb 11, 16:50, Andreas Gaumann wrote:
> My second problem is in the "keywords" META tag. How can I change the
> default entry or add some other words there?
Define your own subroutine `meta_information' in .latex2html-init.
For ease of use I separated my configuration files into a site-wide
and a document-specific one:
foo% cat .latex2html-init
# document specific l2h config file (example ;)
$MY_KEYWORDS = "foo, bar, Unix, LaTeX, HTML";
$MY_DESCRIPTION = "Foo and Bar in a nutshell";
$MY_EMAIL = "guru\@foobar.org";
require("/path/to/site.latex2html-init");
1; # This must be the last line
foo% cat /path/to/site.latex2html-init
# site-wide l2h config file (extract ;)
sub meta_information {
local($_) = @_;
if (not defined $MY_KEYWORDS) { $MY_KEYWORDS = "$FILE"; }
if (not defined $MY_DESCRIPTION) { $MY_DESCRIPTION = "$_"; }
if (defined $MY_EMAIL) {
$MY_META="<LINK REV=\"made\" HREF=\"mailto:$MY_EMAIL\">\n";
}
# Cannot have nested HTML tags...
do { s/<[^>]*>//g;
"<!-- Do not edit here - edit TeX file $FILE.tex instead -->\n" .
"<META NAME=\"description\" CONTENT=\"$MY_DESCRIPTION\">\n" .
"<META NAME=\"keywords\" CONTENT=\"$MY_KEYWORDS\">\n" .
"<META NAME=\"resource-type\" CONTENT=\"document\">\n" .
"<META NAME=\"distribution\" CONTENT=\"global\">\n" .
"<LINK REV=\"owns\" TITLE=\"FooBar Organization\" HREF=\"
webmaster\@foobar.org\">\n" .
"$MY_META" } if $_;
}
1; # This must be the last line
Comments appreciated.
Kind regards,
Thomas
--
Thomas Anders <[EMAIL PROTECTED]>
Hahn-Meitner-Institut Berlin, Germany