diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
commit | f74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch) | |
tree | 3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv | |
parent | 1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff) |
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv b/Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv index 413a00722d3..6c5bf17f1a1 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv +++ b/Master/texmf-dist/tex/context/base/mkiv/node-fin.mkiv @@ -34,46 +34,47 @@ \definesystemattribute[trigger][public] -\newcount\attributeboxcount +\newcount\c_syst_attr_trigger \edef\startinheritattributes{\attribute\triggerattribute\plusone} \edef\stopinheritattributes {\attribute\triggerattribute\attributeunsetvalue} -\def\doattributedcopy{\afterassignment\dodoattributedcopy\attributeboxcount} -\def\doattributedbox {\afterassignment\dodoattributedbox \attributeboxcount} +\def\syst_attr_trigger_copy_yes{\afterassignment\syst_attr_trigger_copy_indeed\c_syst_attr_trigger} +\def\syst_attr_trigger_dump_yes{\afterassignment\syst_attr_trigger_dump_indeed\c_syst_attr_trigger} -\def\dodoattributedcopy - {\startinheritattributes - \ifvbox\attributeboxcount - \vpack{\unvcopy\attributeboxcount}% +\def\syst_attr_trigger_copy_indeed + {\ifvbox\c_syst_attr_trigger + \vpack attr \triggerattribute \plusone {\unvcopy\c_syst_attr_trigger}% \else - \hpack{\unhcopy\attributeboxcount}% - \fi - \stopinheritattributes} - -\def\dodoattributedbox - {\startinheritattributes - \ifvbox\attributeboxcount - \vpack{\unvbox\attributeboxcount}% + \hpack attr \triggerattribute \plusone {\unhcopy\c_syst_attr_trigger}% + \fi} + +\def\syst_attr_trigger_dump_indeed + {\ifvbox\c_syst_attr_trigger + \vpack attr \triggerattribute \plusone {\unvbox\c_syst_attr_trigger}% \else - \hpack{\unhbox\attributeboxcount}% - \fi - \stopinheritattributes} + \hpack attr \triggerattribute \plusone {\unhbox\c_syst_attr_trigger}% + \fi} -\def\enableattributeinheritance +\unexpanded\def\enableattributeinheritance {\clf_enablestatetriggering - \let\attributedcopy\doattributedcopy - \let\attributedbox \doattributedbox} + \let\attributedcopy\syst_attr_trigger_copy_yes + \let\attributedbox \syst_attr_trigger_dump_yes} -\def\disableattributeinheritance +\unexpanded\def\disableattributeinheritance {\clf_disablestatetriggering \let\attributedcopy\copy \let\attributedbox \box} \disableattributeinheritance +\installtexdirective + {attributes.inheritance} + {\enableattributeinheritance} + {\disableattributeinheritance} + % \appendtoks -% \enableattributeinheritance % will become default +% \enableattributeinheritance % might become default % \to\everyjob \protect \endinput |