diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/strc-sbe.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/strc-sbe.mkiv | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/strc-sbe.mkiv b/Master/texmf-dist/tex/context/base/strc-sbe.mkiv index 206ac8a9c4f..e9d8d9c1ae1 100644 --- a/Master/texmf-dist/tex/context/base/strc-sbe.mkiv +++ b/Master/texmf-dist/tex/context/base/strc-sbe.mkiv @@ -56,31 +56,37 @@ \setvalue {\e!start#2}{\startstructureblock[#1]}% \setvalue {\e!stop #2}{\stopstructureblock}} +\ifdefined \resetallstructuremarks \else + \let\resetallstructuremarks\relax +\fi + \appendtoks \doifsomething{\structureblockparameter\c!page}{\page[\structureblockparameter\c!page]}% -% TODO \resetsectionmarks\zerosection + \resetallstructuremarks \getstructureblockenvironment\currentstructureblock \structureblockparameter\c!before % don't move + \dostarttagged\t!division\currentstructureblock \to \everybeforestructureblock \appendtoks \structureblockparameter\c!after % don't move \doifsomething{\structureblockparameter\c!page}{\page[\structureblockparameter\c!page]}% -% TODO \resetsectionmarks\zerosection + \dostoptagged + \resetallstructuremarks \to \everyafterstructureblock \def\dosetupstructureblock[#1]% {\getparameters[\??nb#1]}% [#2] \def\dosetstructureblock[#1]% used to set the default - {\edef\currentstructureblock{\ctxlua{structure.sections.setblock("#1")}}} + {\edef\currentstructureblock{\ctxlua{structures.sections.setblock("#1")}}} \let\currentstructureblock\s!unknown \unexpanded\def\startstructureblock[#1]% - {%\ctxlua{structure.counters.check(0)}% we assume sane usage of \page, as this is the only workable place (in push) + {%\ctxlua{structures.counters.check(0)}% we assume sane usage of \page, as this is the only workable place (in push) \begingroup - \edef\currentstructureblock{\ctxlua{structure.sections.pushblock("#1")}}% + \edef\currentstructureblock{\ctxlua{structures.sections.pushblock("#1")}}% \csname #1true\endcsname % for old times sake \setsystemmode\currentstructureblock \the\everybeforestructureblock\relax @@ -89,7 +95,7 @@ \unexpanded\def\stopstructureblock {\showmessage\m!structures2\currentstructureblock \the\everyafterstructureblock\relax - \edef\currentstructureblock{\ctxlua{structure.sections.popblock()}}% + \edef\currentstructureblock{\ctxlua{structures.sections.popblock()}}% \endgroup} \long\def\setstructureblockenvironment#1#2% |