summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/yquant/yquant-config.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/yquant/yquant-config.tex')
-rw-r--r--Master/texmf-dist/tex/latex/yquant/yquant-config.tex22
1 files changed, 21 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/yquant/yquant-config.tex b/Master/texmf-dist/tex/latex/yquant/yquant-config.tex
index d5844480ee0..64979953eeb 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant-config.tex
+++ b/Master/texmf-dist/tex/latex/yquant/yquant-config.tex
@@ -221,6 +221,17 @@
{\pgfkeysalso{/yquant/operators/subcircuit/frameless, /yquant/register/default name=}%
\letcs\yquant@prevseamless{\yquant@prefix seamless}%
\yquant@config@circuit@seamlesstrue},
+ operators/subcircuit/name mangling/.is choice,%
+ operators/subcircuit/name mangling/prefix or discard/.code=%
+ {\def\yquant@config@operator@subcircuit@mangling{0}},%
+ operators/subcircuit/name mangling/prefix or transparent/.code=%
+ {\def\yquant@config@operator@subcircuit@mangling{1}},%
+ operators/subcircuit/name mangling/transparent/.code=%
+ {\def\yquant@config@operator@subcircuit@mangling{2}},%
+ operators/subcircuit/name mangling/discard/.code=%
+ {\def\yquant@config@operator@subcircuit@mangling{3}},%
+ operators/subcircuit/name mangling reset/.is if=%
+ yquant@config@operator@subcircuit@manglingreset,
operators/every swap/.style=%
{shape=yquant-swap, radius=.75mm, draw},%
operators/every wave/.style=%
@@ -272,4 +283,13 @@
\newif\ifyquant@config@operator@position@advance
\yquant@config@operator@position@advancetrue
\newif\ifyquant@config@circuit@seamless
-\newif\ifyquant@config@operator@multi \ No newline at end of file
+\def\yquant@config@operator@subcircuit@mangling{0}
+\newif\ifyquant@config@operator@subcircuit@manglingreset
+\yquant@config@operator@subcircuit@manglingresettrue
+\newif\ifyquant@config@operator@multi
+
+\protected\def\yquant@config@operator@subcircuit@mangling@set#1{%
+ \ifyquant@config@operator@subcircuit@manglingreset%
+ \def\yquant@config@operator@subcircuit@mangling{#1}%
+ \fi%
+} \ No newline at end of file