diff options
Diffstat (limited to 'tex/context/base/lpdf-ano.lua')
-rw-r--r-- | tex/context/base/lpdf-ano.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/lpdf-ano.lua b/tex/context/base/lpdf-ano.lua index 9994be2df..8384313c2 100644 --- a/tex/context/base/lpdf-ano.lua +++ b/tex/context/base/lpdf-ano.lua @@ -1063,6 +1063,7 @@ local function build(levels,start,parent,method,nested) local level = current.level local title = current.title local reference = current.reference + local block = reference.block local opened = current.opened local reftype = type(reference) local variant = "unknown" @@ -1087,7 +1088,7 @@ local function build(levels,start,parent,method,nested) if variant == "unknown" then -- error, ignore i = i + 1 - elseif level < startlevel then + elseif (level < startlevel) or (i > 1 and block ~= levels[i-1].reference.block) then if nested then -- could be an option but otherwise we quit too soon if entry then pdfflushobject(child,entry) |