summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-sec.mkxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-12-21 10:10:53 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-12-21 10:10:53 +0100
commite2cfcd99f00b7ad1c8dc1e66af880dd0662ce22c (patch)
tree782c6d692137da3a76cfcdd3523749371e3c5d6a /tex/context/base/mkxl/strc-sec.mkxl
parent4a6b49038ccb940e1f429b5aca907ee779cc8bd9 (diff)
downloadcontext-e2cfcd99f00b7ad1c8dc1e66af880dd0662ce22c.tar.gz
2020-12-21 09:35:00
Diffstat (limited to 'tex/context/base/mkxl/strc-sec.mkxl')
-rw-r--r--tex/context/base/mkxl/strc-sec.mkxl49
1 files changed, 28 insertions, 21 deletions
diff --git a/tex/context/base/mkxl/strc-sec.mkxl b/tex/context/base/mkxl/strc-sec.mkxl
index 9025b9930..81e0248e6 100644
--- a/tex/context/base/mkxl/strc-sec.mkxl
+++ b/tex/context/base/mkxl/strc-sec.mkxl
@@ -29,10 +29,11 @@
\c!level=,
\c!name=,
\c!title=,
- \c!bookmark=,
- \c!marking=,
- \c!list=,
- \c!label=,
+ \c!bookmark=, % no real need, default to empty anyway
+ \c!marking=, % no real need, default to empty anyway
+ \c!list=, % no real need, default to empty anyway
+ \c!referencetext=, % no real need, default to empty anyway
+ \c!label=, % no real need, default to empty anyway
\c!coupling=,
\c!ownnumber=,
% \c!interaction=\v!list,
@@ -158,10 +159,11 @@
\xdef\currentstructureplaceholder {\structureparameter\c!placeholder}%
\ifx\currentstructureexpansion\s!xml
\xmlstartraw
- \xdef\currentstructuretitle {\structureparameter\c!title}%
- \xdef\currentstructurebookmark{\structureparameter\c!bookmark}%
- \xdef\currentstructuremarking {\structureparameter\c!marking}%
- \xdef\currentstructurelist {\structureparameter\c!list}%
+ \xdef\currentstructuretitle {\structureparameter\c!title}%
+ \xdef\currentstructurebookmark {\structureparameter\c!bookmark}%
+ \xdef\currentstructuremarking {\structureparameter\c!marking}%
+ \xdef\currentstructurelist {\structureparameter\c!list}%
+ \xdef\currentstructurereferencetext{\structureparameter\c!referencetext}%
\xmlstopraw
\iflocation \ifempty\currentstructurebookmark \ifconditional\c_strc_bookmarks_preroll
\strc_sectioning_autobookmark\currentstructuretitle
@@ -172,18 +174,20 @@
\glet\currentstructurecoding\s!xml
\else
\ifx\currentstructureexpansion\v!yes
- \xdef\currentstructuretitle {\structureparameter\c!title}%
- \xdef\currentstructurebookmark{\structureparameter\c!bookmark}%
- \xdef\currentstructuremarking {\structureparameter\c!marking}%
- \xdef\currentstructurelist {\structureparameter\c!list}%
+ \xdef\currentstructuretitle {\structureparameter\c!title}%
+ \xdef\currentstructurebookmark {\structureparameter\c!bookmark}%
+ \xdef\currentstructuremarking {\structureparameter\c!marking}%
+ \xdef\currentstructurelist {\structureparameter\c!list}%
+ \xdef\currentstructurereferencetext{\structureparameter\c!referencetext}%
\iflocation \ifempty\currentstructurebookmark \ifconditional\c_strc_bookmarks_preroll
\strc_sectioning_autobookmark\currentstructuretitle
\fi \fi \fi
\else
- \xdef\currentstructuretitle {\detokenizedstructureparameter\c!title}%
- \xdef\currentstructurebookmark{\detokenizedstructureparameter\c!bookmark}%
- \xdef\currentstructuremarking {\detokenizedstructureparameter\c!marking}%
- \xdef\currentstructurelist {\detokenizedstructureparameter\c!list}%
+ \xdef\currentstructuretitle {\detokenizedstructureparameter\c!title}%
+ \xdef\currentstructurebookmark {\detokenizedstructureparameter\c!bookmark}%
+ \xdef\currentstructuremarking {\detokenizedstructureparameter\c!marking}%
+ \xdef\currentstructurelist {\detokenizedstructureparameter\c!list}%
+ \xdef\currentstructurereferencetext{\detokenizedstructureparameter\c!referencetext}%
\iflocation \ifempty\currentstructurebookmark
\ifconditional\c_strc_bookmarks_preroll
\strc_sectioning_autobookmark{\structureparameter\c!title}%
@@ -233,19 +237,22 @@
\fi
}
titledata {
- label {\detokenize\expandafter{\currentstructurelabel}}
- title {\detokenize\expandafter{\currentstructuretitle}}
+ label {\detokenize\expandafter{\currentstructurelabel}}
+ title {\detokenize\expandafter{\currentstructuretitle}}
\ifx\currentstructurebookmark\currentstructuretitle \else
- bookmark {\detokenize\expandafter{\currentstructurebookmark}}
+ bookmark {\detokenize\expandafter{\currentstructurebookmark}}
\fi
\ifx\currentstructuremarking\currentstructuretitle \else
- marking {\detokenize\expandafter{\currentstructuremarking}}
+ marking {\detokenize\expandafter{\currentstructuremarking}}
\fi
\ifx\currentstructuresaveinlist\v!no \else
\ifx\currentstructurelist\currentstructuretitle \else
- list {\detokenize\expandafter{\currentstructurelist}}
+ list {\detokenize\expandafter{\currentstructurelist}}
\fi
\fi
+ \ifx\currentstructurereferencetext\currentstructuretitle \else
+ reference {\detokenize\expandafter{\currentstructurereferencetext}}
+ \fi
}
numberdata {
% block {\currentsectionblock}