diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luamplib/luamplib.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luamplib/luamplib.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua b/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua index a0bdce00e70..35b7e435c1c 100644 --- a/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua +++ b/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua @@ -11,8 +11,8 @@ luatexbase.provides_module { name = "luamplib", - version = "2.22.0", - date = "2022/01/09", + version = "2.23.0", + date = "2022/01/12", description = "Lua package to typeset Metapost with LuaTeX's MPLib.", } @@ -642,11 +642,16 @@ local function unprotect_expansion (str) end end +luamplib.everymplib = { [""] = "" } +luamplib.everyendmplib = { [""] = "" } + local function process_mplibcode (data, instancename) legacy_mplibcode_reset() - local everymplib = texgettoks'everymplibtoks' or '' - local everyendmplib = texgettoks'everyendmplibtoks' or '' + local everymplib = luamplib.everymplib[instancename] or + luamplib.everymplib[""] + local everyendmplib = luamplib.everyendmplib[instancename] or + luamplib.everyendmplib[""] data = format("\n%s\n%s\n%s\n",everymplib, data, everyendmplib) data = data:gsub("\r","\n") |