From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: start/stopregister
Date: Fri, 26 Apr 2024 10:22:56 +0200 [thread overview]
Message-ID: <84b9ef8c-003f-49fb-b5ab-9b7c2c7f4bf9@xs4all.nl> (raw)
In-Reply-To: <f8f32bba-a0ba-4779-9375-2f6ceeaaa1f8@uni-bonn.de>
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote:
> On 4/26/24 9:30 AM, Thomas A. Schmitz wrote:
>> And here I am again! Both in mkiv and in mkxl, start/stopregister does
>> not work when there is already an index entry before. Example below!
>>
>> All best
>>
>> Thomas
>>
>> \setuppapersize [A6]
>>
>> \starttext
>> A\index{A} B \page
>> A\startregister [index] {A} B\startregister [index] [B] {B}
>> \dorecurse {10} {\input tufte}
>> A\stopregister [index] {A} B\stopregister [index] [B]
>>
>> \page
>>
>> \placeregister[index]
>>
>> \stoptext
>
> And I'm not even sure if this is allowed to say anymore, but: works in
> mkii...
That's because mkii is AI enhanced. Can you try this:
\setuppapersize [A6]
\starttext
A\index{A} B \page
<A
\startregister [index] [A] {A}
<B
\startregister [index] [B] {B}
\dorecurse {10} {\input tufte}
A>
\stopregister [index] [A]
B>
\stopregister [index] [B]
\page
\placeregister[index]
\stoptext
(Watch the [A] vs {A} usage where [A] is the label used for matching the
potentially weiord nested start/stop ... maybe we need different aliases
for these, like \fromregister and \toregister.)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2024-04-26 8:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 13:44 [NTG-context] start/stopregister Thomas A. Schmitz
2024-04-25 14:13 ` [NTG-context] start/stopregister Henning Hraban Ramm
2024-04-25 14:45 ` Thomas A. Schmitz
2024-04-25 14:51 ` Taco Hoekwater
2024-04-25 16:16 ` Hans Hagen
2024-04-25 16:27 ` Thomas A. Schmitz
2024-04-26 7:30 ` Thomas A. Schmitz
2024-04-26 7:54 ` Thomas A. Schmitz
2024-04-26 8:22 ` Hans Hagen [this message]
2024-04-26 9:31 ` Thomas A. Schmitz
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=84b9ef8c-003f-49fb-b5ab-9b7c2c7f4bf9@xs4all.nl \
--to=j.hagen@xs4all.nl \
--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).