Hi, Hans,

I recently upgraded context to version 2025.02.04, and found use \overlaywidth and \overlayheight in Metapost will result in a failed compilation. same code will pass the copilation in version 2024.11.01. In version 2025.02.04 \overlaywidth and \overlayheight will be replaced with a real number+unit pt +\relaxedspace+space during compilation, then the use of (\overlaywidth,\overlayheight) will be compiled to (......\relaxedspace ), and this made Context cannot find the right parenthesis. Sample lua code and detailed log is attached below.

sample code:

.....

context.startuniqueMPgraphic("textBorder")

context([[

draw unitsquare xyscaled (\overlaywidth,\overlayheight) withcolor .625darkgray dashed evenly ;]])

context.stopuniqueMPgraphic()

....



failed compilation log:

metapost > initializing instance 'metafun:1' using format 'metafun' and method 'double'

metapost > loading 'metafun' as '/media/wanhe/sfts/tools/scr/context/tex-2025-02-04/texmf-context/metapost/context/base/mpxl/metafun.mpxl' using method 'double'

metapost > initializing number mode 'double'

metapost > trace > This is MPLIB for LuaMetaTeX, version 3.15, running in double mode.

metapost > trace >

metapost > trace > loading metafun for lmtx, including the plain 1.004 base definitions

metapost > trace >

metafun > log >

metafun > log > error: Missing ')' has been inserted

metafun > log >

metapost > trace >

metafun > log >

metafun > log > I found no right delimiter to match a left one. So I've put one in, behind the

scenes; this may fix the problem.

metafun > log >

metapost > trace >

metapost > trace >


----------------------------

zhongtian wang

Shijiazhuang YouWen Information Technology Co.,Ltd,China

13311202589 wangzht@189.cn