diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-21 18:00:37 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-21 18:00:37 +0100 |
commit | 36355f3d0c23357fccf2c76b3e9605a41cae519d (patch) | |
tree | 7b2bfa701a21ed8b075deba24112583461706770 /tex/context/base/mkxl/strc-sec.mkxl | |
parent | 8f472c629a996f1c08281198210354a253d7f56b (diff) | |
download | context-36355f3d0c23357fccf2c76b3e9605a41cae519d.tar.gz |
2022-12-21 17:12:00
Diffstat (limited to 'tex/context/base/mkxl/strc-sec.mkxl')
-rw-r--r-- | tex/context/base/mkxl/strc-sec.mkxl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/strc-sec.mkxl b/tex/context/base/mkxl/strc-sec.mkxl index 9ac35ee15..3ea3a990b 100644 --- a/tex/context/base/mkxl/strc-sec.mkxl +++ b/tex/context/base/mkxl/strc-sec.mkxl @@ -65,7 +65,7 @@ % nothing \orelse\ifx\currentstructurereferenceprefix\m_strc_references_prefix_yes \ifempty\currentstructurereference - \global\advance\prefixcounter \plusone % temp here + \global\advanceby\prefixcounter \plusone % temp here \setupglobalreferenceprefix[\the\prefixcounter]% \else \setupglobalreferenceprefix[\currentstructurereference]% @@ -529,7 +529,7 @@ % 0 = block % +1 = structurelevel 1 .. n -\newcount\maxstructuredepth +\newinteger\maxstructuredepth \permanent\def\sectionlevel#1% {\csname\??headlevel\ifcsname\??headlevel#1\endcsname#1\else\v!none\fi\endcsname} @@ -561,7 +561,7 @@ {\ifcsname\??headlevel#1\endcsname \else \edef\currenthead{#1}% \let\currentsection\currenthead % just an alias - \global\advance\maxstructuredepth\plusone + \global\advanceby\maxstructuredepth\plusone \edefcsname\??headlevel#1\endcsname{\the\maxstructuredepth}% \setstructurelevel{#1}{\sectionlevel{#1}}% \normalexpanded{\setheadparameter{\s!parent}{\??head\lastsectionname}}% TO BE CHECKED, WE HAVE A HELPER @@ -1150,7 +1150,7 @@ \doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\p_footer]}}\donothing \fi} -\newcount \c_strc_sectioning_preceding_level \c_strc_sectioning_preceding_level\plusone +\newinteger \c_strc_sectioning_preceding_level \c_strc_sectioning_preceding_level\plusone \newconditional\c_strc_sectioning_auto_break \settrue\c_strc_sectioning_auto_break \newconditional\c_strc_sectioning_ignore_page \newboundary \c_strc_sectioning_boundary |