From 3a8f490ec582c95b7adc117b1f8d3debb60b7f88 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 28 Dec 2021 22:48:51 +0000
Subject: yquant (28dec21)

git-svn-id: svn://tug.org/texlive/trunk@61429 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/yquant/yquant-lang.tex | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/yquant/yquant-lang.tex')

diff --git a/Master/texmf-dist/tex/latex/yquant/yquant-lang.tex b/Master/texmf-dist/tex/latex/yquant/yquant-lang.tex
index 8658d3af9fa..cc882a7ffb0 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant-lang.tex
+++ b/Master/texmf-dist/tex/latex/yquant/yquant-lang.tex
@@ -298,7 +298,7 @@
       % usually, we will not be in a tikzpicture here, so all the commands that abbreviate some path operation are undefined!
       \tikz@installcommands%
       % While we want the content to be expanded, protect the most likely TikZ commands - the same ones that we usually substitute in \yquant@env@substikz.
-      \protected\def\path{}%
+      \let\path=\yquant@protectedempty%
       \let\scoped=\path%
       \let\scope=\path%
       \let\endscope=\path%
@@ -362,7 +362,7 @@
 
 \def\yquantdefinebox@#1#2{%
    \@ifnextchar[{\yquantdefinebox@i{#1}{#2}}%
-                {\yquantdefinebox@i{#1}{#2}[/yquant/operators/every box]}%
+                {\yquantdefinebox@i{#1}{#2}[/yquant/operators/every rectangular box]}%
 }
 
 \protected\long\def\yquantdefinebox@i#1#2[#3]#4{%
@@ -393,6 +393,16 @@
    }
 \yquant@langhelper@setup@attrs{box}{value}{}
 
+\yquant@langhelper@declare@command%
+   {text}%
+   \yquant@register@get@allowmultitrue%
+   {%
+      \expandafter\yquant@prepare%
+         \expandafter{\yquant@lang@attr@value}%
+         {/yquant/operators/every text}%
+   }
+\yquant@langhelper@setup@attrs{text}{value}{}
+
 % Hadamard
 \yquantdefinebox{h}{$H$}
 
@@ -601,6 +611,7 @@
    {init}%
    {%
       \yquant@register@get@allowmultitrue%
+      \let\yquant@config@register@default@lazyname=\empty%
       % we will count how many registers contain the "clean" flag, and only if this is equal to the number of targets, we apply the shift.
       \count8=0 %
    }%
-- 
cgit v1.2.3

