summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-ctx.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mlib-ctx.lua')
-rw-r--r--tex/context/base/mlib-ctx.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mlib-ctx.lua b/tex/context/base/mlib-ctx.lua
index a795b0214..04e0efcb4 100644
--- a/tex/context/base/mlib-ctx.lua
+++ b/tex/context/base/mlib-ctx.lua
@@ -77,12 +77,16 @@ function metapost.getextensions(instance,state)
end
end
+function commands.getmpextensions(instance,state)
+ context(metapost.getextensions(instance,state))
+end
+
function metapost.graphic(specification)
setmpsformat(specification)
metapost.graphic_base_pass(specification)
end
-function metapost.getclippath(specification)
+function metapost.getclippath(specification) -- why not a special instance for this
setmpsformat(specification)
local mpx = specification.mpx
local data = specification.data or ""