summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/scrn-wid.mklx
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/scrn-wid.mklx')
-rw-r--r--tex/context/base/mkxl/scrn-wid.mklx11
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/scrn-wid.mklx b/tex/context/base/mkxl/scrn-wid.mklx
index 384a60a60..225bdc161 100644
--- a/tex/context/base/mkxl/scrn-wid.mklx
+++ b/tex/context/base/mkxl/scrn-wid.mklx
@@ -94,6 +94,12 @@
\c!depth=\v!fit,
\c!location=\v!high]
+\mutable\let\currentattachmentdepth \empty
+\mutable\let\currentattachmentheight \empty
+\mutable\let\currentattachmentregistered\empty
+\mutable\let\currentattachmentsymbol \empty
+\mutable\let\currentattachmentwidth \empty
+
\permanent\tolerant\protected\def\registerattachment[#tag]#spacer[#settings]% we save (globally) at the lua end
{\ifarguments\else
\begingroup
@@ -397,6 +403,11 @@
\c!buffer=\v!comment,
\c!location=\v!high]
+\mutable\let\currentcommentdepth \empty
+\mutable\let\currentcommentheight\empty
+\mutable\let\currentcommentsymbol\empty
+\mutable\let\currentcommentwidth \empty
+
\appendtoks
\frozen\instance\setuevalue \currentcomment {\scrn_comment_argument[\currentcomment]}%
\frozen\instance\setuevalue{\e!start\currentcomment}{\scrn_comment_start [\currentcomment]}%