diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv b/Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv index 6bfc43d6a41..b093274430c 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv +++ b/Master/texmf-dist/tex/context/base/mkiv/node-bck.mkiv @@ -16,12 +16,10 @@ %D This is first attempt to replacing backgrounds in a few tables %D mechanisms. When used more frequently, we can store the color %D spec in the attribute. -%D -%D Maybe move some to the bar handler. \unprotect -\registerctxluafile{node-bck}{} +\registerctxluafile{node-bck}{optimize} % \backgroundvbox[green] {\input tufte } \par % \backgroundvbox[blue] {\input ward } \par @@ -74,6 +72,9 @@ \unexpanded\def\backgroundvbox{\node_backgrounds_boxes_add\vbox} \unexpanded\def\backgroundvtop{\node_backgrounds_boxes_add\vtop} +\unexpanded\def\backgroundline{\dontleavehmode + \node_backgrounds_boxes_add\hbox} + % \def\node_backgrounds_boxes_add#1[#2]% % {\begingroup % \clf_enablebackgroundboxes @@ -90,18 +91,4 @@ {\clf_enablebackgroundboxes #1\backgroundcolorattr{#2}} -% less argument carry over: -% -% \def\node_backgrounds_boxes_add#1[#2]% -% {\clf_enablebackgroundboxes#1% -% \ifcsname\??colorattribute\currentcolorprefix#2\endcsname -% \thebackgroundcolorattr{\currentcolorprefix#2}% -% \else\ifcsname\??colorattribute#2\endcsname -% \thebackgroundcolorattr{#2}% -% \fi\fi} - -% \def\backgroundvbox[#1]{\vbox \backgroundcolorattr{#1}} -% \def\backgroundvtop[#1]{\vtop \backgroundcolorattr{#1}} -% \def\backgroundhbox[#1]{\hbox \backgroundcolorattr{#1}} - \protect \endinput |