summaryrefslogtreecommitdiff
path: root/tex/context/base/anch-bck.mkvi
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/anch-bck.mkvi')
-rw-r--r--tex/context/base/anch-bck.mkvi13
1 files changed, 8 insertions, 5 deletions
diff --git a/tex/context/base/anch-bck.mkvi b/tex/context/base/anch-bck.mkvi
index 75a7f05a5..cf5b82967 100644
--- a/tex/context/base/anch-bck.mkvi
+++ b/tex/context/base/anch-bck.mkvi
@@ -112,7 +112,10 @@
\newcount\c_backgrounds_text_level
-\installcommandhandler \??td {textbackground} \??td
+\installcorenamespace{textbackground}
+\installcorenamespace{textbackgroundlevel}
+
+\installcommandhandler \??textbackground {textbackground} \??textbackground
\appendtoks
\setuevalue{\currenttextbackground}{\groupedcommand{\starttextbackground[\currenttextbackground]}{\stoptextbackground}}%
@@ -147,11 +150,11 @@
\let\backgrounds_text_start_indeed\relax
\let\backgrounds_text_stop_indeed \relax
-\setvalue{\??td:l:\v!text}%
+\setvalue{\??textbackgroundlevel\v!text}%
{\let\backgrounds_text_start_indeed\backgrounds_text_start_txt
\let\backgrounds_text_stop_indeed \dostoptextbackgroundtxt}
-\setvalue{\??td:l:\v!paragraph}%
+\setvalue{\??textbackgroundlevel\v!paragraph}%
{\ifnum\c_backgrounds_text_level>\plusone
\let\backgrounds_text_start_indeed\backgrounds_text_start_txt
\let\backgrounds_text_stop_indeed \dostoptextbackgroundtxt
@@ -160,7 +163,7 @@
\let\backgrounds_text_stop_indeed \dostoptextbackgroundpar
\fi}
-\setvalue{\??td:l:\v!none}%
+\setvalue{\??textbackgroundlevel\v!none}%
{\backgrounds_text_preset_nop}
\def\backgrounds_text_preset_nop
@@ -169,7 +172,7 @@
\def\backgrounds_text_preset_yes
{\backgrounds_text_preset_nop
- \csname\??td:l:\textbackgroundparameter\c!location\endcsname
+ \csname\??textbackgroundlevel\textbackgroundparameter\c!location\endcsname
\edef\m_backgrounds_text_frame {\textbackgroundparameter\c!frame}%
\edef\m_backgrounds_text_corner {\textbackgroundparameter\c!corner}%
\edef\m_backgrounds_text_background{\textbackgroundparameter\c!background}%