texi2html-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texi2html-bug] Setting $element->{id} if manual is not split (i.e.


From: Patrice Dumas
Subject: Re: [Texi2html-bug] Setting $element->{id} if manual is not split (i.e. element_file_name is not called)?
Date: Wed, 27 Aug 2008 16:49:58 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Aug 22, 2008 at 08:43:19PM +0200, Reinhold Kainhofer wrote:
> 
> The internal links in the text to other sections in the manual work just fine 
> (they use the node anchors), but the TOC does not use the node anchors, but 
> the sections and thus the SECxx anchors (which change quite frequently, when 
> new sections are added to the manual, so they should not be used for 
> bookmarks or sending links to mailing lists!).
> 
> So, is there any way to modify the id of the elements if a manual is not 
> split?

There was nothing practical. Now there is element_target_name you can
use (and also 2 other functions you certainly don't need).

Also, you should use 'target' and not 'id', in your TOC and it should 
be the node anchor, even for section, but for sections not associated 
with node, you'll still need to process it to have something that doesn't 
change too often.

I am reluctant to do some something more intelligent in the default case, 
because of possible non uniqueness. SECxx isn't much better, though, since 
it could be the anchor produced by a node named SECxx. All other kinds
of id/target could also certainly be ameliorated (those produced by
footnotes, index entries).

--
Pat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]