From 6571830139d13f6dd9c608fb37e4f017d6050336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Sun, 21 Nov 2021 20:38:19 +0100 Subject: [PATCH] Cleanup --- luametalatex-basecallbacks.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/luametalatex-basecallbacks.lua b/luametalatex-basecallbacks.lua index 911811f..8487447 100644 --- a/luametalatex-basecallbacks.lua +++ b/luametalatex-basecallbacks.lua @@ -135,9 +135,11 @@ do end texio.write'.' if mode == 0 then return 0 end + local help = tex.gethelptext() or "Sorry, I don't know how to help in this situation.\n\z + Maybe you should try asking a human?" tex.showcontext() if mode ~= 3 then - texio.write('logfile', tex.gethelptext() .. '\n') + texio.write('logfile', help .. '\n') return mode end repeat @@ -149,8 +151,7 @@ do if line == "" then return 3 end local first = line:sub(1,1):upper() if first == 'H' then - texio.write(tex.gethelptext() or "Sorry, I don't know how to help in this situation.\n\z - Maybe you should try asking a human?") + texio.write(help) elseif first == 'I' then line = line:sub(2) tex.runlocal(function() @@ -174,7 +175,7 @@ do local ret = intercept(mode, errortype) if tex.deadcycles >= tex.maxdeadcycles then tex.runtoks(function() - tex.sprint(1, '\\shipout\\box255') + tex.sprint(1, '\\shipout\\box\\outputbox') end) end return ret