diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-01-26 19:04:42 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-01-26 19:04:42 +0100 |
commit | 27e58283ca9fd418a9f49981712d8f957cafaa0c (patch) | |
tree | d12d1eb09525df083fe6150dea06b5a178f41ecc /tex/context/base/mkxl/strc-sec.mkxl | |
parent | c80fc815f3b6db50716f9fe56f86ce068728221f (diff) | |
download | context-27e58283ca9fd418a9f49981712d8f957cafaa0c.tar.gz |
2021-01-26 18:04:00
Diffstat (limited to 'tex/context/base/mkxl/strc-sec.mkxl')
-rw-r--r-- | tex/context/base/mkxl/strc-sec.mkxl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tex/context/base/mkxl/strc-sec.mkxl b/tex/context/base/mkxl/strc-sec.mkxl index acc7e494e..0ede2f153 100644 --- a/tex/context/base/mkxl/strc-sec.mkxl +++ b/tex/context/base/mkxl/strc-sec.mkxl @@ -522,16 +522,16 @@ % structure sections (the parents of chapter etc) -\let\firstsectionname\empty -\let\lastsectionname \empty +\permanent\let\firstsectionname\empty +\permanent\let\lastsectionname \empty -\let\resetallstructuremarks \relax -\let\resetcurrentstructuremarks \relax -\let\resetcurrentstructuremarkswithpage\relax +%aliased\let\resetallstructuremarks \relax +%aliased\let\resetcurrentstructuremarks \relax +\aliased\let\resetcurrentstructuremarkswithpage\relax -\def\resetallstructuremarks {\resetmarking[\firstsectionname]} % will become option (was \v!section-1) -\def\resetcurrentstructuremarks {\resetmarking[\lastsectionname]} % will become option -%def\resetcurrentstructuremarkswithpage{\resetmarking[\lastsectionname]} % will become option +\permanent\protected\def\resetallstructuremarks {\resetmarking[\firstsectionname]} % will become option (was \v!section-1) +\permanent\protected\def\resetcurrentstructuremarks {\resetmarking[\lastsectionname]} % will become option +%permanent\protected\def\resetcurrentstructuremarkswithpage{\resetmarking[\lastsectionname]} % will become option % We could use a commandhandler here but sections are somewhat special in the % sense that we have two ways of chaining: the main section (levels) as well @@ -582,9 +582,9 @@ \ifnum\maxstructuredepth>\plusone \normalexpanded{\relatemarking[#1][\lastsectionname]}% so, the parent will reset the child \fi - \xdef\lastsectionname{#1}% + \enforced\xdef\lastsectionname{#1}% \ifempty\firstsectionname - \glet\firstsectionname\lastsectionname + \enforced\glet\firstsectionname\lastsectionname \fi \fi} @@ -1304,8 +1304,8 @@ % list references, will be redone in lua when we need it -\let\startlistreferences\relax -\let\stoplistreferences \relax +% \let\startlistreferences\relax +% \let\stoplistreferences \relax % experimental |