summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-17 20:49:48 +0000
committerKarl Berry <karl@freefriends.org>2021-08-17 20:49:48 +0000
commit8b106792b613d953ddec1ff0e3f1f3da0e5fd8b3 (patch)
tree3532b4e9a520d4bdfa922e0a331f136358404e2b /Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex
parentf1eec09cda1fe0f51c7dd3c722cbc8621e6d1295 (diff)
yquant (17aug21)
git-svn-id: svn://tug.org/texlive/trunk@60259 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex')
-rw-r--r--Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex b/Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex
index 72a5969cb60..56b671fb85a 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex
+++ b/Master/texmf-dist/tex/latex/yquant/yquant-langhelper.tex
@@ -1,5 +1,7 @@
% BEGIN_FOLD Parsing attributes
\let\yquant@langhelper@list@attrs=\empty
+% gatecallback is called by every "standard" gate (which does not include the "create" type of gates)
+\let\yquant@langhelper@gatecallback=\@gobble
\protected\long\def\yquant@langhelper@check@attrs[#1]{%
\appto\yquant@langhelper@list@attrs{#1,}%
@@ -175,6 +177,7 @@
\PackageError{yquant.sty}{Unsupported yquant command: `#1'}%
{You used a command that is unknown to yquant.}%
\fi%
+ \edef\yquant@langhelper@cmd@original{#1}%
% Provide the association with the correct attributes
\csname yquant@langhelper@setup@attrs@set@\cmd\endcsname%
% For "ordinary" uses of the quotes library (without additional options), it would be better not to load the library now, since then the original text (everything in quotes) is just appended to /yquant/operator style. However, then uses with options will break the pgfkeys parser, as they are invalid. For this reason, we must enable the quotes library already at this state, with the consequence that we store the longer version, i.e., the output of the quotes-parsed expression instead.
@@ -225,6 +228,7 @@
\begingroup%
\lowercase{\edef\cmd{#1}}%
\long\protected\csxdef{yquant@lang@\cmd}##1##2##3{%
+ \noexpand\yquant@langhelper@gatecallback{\cmd}%
\noexpand\yquant@langhelper@execclear@lastgatetrue%
\unexpanded{#2}%
\yquant@circuit@operator{##1}{##2}{##3}%
@@ -252,6 +256,7 @@
\noexpand\ifstrempty{##2}\relax{%
\noexpand\PackageError{yquant.sty}{Negative controls are not allowed for the command `\cmd`}{}%
}%
+ \noexpand\yquant@langhelper@gatecallback{\cmd}%
\noexpand\yquant@langhelper@execclear@lastgatetrue%
\unexpanded{#2}%
\yquant@circuit@operator{}{}{##3}%