summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-14 21:06:44 +0000
committerKarl Berry <karl@freefriends.org>2020-04-14 21:06:44 +0000
commitbbe9e3a2874a81d4559603fc57aa37a0f53ae4bb (patch)
tree3b44a4b917247d46f8b79043e2a2774a9e118d3c /Master/texmf-dist/tex/latex/yquant/yquant-env.tex
parent70ceb95a32e274762041dec44d43760f70c2dd31 (diff)
yquant (14apr20)
git-svn-id: svn://tug.org/texlive/trunk@54737 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.tex8
1 files changed, 2 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 9ba97f5915d..16c3598af38 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
+++ b/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
@@ -49,7 +49,6 @@
\let\yquant=\yquant@env@scan%
\yquant@lang@reset@attrs%
\csgdef{\yquant@prefix registers}{0}%
-% \csgdef{\yquant@prefix lasty}{0pt}%
\global\cslet{\yquant@prefix draw}\relax%
\global\cslet{\yquant@prefix outputs}\relax%
\csxdef{\yquant@prefix cleanup}{%
@@ -61,7 +60,7 @@
\ifnum\yquant@env=1 %
\yquant@env@substikz%
\fi%
- \scope[{/yquant/.cd, every circuit, #1}]%
+ \scope[{/yquant/.cd, #1, /tikz/.cd, /yquant/every circuit}]%
}
\newif\ifyquantdebug
\protected\def\yquant@env@end{%
@@ -74,16 +73,13 @@
\def\noexpand\yquant@env@end@xpos{%
\the\dimexpr\yquant@env@end@xpos+\yquant@config@operator@sep\relax%
}%
+ \yquant@circuit@endwires{\yquant@env@end@registers}%
}
% also calculate the true y positions
\dimen0=0pt %
\dimen2=0pt %
\dimen4=\yquant@config@register@sep %
\yquant@for \i := 1 to \yquant@env@end@registers {%
- % add a final wire
- \csxappto{\yquant@prefix draw}{%
- \yquant@circuit@endwire{\i}%
- }%
% we do not care if the wire is present for the y position
\dimen2=.5\dimexpr\yquant@register@get@height\i\relax%
\advance\dimen0 by \dimen2\relax%