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
___________________________________________________________________________________

Reply via email to