Various adaptions
This commit is contained in:
parent
10add04b91
commit
a6d3b3cc0f
11 changed files with 69 additions and 57 deletions
|
@ -14,7 +14,7 @@ lua.get_functions_table()[restore_func] = function()
|
|||
end
|
||||
local restore_toks = {token.primitive_tokens.atendofgroup , token.new(restore_func, token.command_id'lua_call')}
|
||||
local put_next = token.put_next
|
||||
local runtoks = tex.runtoks
|
||||
local runlocal = tex.runlocal
|
||||
local function put_restore_toks()
|
||||
put_next(restore_toks)
|
||||
end
|
||||
|
@ -35,7 +35,7 @@ return function(t, k, v, global)
|
|||
local level = stack[l]
|
||||
if not level then
|
||||
level = {}
|
||||
runtoks(put_restore_toks)
|
||||
runlocal(put_restore_toks)
|
||||
stack[l] = level
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue