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?
Hraban
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,
command={\Word},
balance=no,
method=default, % or New follows Newton!
compress=yes,
check=no,% allows seeindex to plussed entries
expansion=yes,
pagecommand=\IndexPageCommand,
]
\defineregister[SeeTindex]% see also index for Topics
\setupregister [SeeTindex][n=2,
command=,
balance=no,
method=default, % or New follows Newton!
compress=,
maxwidth=2.3in,
expansion=yes,
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 can get
--
Rik
___________________________________________________________________________________
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
___________________________________________________________________________________