From ae34f484404571c09a61f3bde45d083a51cb0ac5 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 18 Aug 2021 03:00:59 +0000
Subject: CTAN sync 202108180300

---
 graphics/pgf/contrib/yquant/tex/yquant-config.tex | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

(limited to 'graphics/pgf/contrib/yquant/tex/yquant-config.tex')

diff --git a/graphics/pgf/contrib/yquant/tex/yquant-config.tex b/graphics/pgf/contrib/yquant/tex/yquant-config.tex
index d5844480ee..64979953ee 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-config.tex
+++ b/graphics/pgf/contrib/yquant/tex/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
-- 
cgit v1.2.3

