On 11/20/2021 12:29 PM, Wolfgang Schuster wrote:
Taco Hoekwater schrieb am 19.11.2021 um 16:35:
Hi,

It just seems to typeset all its arguments, or something. Works fine in mkiv mode.

MWE: https://wiki.contextgarden.net/Command/somewhere

(I set the wiki example up to use mkiv instead so it looks ok there)

strc-ref.mklx:

The \numexpr isn't necessary but \relax has to be added after \referencepagedetail.

\def\strc_references_handle_page_state_yes
   {\markreferencepage
-  \ifcase\referencepagedetail
+  \ifcase\numexpr\referencepagedetail\relax
      \expandafter\sixthofsixarguments \or
      \expandafter\thirdofsixarguments \or
      \expandafter\firstofsixarguments \or
      \expandafter\fifthofsixarguments \or
      \expandafter\secondofsixarguments\or
      \expandafter\fourthofsixarguments\else
      \expandafter\sixthofsixarguments \fi}
ok, also mkiv

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
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to