# Hans Friedrich Steffani
# [EMAIL PROTECTED]
# Tue Oct 6 10:13:32 MET DST 1998
# The problem arise to place
# <META NAME="keywords" CONTENT="some keywords">
# in the head of the html-file.
# The normal value is the filename which is often not appropriate.
# Therefore I invented keyword.perl which is actually copied from the
# similar lines of the latex2html source.
# Then I make keyword an optional argument of \documentclass
# and add
#
# \newcommand{\keyword}[1]{\HTMLset{KEYWORDS}{#1}}
#
# to my tex-file. Maybe this should be done in html.sty.
# Than a line like
#
# \keyword{Heinrich-Schuetz-Kantorei,Programm,Chor,Kirchenchor,Chemnitz}
#
# can be added in the tex-file.
#
### keyword.perl #####################################################
#
# This information will be inserted in the HEAD of the generated
# HTML file. It can be used by automatic indexing scripts (eg
# site-index.pl at http://www.ai.mit.edu/tools/site-index.html)
# You can change the description, keywords, etc. values.
sub meta_information {
local($_) = @_;
# Cannot have nested HTML tags...
do { s/<[^>]*>//g;
"<META NAME=\"description\" CONTENT=\"$_\">\n" .
# "<META NAME=\"keywords\" CONTENT=\"$FILE\">\n" .
"<META NAME=\"keywords\" CONTENT=\"$KEYWORDS\">\n" .
"<META NAME=\"resource-type\" CONTENT=\"document\">\n" .
"<META NAME=\"distribution\" CONTENT=\"global\">\n" } if $_;
}
1;
### end of keyword.perl ##############################################
--
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
mailto:[EMAIL PROTECTED]
http://www.tu-chemnitz.de/~hfst/