diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-17 20:49:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-17 20:49:48 +0000 |
commit | 8b106792b613d953ddec1ff0e3f1f3da0e5fd8b3 (patch) | |
tree | 3532b4e9a520d4bdfa922e0a331f136358404e2b /Master/texmf-dist/tex/latex/yquant/yquant-env.tex | |
parent | f1eec09cda1fe0f51c7dd3c722cbc8621e6d1295 (diff) |
yquant (17aug21)
git-svn-id: svn://tug.org/texlive/trunk@60259 c570f23f-e606-0410-a88d-b1316a301751
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. |