From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: "see also"
Date: Sun, 7 Sep 2025 18:36:28 +0200 [thread overview]
Message-ID: <14635d47-7e22-4f73-a977-b03d48aaa1c1@fiee.net> (raw)
In-Reply-To: <70797926-a71b-4379-859e-ba727f1b047a@rik.users.panix.com>
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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________
next prev parent reply other threads:[~2025-09-07 16:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-07 10:50 [NTG-context] "see also" Henning Hraban Ramm
2025-09-07 11:27 ` [NTG-context] " Mikael Sundqvist
2025-09-07 11:36 ` Henning Hraban Ramm
2025-09-07 12:47 ` Rik Kabel
2025-09-07 16:36 ` Henning Hraban Ramm [this message]
2025-09-11 13:47 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14635d47-7e22-4f73-a977-b03d48aaa1c1@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).