* [NTG-context] "see also"
@ 2025-09-07 10:50 Henning Hraban Ramm
2025-09-07 11:27 ` [NTG-context] " Mikael Sundqvist
2025-09-07 12:47 ` Rik Kabel
0 siblings, 2 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2025-09-07 10:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: "see also"
2025-09-07 10:50 [NTG-context] "see also" Henning Hraban Ramm
@ 2025-09-07 11:27 ` Mikael Sundqvist
2025-09-07 11:36 ` Henning Hraban Ramm
2025-09-07 12:47 ` Rik Kabel
1 sibling, 1 reply; 6+ messages in thread
From: Mikael Sundqvist @ 2025-09-07 11:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
do you look for
\setuplabeltext
[en]
[see=see also ]
?
/Mikael
On Sun, Sep 7, 2025 at 12:55 PM Henning Hraban Ramm <texml@fiee.net> 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
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: "see also"
2025-09-07 11:27 ` [NTG-context] " Mikael Sundqvist
@ 2025-09-07 11:36 ` Henning Hraban Ramm
0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2025-09-07 11:36 UTC (permalink / raw)
To: ntg-context
Am 07.09.25 um 13:27 schrieb Mikael Sundqvist:
> do you look for
>
> \setuplabeltext
> [en]
> [see=see also ]
I knew this existed, but it would change the text for _all_ cross
references, while just "see" is better in most cases.
I don’t need an automatism for my few instances. Something that I can
put into a custom macro would be enough, like
\define[2]\seealso{\seeindex[text=see also]{#1}{#2}}
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: "see also"
2025-09-07 10:50 [NTG-context] "see also" Henning Hraban Ramm
2025-09-07 11:27 ` [NTG-context] " Mikael Sundqvist
@ 2025-09-07 12:47 ` Rik Kabel
2025-09-07 16:36 ` Henning Hraban Ramm
1 sibling, 1 reply; 6+ messages in thread
From: Rik Kabel @ 2025-09-07 12:47 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2001 bytes --]
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
[-- Attachment #1.2.1: Type: text/html, Size: 3019 bytes --]
[-- Attachment #1.2.2: O0nH5Z4JMMSivDRQ.png --]
[-- Type: image/png, Size: 11151 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: "see also"
2025-09-07 12:47 ` Rik Kabel
@ 2025-09-07 16:36 ` Henning Hraban Ramm
2025-09-11 13:47 ` Henning Hraban Ramm
0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2025-09-07 16:36 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: "see also"
2025-09-07 16:36 ` Henning Hraban Ramm
@ 2025-09-11 13:47 ` Henning Hraban Ramm
0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2025-09-11 13:47 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 508 bytes --]
Am 07.09.25 um 18:36 schrieb Henning Hraban Ramm:
> Am 07.09.25 um 14:47 schrieb Rik Kabel:
>> \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.
Ok, I implemented it in my book, and it works like I wanted (see attached).
Thank you!
Hraban
[-- Attachment #2: rereference.png --]
[-- Type: image/png, Size: 18898 bytes --]
[-- Attachment #3: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-09-11 13:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2025-09-11 13:47 ` Henning Hraban Ramm
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).