Am 07.09.25 um 14:47 schrieb Rik Kabel:

On 2025-09-07 06:50, Henning Hraban Ramm wrote:
Hi,
for cross references in an index, I can use \seeindex{cow}{cattle}.
That gives an index entry "cow see cattle" if I never used \index{cow}, otherwise "cow 123, see cattle".

In these cases, I’d prefer "cow 123, see _also_ cattle".
How can I do that?

I have a convoluted way of doing it.

First, I define a topic index and a parallel topic seeindex which gobbles the page number:

    \defineregister[Tindex]
    \setupregister [Tindex][n=2,
                           ]
    \defineregister[SeeTindex]% see also index for Topics
    \setupregister [SeeTindex][n=2,
                                pagecommand=\gobbleoneargument,
                              ]

Then I can index normally

         \TIndex{quotation+direct}%
         \TIndex{quotation+indirect}%
         \TIndex{marking}%

except for the see also entry, which requires:

      \setregisterentry[SeeTindex]
    [keys:2=zzz,entries:1=punctuation,entries:2={{\em See also} marking}]%

And then, I guess: \placeregister[Tindex,SeeTindex]

Yes, thank you, that’s an option I didn’t consider. I already have 5 registers, another one won’t hurt.

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to