summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-lua.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-02-20 18:53:56 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-02-20 18:53:56 +0100
commite4223677ac0d23e4888e41efda0d2e6aabbe76bf (patch)
treeddaeac05f93b76526e38b3cea07489cb8fee3fee /tex/context/base/mkiv/mlib-lua.lua
parent7ddc6c5aec02c5802944772975133733dc0e7440 (diff)
downloadcontext-e4223677ac0d23e4888e41efda0d2e6aabbe76bf.tar.gz
2017-02-20 18:01:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-lua.lua')
-rw-r--r--tex/context/base/mkiv/mlib-lua.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/mlib-lua.lua b/tex/context/base/mkiv/mlib-lua.lua
index 4198a7339..9831efc20 100644
--- a/tex/context/base/mkiv/mlib-lua.lua
+++ b/tex/context/base/mkiv/mlib-lua.lua
@@ -631,3 +631,19 @@ do
end
end
+
+do
+
+ local mprint = mp.print
+ local qprint = mp.quoted
+ local getmacro = tokens.getters.macro
+
+ function mp.texvar(name)
+ mprint(getmacro(metapost.namespace .. name))
+ end
+
+ function mp.texstr(name)
+ qprint(getmacro(metapost.namespace .. name))
+ end
+
+end