[Top][All Lists]
[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
- [help-texinfo] glossary tips?, DJ Delorie, 2007/12/02
- Re: [help-texinfo] glossary tips?, Karl Berry, 2007/12/02
- Re: [help-texinfo] glossary tips?, DJ Delorie, 2007/12/07
- Re: [help-texinfo] glossary tips?, Karl Berry, 2007/12/23
- Re: [help-texinfo] glossary tips?, DJ Delorie, 2007/12/24
- Re: [help-texinfo] glossary tips?, Karl Berry, 2007/12/24
- Re: [help-texinfo] glossary tips?, Karl Berry, 2007/12/25
- Re: [help-texinfo] glossary tips?, DJ Delorie, 2007/12/25
- Re: [help-texinfo] glossary tips?,
Oleg Katsitadze <=
Re: [help-texinfo] glossary tips?, lfinsto1, 2007/12/03