diff options
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex/yquant-lang.tex')
-rw-r--r-- | graphics/pgf/contrib/yquant/tex/yquant-lang.tex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-lang.tex b/graphics/pgf/contrib/yquant/tex/yquant-lang.tex index 8658d3af9f..cc882a7ffb 100644 --- a/graphics/pgf/contrib/yquant/tex/yquant-lang.tex +++ b/graphics/pgf/contrib/yquant/tex/yquant-lang.tex @@ -298,7 +298,7 @@ % usually, we will not be in a tikzpicture here, so all the commands that abbreviate some path operation are undefined! \tikz@installcommands% % While we want the content to be expanded, protect the most likely TikZ commands - the same ones that we usually substitute in \yquant@env@substikz. - \protected\def\path{}% + \let\path=\yquant@protectedempty% \let\scoped=\path% \let\scope=\path% \let\endscope=\path% @@ -362,7 +362,7 @@ \def\yquantdefinebox@#1#2{% \@ifnextchar[{\yquantdefinebox@i{#1}{#2}}% - {\yquantdefinebox@i{#1}{#2}[/yquant/operators/every box]}% + {\yquantdefinebox@i{#1}{#2}[/yquant/operators/every rectangular box]}% } \protected\long\def\yquantdefinebox@i#1#2[#3]#4{% @@ -393,6 +393,16 @@ } \yquant@langhelper@setup@attrs{box}{value}{} +\yquant@langhelper@declare@command% + {text}% + \yquant@register@get@allowmultitrue% + {% + \expandafter\yquant@prepare% + \expandafter{\yquant@lang@attr@value}% + {/yquant/operators/every text}% + } +\yquant@langhelper@setup@attrs{text}{value}{} + % Hadamard \yquantdefinebox{h}{$H$} @@ -601,6 +611,7 @@ {init}% {% \yquant@register@get@allowmultitrue% + \let\yquant@config@register@default@lazyname=\empty% % we will count how many registers contain the "clean" flag, and only if this is equal to the number of targets, we apply the shift. \count8=0 % }% |