help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] glossary tips?


From: Oleg Katsitadze
Subject: Re: [help-texinfo] glossary tips?
Date: Thu, 27 Dec 2007 03:26:52 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

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




reply via email to

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