From e4223677ac0d23e4888e41efda0d2e6aabbe76bf Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 20 Feb 2017 18:53:56 +0100 Subject: 2017-02-20 18:01:00 --- tex/context/base/mkiv/mlib-lua.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tex/context/base/mkiv/mlib-lua.lua') 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 -- cgit v1.2.3