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

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.

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.

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]{}

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").

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.

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?

Thanks for all the work on LMTX.

Best regards,
Dax Kelson, Guru Labs
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to