Hi, On a related note, the second example from https://wiki.contextgarden.net/Command/startuniqueMPgraphic seems to have a similar issue, although it seems to work fine after replacing
xyscaled (\overlaywidth, \overlayheight) with xyscaled (OverlayWidth, OverlayHeight) Best regards, Florent Le ven. 7 févr. 2025 à 07:30, wangzhongtian <wang...@189.cn> a écrit : > > 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 wang...@189.cn > <wangzhongt...@189.cn> > > > > > > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > 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 > > ___________________________________________________________________________________ >
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________