[dev-context] \lastxpos and \lastypos should behave like registers

Henri Menke henrimenke at gmail.com
Thu May 23 01:11:36 CEST 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numexpr.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/dev-context/attachments/20190523/aa2490b6/attachment.bin>


More information about the dev-context mailing list