summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-mar.mkxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-10-13 17:23:54 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-10-13 17:23:54 +0200
commitcc7fcf11d31b2db23ba3adca896507f9faf128cc (patch)
treee77d461cccb9ab50aa4f83f73f1e57ece4bd732d /tex/context/base/mkxl/strc-mar.mkxl
parentb2db36adbd89b2dba9591da5fc13b4eba57d581e (diff)
downloadcontext-cc7fcf11d31b2db23ba3adca896507f9faf128cc.tar.gz
2021-10-13 16:58:00
Diffstat (limited to 'tex/context/base/mkxl/strc-mar.mkxl')
-rw-r--r--tex/context/base/mkxl/strc-mar.mkxl15
1 files changed, 13 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/strc-mar.mkxl b/tex/context/base/mkxl/strc-mar.mkxl
index a0767e609..229025f01 100644
--- a/tex/context/base/mkxl/strc-mar.mkxl
+++ b/tex/context/base/mkxl/strc-mar.mkxl
@@ -122,14 +122,25 @@
\expandafter\secondoftwoarguments
\fi}
+% \permanent\protected\tolerant\def\setmarking[#1]#:#2%
+% {\ifarguments\orelse\ifconditional\inhibitsetmarking\else
+% % probably best: \dontleavehmode
+% \the\csname\??markingsyncs#1\endcsname
+% \ifcstok{\namedmarkingparameter{#1}\c!expansion}\v!yes
+% \marks\csname\??markingclass#1\endcsname{#2}%
+% \else
+% \marks\csname\??markingclass#1\endcsname{\detokenize{#2}}%
+% \fi
+% \fi}
+
\permanent\protected\tolerant\def\setmarking[#1]#:#2%
{\ifarguments\orelse\ifconditional\inhibitsetmarking\else
% probably best: \dontleavehmode
\the\csname\??markingsyncs#1\endcsname
\ifcstok{\namedmarkingparameter{#1}\c!expansion}\v!yes
- \marks\csname\??markingclass#1\endcsname{#2}%
+ \normalexpanded{\marks\csname\??markingclass#1\endcsname{#2}}%
\else
- \marks\csname\??markingclass#1\endcsname{\detokenize{#2}}%
+ \marks\csname\??markingclass#1\endcsname{#2}%
\fi
\fi}