ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \seeindex
@ 2010-10-05 15:17 Alan BRASLAU
  2010-10-07  8:50 ` \seeindex Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Alan BRASLAU @ 2010-10-05 15:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wishlist: add interaction to \seeindex


Explaination:

\seeindex{index_entry}{see_entry}
can be used to add entry to an index
that refers one to another entry.
Example: \seeindex{DNA}{deoxyribonucleic acid}

With \setupinteraction [state=start]
one gets active hyperlinks on the page numbers
of the index entries.
It would be nice if \seeindex entries to
the index would create an interaction hyperlink
to the corresponding real index entry.

This is pretty straight-forward, but probably
non-trivial to implement, as there is no guarantee
that the second entry of \seeindex indeed exists.
Of course, \seeindex could create this entry,
but it may not have an associated page number
or page numbers if \index{deoxyribonucleic acid}
was never called.

Even more sophisticated, but the bookkeeping on this
might get a bit complicated, \index{DNA} could
create an index entry under {deoxyribonucleic acid}
as \seeindex instructs to "hijack" this label.

(currently, it will put "see DNA" followed by a page number.)

Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \seeindex
  2010-10-05 15:17 \seeindex Alan BRASLAU
@ 2010-10-07  8:50 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2010-10-07  8:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5-10-2010 5:17, Alan BRASLAU wrote:
> Wishlist: add interaction to \seeindex
>
>
> Explaination:
>
> \seeindex{index_entry}{see_entry}
> can be used to add entry to an index
> that refers one to another entry.
> Example: \seeindex{DNA}{deoxyribonucleic acid}
>
> With \setupinteraction [state=start]
> one gets active hyperlinks on the page numbers
> of the index entries.
> It would be nice if \seeindex entries to
> the index would create an interaction hyperlink
> to the corresponding real index entry.
>
> This is pretty straight-forward, but probably
> non-trivial to implement, as there is no guarantee
> that the second entry of \seeindex indeed exists.
> Of course, \seeindex could create this entry,
> but it may not have an associated page number
> or page numbers if \index{deoxyribonucleic acid}
> was never called.

I can have a look at it ... as all data lives at the lua end it's easy 
to identify the tobeseen word but it would take some extra housekeeping 
to keep track of where that word ends up in the index (so that word 
actually becomes a reference) ... it's rather easy to implement, but 
less easy not to mess up the code to the level that 10 years from now no 
one understands why it's there

(I should also port the linked index entries in interactive documents: a 
linked list of hyperlinks that steps you through the 20 pages that 
discuss deoxyribonucleic acid.)

> Even more sophisticated, but the bookkeeping on this
> might get a bit complicated, \index{DNA} could
> create an index entry under {deoxyribonucleic acid}
> as \seeindex instructs to "hijack" this label.
>
> (currently, it will put "see DNA" followed by a page number.)
>
> Alan
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-07  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-05 15:17 \seeindex Alan BRASLAU
2010-10-07  8:50 ` \seeindex Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).