diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-05-14 19:58:50 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-05-14 19:58:50 +0200 |
commit | fd0c4577a4b6e85ca2db664906e1a03807ce133f (patch) | |
tree | fa23fcc04248d03ff82e34634b8ef1bb9cf28acb /tex/context/base/mkiv/mlib-ctx.lua | |
parent | db581096187dc2d3cbdbe4cdc39d247c168b1607 (diff) | |
download | context-fd0c4577a4b6e85ca2db664906e1a03807ce133f.tar.gz |
2017-05-14 19:15:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-ctx.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-ctx.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/mlib-ctx.lua b/tex/context/base/mkiv/mlib-ctx.lua index 3fe7118b7..96eb27cbd 100644 --- a/tex/context/base/mkiv/mlib-ctx.lua +++ b/tex/context/base/mkiv/mlib-ctx.lua @@ -23,6 +23,8 @@ local mplib = mplib metapost = metapost or {} local metapost = metapost +local context = context + local setters = tokens.setters local setmacro = setters.macro local implement = interfaces.implement @@ -177,6 +179,7 @@ implement { implement { name = "mprunset", + arguments = { "string", "string" }, actions = function(name,connector) local value = metapost.variables[name] if value ~= nil then @@ -213,6 +216,7 @@ implement { { "definitions" }, { "figure" }, { "method" }, + { "namespace" }, } } } @@ -282,7 +286,6 @@ end function metapost.theclippath(...) local result = metapost.getclippath(...) if result then -- we could just print the table --- return concat(metapost.flushnormalpath(result),"\n") return concat(metapost.flushnormalpath(result)," ") else return "" @@ -303,6 +306,7 @@ implement { { "useextensions" }, { "inclusions" }, { "method" }, + { "namespace" }, }, } } @@ -353,6 +357,16 @@ function mptex.reset() end implement { + name = "mppushvariables", + actions = metapost.pushvariables, +} + +implement { + name = "mppopvariables", + actions = metapost.popvariables, +} + +implement { name = "mptexset", arguments = "string", actions = mptex.set |