summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/yquant/tex/yquant-env.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-08-18 03:00:59 +0000
committerNorbert Preining <norbert@preining.info>2021-08-18 03:00:59 +0000
commitae34f484404571c09a61f3bde45d083a51cb0ac5 (patch)
tree0038191529599d215201d6258d373a30fee6b530 /graphics/pgf/contrib/yquant/tex/yquant-env.tex
parenta365f4320519cd6ebeb512575849a4582aae4f45 (diff)
CTAN sync 202108180300
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex/yquant-env.tex')
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-env.tex15
1 files changed, 9 insertions, 6 deletions
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-env.tex b/graphics/pgf/contrib/yquant/tex/yquant-env.tex
index 96ea7bbac3..c6e9f52b01 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-env.tex
+++ b/graphics/pgf/contrib/yquant/tex/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.