Dear devs,

The two macros \lastxpos and \lastypos should behave like registers,
because that is what they are in LuaTeX.  The following MWE fails with

! You can't use `the character 0' after \the

\starttext
\the\lastxpos
\the\lastypos
\stoptext

A simple fix would be to wrap the macro in \numexpr like in the attached
patch.

Cheers, Henri
diff --git a/tex/context/base/mkiv/back-pdf.mkiv b/tex/context/base/mkiv/back-pdf.mkiv
index 776581413..220c2ac11 100644
--- a/tex/context/base/mkiv/back-pdf.mkiv
+++ b/tex/context/base/mkiv/back-pdf.mkiv
@@ -93,8 +93,8 @@
 %D Maybe these are used:
 
 \unexpanded\def\savepos {\clf_savepos}
-           \def\lastxpos{\clf_lastxpos}
-           \def\lastypos{\clf_lastypos}
+           \def\lastxpos{\numexpr\clf_lastxpos\relax}
+           \def\lastypos{\numexpr\clf_lastypos\relax}
 
 %D We do some interception:
 
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to