summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-doc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-03-21 22:04:41 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-03-21 22:04:41 +0100
commitcb28e8807d7908cc9644c2bd77c9d214dd8caefe (patch)
tree8865d48126fcb896a21252a42ea679ef6d867973 /tex/context/base/mkiv/strc-doc.lua
parent9fed721832d90d94caa292b8e6b7f22c88d03c3b (diff)
downloadcontext-cb28e8807d7908cc9644c2bd77c9d214dd8caefe.tar.gz
2021-03-21 21:08:00
Diffstat (limited to 'tex/context/base/mkiv/strc-doc.lua')
-rw-r--r--tex/context/base/mkiv/strc-doc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/strc-doc.lua b/tex/context/base/mkiv/strc-doc.lua
index 5cb207c38..9094446c1 100644
--- a/tex/context/base/mkiv/strc-doc.lua
+++ b/tex/context/base/mkiv/strc-doc.lua
@@ -772,6 +772,7 @@ function sections.typesetnumber(entry,kind,...)
applyprocessor(starter)
end
end
+-- inspect(entry)
if prefixlist and (kind == "section" or kind == "prefix" or kind == "direct") then
-- find valid set (problem: for sectionnumber we should pass the level)
-- no holes
@@ -780,6 +781,8 @@ function sections.typesetnumber(entry,kind,...)
local bb = 0
local ee = 0
-- find last valid number
+-- print("index >>",b,e)
+-- inspect(prefixlist)
for k=e,b,-1 do
local prefix = prefixlist[k]
local index = sections.getlevel(prefix) or k