diff options
Diffstat (limited to 'macros/luatex/generic/minim-mp/minim-mp.lua')
-rw-r--r-- | macros/luatex/generic/minim-mp/minim-mp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/luatex/generic/minim-mp/minim-mp.lua b/macros/luatex/generic/minim-mp/minim-mp.lua index 885a6941e4..762b355015 100644 --- a/macros/luatex/generic/minim-mp/minim-mp.lua +++ b/macros/luatex/generic/minim-mp/minim-mp.lua @@ -1267,7 +1267,7 @@ E.texmessage = alloc.msg local function prepare_env(e) -- in M.open() local env = e or copy_table(_G, { }) - return copy_table(E, env) + return setmetatable(env, { __index = E }) end function E.quote(val) @@ -1330,6 +1330,7 @@ local function maketext(text, mode) make_transform(box.width, box.height, box.depth)) elseif mode == 1 then -- verbatimtex debug('┌ verbatimtex: %s', text) + text = '\\the\\everyverbatimtex\n'..text tex.runtoks(function() tex.print(current_instance.catcodes, text:explode('\n')) end) debug('└ etex') end |