At 5:42 PM +1000 21/9/98, Uli Wortmann wrote:
>Hi there,
>
>I looked through the manual, but was unable to find a pointer. So I'd
>like to ask, if l2h provides means to deliberatly control the contents
>field of the META fields in the html header like:
>
>       <META NAME="keywords" CONTENT="spoc">

Yes, see   sub meta_information  in  latex2html.config .

It is called from &make_head_and_body  within the  latex2html  script as:

        &meta_information($title);

where  $title  contains a cleaned-up version of the document-title,
  (e.g. any HTML tags have been removed from the title)
or the result of
        &custom_title_hook($title, $toc_sec_title);
if such a  custom_title_hook  is defined.

You can modify  &meta_information  directly, if this is sufficient
for your needs.



Alternatively, if the required META-information is dependent on information
that is known only while processing the document, then ...

 ...there is as yet no  \htmlmeta  command within in  html.sty,
since I don't know what a good syntax would be, for this.
Something like:

        \htmlmeta[<attribute>]{<value>}

is an obvious candidate; but there may be some better alternative.
e.g.
        \htmlmeta[<scope>]{<attribute>}{<value>}

where <scope> is used to distinguish between META-info that is intended
for all HTML pages, or just a single page.


However it isn't very difficult to define one.
Implementing it in Perl, with touching the  latex2html  script,
would involve a 3-step process:

 1.  modify  &meta_information  to include an extra marker:
        e.g.  $meta_marker = '<tex2html_meta_mark>';

 2.  define a subroutine called   &post_post_process
        --- there is already a hook to call this, after all other
        processing has been completed.
     It should replace the above  $meta_marker  by the contents
     of some variables, say $META_INFO_LOCAL and $META_INFO_GLOBAL ,
     then set  $META_INFO_LOCAL = '';
     so it won't be reused on the next page.

 3.  ...whose contents are appended-to by the implementation of \htmlmeta :

sub do_cmd_htmlmeta {
        local($_) = @_;
        ... read the arguments ...
        ... construct the META-tag for the provided information ...
        $META_INFO_LOCAL .= .... this META-tag ...
  or    $META_INFO_GLOBAL .= .... this META-tag ...
        $_ ;
}


Oh, and don't forget...

  4.  only use \htmlmeta  within  \begin{htmlonly} ... \end{htmlonly}
      else implement a gobbling routine for LaTeX ...

%begin{latexonly}
 \newcommand{\htmlmeta}[...][]{}
%end{latexonly}



Hope this helps.


        Ross Moore



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore                             email: [EMAIL PROTECTED]
Mathematics Department                 phone:      +612 9850 8955
Macquarie University                     fax:      +612 9850 8114
Sydney, NSW 2109                      office:             E7A-419
Australia              WWW: http://www-math.mpce.mq.edu.au/~ross/

                ***************************

for the best in (La)TeX-nical typesetting and Web page production
join the  TeX Users Group (TUG) --- browse at  http://www.tug.org

                 <[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to