diff options
Diffstat (limited to 'tex/context/base/mkiv/strc-lst.lua')
-rw-r--r-- | tex/context/base/mkiv/strc-lst.lua | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/strc-lst.lua b/tex/context/base/mkiv/strc-lst.lua index 13bdf7786..1d2a8bb39 100644 --- a/tex/context/base/mkiv/strc-lst.lua +++ b/tex/context/base/mkiv/strc-lst.lua @@ -35,6 +35,8 @@ local commands = commands local implement = interfaces.implement local conditionals = tex.conditionals +local ctx_latelua = context.latelua + local structures = structures local lists = structures.lists local sections = structures.sections @@ -307,7 +309,7 @@ local synchronizepage = function(r) -- bah ... will move return synchronizepage(r) end -function lists.enhance(n) +local function enhancelist(n) local l = cached[n] if not l then report_lists("enhancing %a, unknown internal",n) @@ -348,6 +350,8 @@ function lists.enhance(n) end end +lists.enhance = enhancelist + -- we can use level instead but we can also decide to remove level from the metadata local nesting = { } @@ -1071,8 +1075,16 @@ implement { implement { name = "enhancelist", - actions = lists.enhance, - arguments = "integer" + arguments = "integer", + actions = enhancelist, +} + +implement { + name = "deferredenhancelist", + arguments = "integer", + actions = function(n) + ctx_latelua(function() enhancelist(n) end) + end, } implement { |