summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-ren.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-ren.mkiv')
-rw-r--r--tex/context/base/strc-ren.mkiv15
1 files changed, 14 insertions, 1 deletions
diff --git a/tex/context/base/strc-ren.mkiv b/tex/context/base/strc-ren.mkiv
index 3a60a34a3..ad972d9e6 100644
--- a/tex/context/base/strc-ren.mkiv
+++ b/tex/context/base/strc-ren.mkiv
@@ -123,7 +123,13 @@
% \newif\ifemptyhead
% \newif\ifdisplaysectionhead
-\def\structureheadattribute{\iflocation attr \destinationattribute \currentstructureattribute\fi}
+\let\currentstructurereferenceattribute\attributeunsetvalue
+
+\def\structureheadattribute
+ {\iflocation
+ attr \destinationattribute \currentstructureattribute
+ attr \referenceattribute \currentstructurereferenceattribute
+ \fi}
\def\doplacestructureheadtext#1#2#3% nodes, text, endstuff
{\beginheadplacement
@@ -132,6 +138,9 @@
\setbox\sectionheadbox\ifvertical\vbox\else\hbox\fi \structureheadattribute to \zeropoint {#1}%
\makestrutofbox\sectionheadbox
\else
+ \doif{\namedstructureheadparameter\currentstructurehead\c!interaction}\v!list
+ {\dogetsimplepagereference{bck:\nextinternalreference}%
+ \let\currentstructurereferenceattribute\currentreferenceattribute}%
\setbox\sectionheadbox\ifvertical\vbox\else\hbox\fi \structureheadattribute
{\doresettructureheadnumbercontent
\ifcase\headtimingmode\or#1\fi % outerside font determines distance
@@ -147,6 +156,9 @@
\setbox\sectionheadbox\ifvertical\vbox\else\hbox\fi \structureheadattribute to \zeropoint{#1}%
\makestrutofbox\sectionheadbox
\else % = needed
+ \doif{\namedstructureheadparameter\currentstructurehead\c!interaction}\v!list
+ {\dogetsimplepagereference{bck:\nextinternalreference}%
+ \let\currentstructurereferenceattribute\currentreferenceattribute}%
\setbox\sectionheadbox\ifvertical\vbox\else\hbox\fi \structureheadattribute
{\ifcase\headtimingmode\or#1\fi
\dosetfontattribute{\??nh\currentstructurehead}\c!style
@@ -154,6 +166,7 @@
\fi
\endheadplacement{#4}}
+
\unexpanded\def\placestructureheadnumbertext
{\doplacestructureheadnumbertext\empty\getstructureheadnumber\getstructureheadtitle\getstructureheadsyncs}