On Tue, Dec 25, 2007 at 05:53:50PM -0500, DJ Delorie wrote:
> It adds the TOC entries, but not in the right place - it appends
> them to the end of the TOC.
As Karl suggested, we can use the \lnkcount counter to count terms.
The following isn't pretty but seems to work:
,----
| @tex
| \gdef\tdef#1{%
| \ifpdf
| \global\advance\lnkcount by 1
| \immediate\write\auxfile{\global\lnkcount=\the\lnkcount}%
| \pdfdest name{#1} xyz
| \pdfoutline goto name{#1} count 0 {#1}
| #1%
| \fi
| }
| @end tex
|
| ...
|
| @node Glossary
| @unnumbered Glossary
|
| @tex
| \pdfoutline goto name{Glossary} count \the\lnkcount {Glossary terms}
| \global\lnkcount=0
| @end tex
|
| @tdef{first}
|
| @tdef{second}
|
| @tdef{third}
`----
The terms are grouped under a "fake" top-level bookmark "Glossary
terms". I don't think it is possible to reuse the "Glossary"
bookmark.
HTH,
Oleg
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo
[email protected]
http://lists.gnu.org/mailman/listinfo/help-texinfo