On 10/5/2026 12:06 AM, Dax Kelson via ntg-context wrote:
Dear Hans,
Porting a large document set to LMTX turned up a few small things. As
far as I can see they are all still in 2026.10.01:
1. context --sandbox with any MetaPost graphic ends with "mlib-
mpf.lmt:291: attempt to index a nil value (global 'mplib')" and exit
code 1. The sandbox finalizer sets mplib to nil, and the "metapost"
statistic calls metapost.nofscriptruns() at the end of the run. Example:
\starttext \startMPcode draw fullcircle scaled 1cm ; \stopMPcode \stoptext
afaiks we don't set mplib to nil in lmtx but i'll check anyway
so you're using --sandbox .. it is a bit in flux as it's being more more
integrated in the engine
2. os.timezone() returns "-02:-30" in America/St_Johns (and in any
negative zone with minutes). pdftimestamp() then does not match, and /
CreationDate and /ModDate are empty. Taking the sign from the difference
and formatting the absolute value avoids it; abs(min) alone would still
get a -00:30 zone wrong.
ok, i'll fix it
3. \setupbackend[space=no] does not switch real spaces off: back-ini.lmt
passes v == yes to directives.enable(), which ignores it.
\disabledirectives[backends.spaces] works.
idem
4. In lpdf-rul.lmt round(), "full = (radius + half)" adds half the line
width in bp to a radius in sp, so rounded fills and frames start their
arcs at the radius while the straight sides are inset by half the rule.
Example:
\framed[corner=round,radius=10pt,rulethickness=4pt,width=4cm,height=2cm,background=color,backgroundcolor=gray]{}
hard to see
5. A document whose list entries come only from \writetolist has no
section block and gets no bookmarks: bookmarks.place loops over
#lists.sectionblocks, which is 0 there (the comment says "always >= 1").
for wolfgang to check
And four tiny ones, none of them visible: the "nomimalwidth" typo; %g
writing BlueScale with 6 digits; fractional charstring operands
truncated, not rounded, to 16.16; /StemV 0 for AFM-loaded Type 1 fonts.
fuzzy .. needs more explanation
Would a directive for UTC dates, and one to leave out
pdfx:LuaTeX.Platform, also be acceptable, so that builds on different
machines differ only in dates and IDs?
maybe
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 : [email protected] /
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
___________________________________________________________________________________