diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/yquant/yquant-env.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/yquant/yquant-env.tex | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/yquant/yquant-env.tex b/Master/texmf-dist/tex/latex/yquant/yquant-env.tex index 96ea7bbac37..c6e9f52b01c 100644 --- a/Master/texmf-dist/tex/latex/yquant/yquant-env.tex +++ b/Master/texmf-dist/tex/latex/yquant/yquant-env.tex @@ -48,6 +48,7 @@ \yquant@env@begin@generic\yquant% } +% sync with yquantlanguage-groups \long\protected\def\yquant@env@begin@generic#1[#2]{% \begingroup% \let\yquant@parent=\yquant@prefix% @@ -89,9 +90,12 @@ \protected\def\yquant@env@end{% \ifnum\csname\yquant@prefix registers\endcsname>0 % - \yquant@for \i := 1 to \csname\yquant@prefix registers\endcsname {% - \yquant@register@execclear@lastgate{\i}{@end}% - }% + \begingroup% + \let\yquant@circuit@operator@pctrls=\empty% + \yquant@for \i := 1 to \csname\yquant@prefix registers\endcsname {% + \yquant@register@execclear@lastgate{\i}{@end}% + }% + \endgroup% \csgappto{\yquant@prefix draw}{% \yquant@circuit@endwires% }% @@ -521,9 +525,8 @@ \let\path=\tikz@command@path% \let\tikz@finish=\yquant@env@substikz@finish% \let\tikz@lib@scope@check=\yquant@env@substikz@scopecheck% - % we rely on the origin being the origin - \pgf@pt@x=0pt % - \pgf@pt@y=0pt % + % we will often access the bounding box, which is never transformed + \pgftransformreset% } % substitute the tikz commands (defined in \tikz@installcommands) so that they can be arbitrarily interleaved with yquant code. We patch \path, \scope, \endscope, \stopscope, their internal complements, and also patch \yquantset. |