diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-07-22 22:33:21 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-07-22 22:33:21 +0200 |
commit | dd7c4b1a54bfc5e358eb9f766c0b865fc47cbe46 (patch) | |
tree | 2e8888da6188eb742a98c3c05a26e2b75b198e62 /tex/context/base/mkiv/strc-lev.lua | |
parent | 50928735daee408de73737b055b2535d96424824 (diff) | |
download | context-dd7c4b1a54bfc5e358eb9f766c0b865fc47cbe46.tar.gz |
2016-07-22 20:13:00
Diffstat (limited to 'tex/context/base/mkiv/strc-lev.lua')
-rw-r--r-- | tex/context/base/mkiv/strc-lev.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/strc-lev.lua b/tex/context/base/mkiv/strc-lev.lua index 1d60e3a8f..c06e209f6 100644 --- a/tex/context/base/mkiv/strc-lev.lua +++ b/tex/context/base/mkiv/strc-lev.lua @@ -35,6 +35,11 @@ local function definesectionlevels(category,list) levels[category] = list end +local ctx_nostarthead = context.nostarthead +local ctx_dostarthead = context.dostarthead +local ctx_nostophead = context.nostophead +local ctx_dostophead = context.dostophead + local function startsectionlevel(n,category,current) category = category ~= "" and category or v_default local lc = levels[category] @@ -47,13 +52,13 @@ local function startsectionlevel(n,category,current) end level = level + 1 if not lc or level > #lc then - context.nostarthead { f_two_colon(category,level) } + ctx_nostarthead { f_two_colon(category,level) } else local lcl = lc[level] if n > #lcl then n = #lcl end - context.dostarthead { lc[level][n] } + ctx_dostarthead { lc[level][n] } end insert(categories,{ category, n }) end @@ -65,9 +70,9 @@ local function stopsectionlevel() local n = top[2] local lc = levels[category] if not lc or level > #lc then - context.nostophead { f_two_colon(category,level) } + ctx_nostophead { f_two_colon(category,level) } else - context.dostophead { lc[level][n] } + ctx_dostophead { lc[level][n] } end level = level - 1 else |