diff options
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex/yquant-config.tex')
-rw-r--r-- | graphics/pgf/contrib/yquant/tex/yquant-config.tex | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-config.tex b/graphics/pgf/contrib/yquant/tex/yquant-config.tex index a2d5a8fc9e..a50b2a4792 100644 --- a/graphics/pgf/contrib/yquant/tex/yquant-config.tex +++ b/graphics/pgf/contrib/yquant/tex/yquant-config.tex @@ -43,7 +43,9 @@ % BEGIN_FOLD Register creation \pgfqkeys{/yquant}{% register/default name/.store in=% - \yquant@config@register@default@name% + \yquant@config@register@default@name,% + register/default lazy name/.store in=% + \yquant@config@register@default@lazyname% } \ifnum\yquant@compat<2 % \pgfqkeys{/yquant}{% @@ -172,9 +174,25 @@ } \fi \pgfqkeys{/yquant}{% - operators/every box/.style=% - {shape=yquant-rectangle, draw, align=center, inner xsep=1mm, x radius=2mm, y radius=2.47mm},% + operators/every text/.style=% + {shape=yquant-rectangle, align=center, inner xsep=1mm, x radius=2mm, y radius=2.47mm}% } +\ifnum\yquant@compat<3 % + \pgfqkeys{/yquant}{% + % we did not have this style before 0.6, but for the ease of implementation, we just change the direction of inheritance---users of earlier compat versions will never use the style, so this is fully transparent + operators/every rectangular box/.style=% + {/yquant/operators/every box},% + operators/every box/.style=% + {shape=yquant-rectangle, draw, align=center, inner xsep=1mm, x radius=2mm, y radius=2.47mm}% + } +\else + \pgfqkeys{/yquant}{% + operators/every rectangular box/.style=% + {shape=yquant-rectangle, draw, align=center, inner xsep=1mm, x radius=2mm, y radius=2.47mm},% + operators/every box/.style=% + {/yquant/operators/every rectangular box}% + } +\fi \ifnum\yquant@compat<2 % \pgfqkeys{/yquant}{% operators/every custom gate/.style=% @@ -200,7 +218,7 @@ operators/every not/.style=% {shape=yquant-oplus, radius=1.3mm, draw},% operators/every pauli/.style=% - {/yquant/operators/every box},% + {/yquant/operators/every rectangular box},% operators/every phase/.style=% {shape=yquant-circle, radius=.5mm, fill},% operators/every slash/.style=% @@ -208,7 +226,7 @@ operators/every subcircuit/.style=% {},% operators/every subcircuit box/.style=% - {/yquant/operators/every box},% + {/yquant/operators/every rectangular box},% subcircuit box style/.style=% {/yquant/operators/every subcircuit box/.append style={#1}},% operators/this subcircuit box/.style=% @@ -219,7 +237,11 @@ {/yquant/operators/this subcircuit box/.append style={draw=none, inner sep=0pt}},% operators/subcircuit/seamless/.code=% {\pgfkeysalso{/yquant/operators/subcircuit/frameless, /yquant/register/default name=}% - \letcs\yquant@prevseamless{\yquant@prefix seamless}% + \ifdefined\yquant@prefix% + \csletcs{yquant@prevseamless}{\yquant@prefix seamless}% + \else% + \csletcs{yquant@prevseamless}{iffalse}% + \fi% \yquant@config@circuit@seamlesstrue}, operators/subcircuit/name mangling/.is choice,% operators/subcircuit/name mangling/prefix or discard/.code=% @@ -270,6 +292,7 @@ % END_FOLD \def\yquant@config@register@default@name{\regidx} +\let\yquant@config@register@default@lazyname=\empty \def\yquant@config@register@minimum@height{1.5mm} \def\yquant@config@register@minimum@depth{1.5mm} \def\yquant@config@register@sep{1mm} |