Don't hardcode \immediate flag value and move custom functions into table

This commit is contained in:
Marcel Fabian Krüger 2021-11-06 13:23:29 +01:00
parent d61bb927a3
commit 32c5de7db7
7 changed files with 79 additions and 66 deletions

View file

@ -12,7 +12,7 @@ lua.get_functions_table()[restore_func] = function()
end
end
end
local restore_toks = {token.primitive_tokens.atendofgroup , token.new(restore_func, token.command_id'lua_call')}
local restore_toks = {luametalatex.primitive_tokens.atendofgroup , token.new(restore_func, token.command_id'lua_call')}
local put_next = token.put_next
local runlocal = tex.runlocal
local function put_restore_toks()