* [NTG-context] Indexing redux
@ 2024-09-28 1:44 Rik Kabel
2024-09-28 5:59 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel @ 2024-09-28 1:44 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 455 bytes --]
Hello experts,
Is there a way to generate an entry without a page number in an register
that has page numbers enabled? This would enabled /See also/ entries to
be generated with something like
\setregisterentry[TopicIndex][keys:2=zzz,entries:1=punctuation,entries:2={{\em
See also} marking}]%
I do see that there is an alternative key defined for the command, but
no explanation of what the alternatives are and if any would help.
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 846 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] 3+ messages in thread
* [NTG-context] Re: Indexing redux
2024-09-28 1:44 [NTG-context] Indexing redux Rik Kabel
@ 2024-09-28 5:59 ` Wolfgang Schuster
2024-09-28 17:41 ` Rik Kabel
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-09-28 5:59 UTC (permalink / raw)
To: mailing list for ConTeXt users, Rik Kabel
Rik Kabel schrieb am 28.09.2024 um 03:44:
> Hello experts,
>
> Is there a way to generate an entry without a page number in an register
> that has page numbers enabled? This would enabled /See also/ entries to
> be generated with something like
>
> \setregisterentry[TopicIndex][keys:2=zzz,entries:1=punctuation,entries:2={{\em
> See also} marking}]%
>
> I do see that there is an alternative key defined for the command, but
> no explanation of what the alternatives are and if any would help.
You have to set "ownnumber=yes" but I don't think the feature is
supported at the moment (or I failed to set the correct values) but you
can use the following method to get rid of the pagenumber.
%%%% begin example
\defineregister
[TopicIndex]
\defineregister
[SeeTopicIndex]
[TopicIndex]
[pagecommand=\gobbleoneargument]
\starttext
\samplefile{lorem}
\setregisterentry[TopicIndex][entries:1=punctuation]%
\samplefile{lorem}
\setregisterentry[SeeTopicIndex][entries:1=punctuation,entries:2={{\em
See also} marking}]%
\samplefile{lorem}
\placeregister[TopicIndex,SeeTopicIndex][n=1]
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread
* [NTG-context] Re: Indexing redux
2024-09-28 5:59 ` [NTG-context] " Wolfgang Schuster
@ 2024-09-28 17:41 ` Rik Kabel
0 siblings, 0 replies; 3+ messages in thread
From: Rik Kabel @ 2024-09-28 17:41 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2504 bytes --]
Thank you, Wolfgang.
With a little fine tuning I think I have what I need to generate an
index that is compliant to the Chicago 17 and 18 requirements, at least
for this book.
I did not realize that \placeregister[register1,register2...] merges the
registers. That is not the case with \placenotes[anotes,bnotes...],
which sets the notes serially.
If \placenotes[anotes,bnotes...] had an option to merged the registers,
I might have a solution to the issue I raised at the end of August
(Inserting text between end notes). Of course, this might also require
fixing the bug I described when note numbers are suppressed (Problem
with end note processing, also at the end of August).
--
Rik
On 2024-09-28 01:59, Wolfgang Schuster wrote:
> Rik Kabel schrieb am 28.09.2024 um 03:44:
>> Hello experts,
>>
>> Is there a way to generate an entry without a page number in an
>> register that has page numbers enabled? This would enabled /See also/
>> entries to be generated with something like
>>
>> \setregisterentry[TopicIndex][keys:2=zzz,entries:1=punctuation,entries:2={{\em
>> See also} marking}]%
>>
>> I do see that there is an alternative key defined for the command,
>> but no explanation of what the alternatives are and if any would help.
>
> You have to set "ownnumber=yes" but I don't think the feature is
> supported at the moment (or I failed to set the correct values) but
> you can use the following method to get rid of the pagenumber.
>
> %%%% begin example
> \defineregister
> [TopicIndex]
>
> \defineregister
> [SeeTopicIndex]
> [TopicIndex]
> [pagecommand=\gobbleoneargument]
>
> \starttext
>
> \samplefile{lorem}
> \setregisterentry[TopicIndex][entries:1=punctuation]%
> \samplefile{lorem}
> \setregisterentry[SeeTopicIndex][entries:1=punctuation,entries:2={{\em
> See also} marking}]%
> \samplefile{lorem}
>
> \placeregister[TopicIndex,SeeTopicIndex][n=1]
>
> \stoptext
> %%%% end example
>
> Wolfgang
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4074 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] 3+ messages in thread
end of thread, other threads:[~2024-09-28 17:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-28 1:44 [NTG-context] Indexing redux Rik Kabel
2024-09-28 5:59 ` [NTG-context] " Wolfgang Schuster
2024-09-28 17:41 ` Rik Kabel
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).