diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luamplib/luamplib.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luamplib/luamplib.lua | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua b/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua index 35b7e435c1c..4ce639cbcca 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.23.0", - date = "2022/01/12", + version = "2.24.0", + date = "2023/04/04", description = "Lua package to typeset Metapost with LuaTeX's MPLib.", } @@ -232,17 +232,24 @@ local special_ftype = { local function finder(name, mode, ftype) if mode == "w" then + if name and name ~= "mpout.log" then + kpse.record_output_file(name) -- recorder + end return name else ftype = special_ftype[ftype] or ftype local file = mpkpse:find_file(name,ftype) if file then - if not lfstouch or ftype ~= "mp" or noneedtoreplace[name] then - return file + if lfstouch and ftype == "mp" and not noneedtoreplace[name] then + file = replaceinputmpfile(name,file) end - return replaceinputmpfile(name,file) + else + file = mpkpse:find_file(name, name:match("%a+$")) end - return mpkpse:find_file(name, name:match("%a+$")) + if file then + kpse.record_input_file(file) -- recorder + end + return file end end luamplib.finder = finder |