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}

Wolfgang

_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to