[NTG-context] Can't use MetaFun with mplib anymore

Henri Menke henrimenke at gmail.com
Thu Mar 14 05:56:19 CET 2019


Dear list,

Something has changed in MetaFun and it can no longer be used in plain LuaTeX,
with neither of

    luatex test.tex
    mtxrun --script plain test.tex

This is the error:

    >> LUATEXFUNCTIONALITY
    >> "mp.print(LUATEXFUNCTIONALITY)"
    ! Equation cannot be performed (numeric=string).

MWE is below, as always.

Cheers, Henri

---

\directlua{
local mpkpse = kpse.new(arg[0], "mpost")

local function finder(name, mode, ftype)
    if mode == "w" then
        return name
    else
        return mpkpse:find_file(name,ftype)
    end
end

local mpx = mplib.new {
    find_file = finder
}
local ret = mpx:execute[[
boolean mplib ; mplib := true ;
input metafun.mp ;
]]

print(ret.log)
}
\bye



More information about the ntg-context mailing list