diff options
Diffstat (limited to 'tex/context/base/mkxl/mlib-ctx.lmt')
-rw-r--r-- | tex/context/base/mkxl/mlib-ctx.lmt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/mlib-ctx.lmt b/tex/context/base/mkxl/mlib-ctx.lmt index 64225e308..8ed6b0b00 100644 --- a/tex/context/base/mkxl/mlib-ctx.lmt +++ b/tex/context/base/mkxl/mlib-ctx.lmt @@ -410,3 +410,18 @@ MP = MP or { } -- user namespace table.setmetatablecall(mp,function(t,k,...) return t[k](...) end) table.setmetatablecall(MP,function(t,k,...) return t[k](...) end) + +-- A secret option: + +implement { + name = "resetMPinstance", + protected = true, + public = true, + arguments = "optional", + actions = function(s) + if s and s ~= "" then + report_metapost("resetting instance %a",s) + metapost.reset(s) + end + end, +} |