ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Can't use MetaFun with mplib anymore
@ 2019-03-14  4:56 Henri Menke
  2019-03-14  7:49 ` Hans Hagen
  2019-03-14  7:51 ` luigi scarso
  0 siblings, 2 replies; 7+ messages in thread
From: Henri Menke @ 2019-03-14  4:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-14 10:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  4:56 Can't use MetaFun with mplib anymore Henri Menke
2019-03-14  7:49 ` Hans Hagen
2019-03-14  9:00   ` Henri Menke
2019-03-14  9:55     ` Hans Hagen
2019-03-14  7:51 ` luigi scarso
2019-03-14  9:52   ` Hans Hagen
2019-03-14 10:00     ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).