summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-run.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-10-08 22:03:39 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-10-08 22:03:39 +0200
commit4855f5a841edc1db318818c89f30d12227f4740f (patch)
tree7363859424627c919f54251ac62e75f12909eb06 /tex/context/base/mkiv/mlib-run.lua
parentf3157085de19cbc6cee3ade6d9e4e705675196a3 (diff)
downloadcontext-4855f5a841edc1db318818c89f30d12227f4740f.tar.gz
2019-10-08 19:24:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-run.lua')
-rw-r--r--tex/context/base/mkiv/mlib-run.lua4
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()