diff options
Diffstat (limited to 'tex/context/base/mkiv/mlib-run.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-run.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/mlib-run.lua b/tex/context/base/mkiv/mlib-run.lua index e9d460472..cc4a77660 100644 --- a/tex/context/base/mkiv/mlib-run.lua +++ b/tex/context/base/mkiv/mlib-run.lua @@ -852,7 +852,7 @@ do end, } - function metapost.simple(instance,code,useextensions) + function metapost.simple(instance,code,useextensions,dontwrap) -- can we pickup the instance ? local mpx = metapost.pushformat { instance = instance or "simplefun", @@ -864,7 +864,7 @@ do flusher = flusher, askedfig = 1, useplugins = useextensions, - data = { "beginfig(1);", code, "endfig;" }, + data = dontwrap and { code } or { "beginfig(1);", code, "endfig;" }, incontext = false, } metapost.popformat() |