summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-lua.lua
diff options
context:
space:
mode:
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