[l2h] How to do custom titles...(solved)

Steffen Klupsch Steffen Klupsch <steffen@vlsi.informatik.tu-darmstadt.de>
Mon, 24 Jan 2000 19:16:14 +0100


> uliw@erdw.ethz.ch wrote:
> > However, as with any useful feature, once you have it, it creates the
> > need for another. It is not only useful to incoporate externel links
> > into a html-document, it would also be terrific, to have the ability
> > to link to a static address within a l2h created document from a
> > external document. My current understanding is that I'm able to link
> > to a specific chapter from within the same document, but not from the
> > outside. Is there no way to force the file name of specific chapter to
> > a specific name? I.e. instead of having
> >
> >         spoc-node12.html
> >
> > to force this node to
> >
> >         spoc-bibliogrpahy.html
> >
> Some time ago Ross gave me a solution to this. It should be in the email
> archive. Here comes a short summary:
> 
> Add the following to your .latex2html file:
> -----------------------------------------------------------
> $CUSTOM_TITLES = 1;
> 
> sub custom_title_hook {
>     if ( !( $mypagename eq $myPageNameBackup ) )
>        {
>          $myPageNameBackup = $mypagename;
>          return $myPageNameBackup;
>        };
>     return "";
> }
> -----------------------------------------------------------
> Whenever you need fixed node naming add the following to your latex
> document:
> 
> -----------------------------------------------------------
> \HTMLset{mypagename}{my_name_extionsion}
> -----------------------------------------------------------
> 
> for example:
> 
> \HTMLset{mypagename}{bibliography}
> 
> This should work with any recent latex2html version...
> 
> Regards, Steffen
> 
+----------------------------------------------------------------------+
|   Steffen Klupsch                Alexanderstr. 10, D-64283 Darmstadt |
|   TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme |
|   Email:   steffen@informatik.tu-darmstadt.de                        |
|   URL  :   http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ |
|   Phone:   (+49)6151/16-6650                  Fax: (+49)6151/16-4810 |
+----------------------------------------------------------------------+