summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-run.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-10-04 18:59:44 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-10-04 18:59:44 +0200
commit6f2d249bfb4ead58ed709e59c403df9457f51982 (patch)
tree36f93bbacf4a42ab52b0440dba42d4ac65e86b0b /tex/context/base/mkiv/mlib-run.lua
parent6ab4432f6fe56cc63e53aeb256c89f01a04fb84f (diff)
downloadcontext-6f2d249bfb4ead58ed709e59c403df9457f51982.tar.gz
2019-10-04 17:52:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-run.lua')
-rw-r--r--tex/context/base/mkiv/mlib-run.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/mlib-run.lua b/tex/context/base/mkiv/mlib-run.lua
index bf7c8a796..e9d460472 100644
--- a/tex/context/base/mkiv/mlib-run.lua
+++ b/tex/context/base/mkiv/mlib-run.lua
@@ -518,6 +518,7 @@ function metapost.pushformat(specification,f,m) -- was: instance, name, method
local usedinstance = instance .. ":" .. nofformats
local mpx = mpxformats [usedinstance]
local mpp = mpxpreambles[instance] or ""
+ -- report_metapost("push instance %a (%S)",usedinstance,mpx)
if preamble then
preamble = prepareddata(preamble)
mpp = mpp .. "\n" .. preamble
@@ -851,10 +852,11 @@ do
end,
}
- function metapost.simple(format,code,useextensions)
+ function metapost.simple(instance,code,useextensions)
+ -- can we pickup the instance ?
local mpx = metapost.pushformat {
- instance = "simplefun",
- format = "metafun",
+ instance = instance or "simplefun",
+ format = "metafun", -- or: minifun
method = "double",
}
metapost.process {