This posting corresponds to '5.2.1 Options controlling Titles,
File-Names and Sectioning' of the l2h manual.

I need explicit file-names for some nodes of my documents - to allow
others to reference a certain section of my document.
Based on the hints of Ross Moore, Dan Young and Bruce R. Miller from
April last year I realized a mechanism using the custom_title_hook,
which allows arbitrary switching between automated node-naming and
explicit node-naming.

The code for doing this is at the bottom of the email.
I like it :-) Perhaps some similar code can find it's way into the
manual...
(I love manuals with examples :-)

Here's the remaining problem:
The "\HTMLset{mypagename}{filename}" commands must not be included in
the
.aux file which is generated from latex. Otherwise the main document is
named after the last 'mypagename' from the .aux file - this results in a
completly corrupted html file.

In other words: the \HTMLset command can not be used within the
\section{} command...

Is there an obvious workaround? 
- How can I add a 'kill $mypagename after reading the .aux file' ?


Regards, Steffen


Here's the code for the .latex2html-init:
---------------------------------------------------------------
$CUSTOM_TITLES = 1;
sub custom_title_hook {
    if ( !( $mypagename eq $myPageNameBackup ) ) 
       {
         $myPageNameBackup = $mypagename;
         return $myPageNameBackup;
       };
    return "";
}
---------------------------------------------------------------

Here's a exerpt from the latex file x.tex:

---------------------------------------------------------------
\clearpage
\HTMLset{mypagename}{publications}
\chapter{Publikationen}  
----------------------------------------------------------------

The node will be named: x-publications.html ($AUTO_PREFIX = 1)



-- 
+----------------------------------------------------------------------+
|   Steffen Klupsch                Alexanderstr. 10, D-64283 Darmstadt |
|   TU Darmstadt - FB Inf(20) - FG Integrierte Schaltungen und Systeme |
|   Email:   [EMAIL PROTECTED]                        |
|   URL  :   http://www.vlsi.informatik.tu-darmstadt.de/staff/steffen/ |
|   Phone:   (+49)6151/16-6650                  Fax: (+49)6151/16-4810 |
+----------------------------------------------------------------------+

Reply via email to