texlive[66791] Master/texmf-dist: yquant (7apr23)

commits+karl at tug.org commits+karl at tug.org
Fri Apr 7 22:51:33 CEST 2023


Revision: 66791
          http://tug.org/svn/texlive?view=revision&revision=66791
Author:   karl
Date:     2023-04-07 22:51:33 +0200 (Fri, 07 Apr 2023)
Log Message:
-----------
yquant (7apr23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf
    trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex
    trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty
    trunk/Master/texmf-dist/tex/latex/yquant/yquantlanguage-groups.sty

Modified: trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex	2023-04-07 20:51:17 UTC (rev 66790)
+++ trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex	2023-04-07 20:51:33 UTC (rev 66791)
@@ -232,7 +232,7 @@
       This document outlines the scope and usage of the \Yquant{} package.
       It contains both a reference and a huge number of examples.
       \Yquant{} is a package that makes typesetting quantum circuits easy; the package is available on CTAN.
-      This beta version~0.7.3 \emph{should} be stable and interfaces are not very likely to change in an incompatible way in the future.
+      This beta version~0.7.4 \emph{should} be stable and interfaces are not very likely to change in an incompatible way in the future.
       \compat{New in 0.4}Sometimes, backwards\hyp incompatible changes are required or advisable, in which case a compatibility setting will allow to revert back to the old behavior (rather, to maximize compatibility, this is an opt\hyp in setting: unless you choose the new behavior, you will get the old one).
       Please do report all issues and desirable additions on \href{https://github.com/projekter/yquant/issues}{GitHub}.
 
@@ -5390,5 +5390,9 @@
          Address \href{https://github.com/projekter/yquant/issues/25}{\#25}: We now provide the styles \style{/tikz/only at} and \style{/tikz/not at} that allow to easily use styles on an multi\hyp register operator that just affect some parts of their register representation. \\
          Now the size of controls is taken into account when calculating the size of an operation---so extremely large controls will appropriate enlarge the height/depth or horizontal increment.
          This is more useful when putting labels to controls.
+
+      \subsection*{2023-03-05: Version 0.7.4}
+         Fix \href{https://github.com/projekter/yquant/issues/26}{\#25}: Reset all the special groups\hyp related commands that are only valid \emph{directly} in a \tex!yquantgroups! environment when parsing the arguments of \tex!\registers!, \tex!\circuit!, or \tex!\equals!.
+         Most notably, this affects \tex!\\!, which can now be used properly within a grouped circuit.
 %END_FOLD
 \end{document}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty	2023-04-07 20:51:17 UTC (rev 66790)
+++ trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty	2023-04-07 20:51:33 UTC (rev 66791)
@@ -15,7 +15,7 @@
 %
 % The Current Maintainer of this work is Benjamin Desef.
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{yquant}[2023/02/19 v0.7.3 Yet another quantum circuit library for LaTeX]
+\ProvidesPackage{yquant}[2023/03/05 v0.7.4 Yet another quantum circuit library for LaTeX]
 
 \RequirePackage{etoolbox}[2018/02/11]
 \RequirePackage{tikz}[2015/08/29]

Modified: trunk/Master/texmf-dist/tex/latex/yquant/yquantlanguage-groups.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yquant/yquantlanguage-groups.sty	2023-04-07 20:51:17 UTC (rev 66790)
+++ trunk/Master/texmf-dist/tex/latex/yquant/yquantlanguage-groups.sty	2023-04-07 20:51:33 UTC (rev 66791)
@@ -65,11 +65,7 @@
    \let\yquantgroup at save@linebreak=\\%
    \let\yquantgroup at save@gatecallback=\yquant at langhelper@gatecallback%
    % assign the new meaning
-   \let\registers=\yquantgroup at registers%
-   \let\circuit=\yquantgroup at circuit%
-   \let\equals=\yquantgroup at equals%
-   \let\shiftright=\yquantgroup at shiftright%
-   \let\\=\yquantgroup at linebreak%
+   \yquantgroup at set@cmds%
    % This is a bit inconsistent, we should check \iftikz at inside@picture, but this is no longer appropriately set since at least pgf 3.1.2.
    \let\ifyquantgroup at inpicture=\ifpgfpicture%
    \pgfkeysgetvalue{/yquant/preamble}\yquantgroup at save@preamble%
@@ -127,6 +123,22 @@
 }{%
    \endyquantgroup%
 }
+
+\protected\def\yquantgroup at set@cmds{%
+   \let\registers=\yquantgroup at registers%
+   \let\circuit=\yquantgroup at circuit%
+   \let\equals=\yquantgroup at equals%
+   \let\shiftright=\yquantgroup at shiftright%
+   \let\\=\yquantgroup at linebreak%
+}
+
+\protected\def\yquantgroup at reset@cmds{%
+   \let\registers=\yquantgroup at save@registers%
+   \let\circuit=\yquantgroup at save@circuit%
+   \let\equals=\yquantgroup at save@equals%
+   \let\shiftright=\yquantgroup at save@shiftright%
+   \let\\=\yquantgroup at save@linebreak%
+}
 % END_FOLD
 
 % BEGIN_FOLD Register declaration
@@ -140,6 +152,7 @@
       \let\yquantgroup at save@lang at create@parse=\yquant at lang@create at parse@name%
       \let\yquant at lang@create at parse@name=\yquantgroup at registers@create at parse%
       \let\yquant at env@begin at generic=\yquantgroup at registers@env at generic%
+      \yquantgroup at reset@cmds%
       \appto\yquant at langhelper@setup at attrs@set at nobit{%
          \let\yquantgroup at registers@remember at attrs=\yquant at langhelper@list at attrs%
       }%
@@ -301,9 +314,11 @@
 }
 
 \long\def\yquantgroup at circuit@i[#1]#2{%
+   \yquantgroup at reset@cmds%
    \yquantgroup at startenvironments%
    \yquant [{#1}] group\space circuit {#2} (-);%
    discard -;
+   \yquantgroup at set@cmds%
 }
 
 \yquant at langhelper@declare at command@uncontrolled%
@@ -392,6 +407,7 @@
 }
 
 \protected\long\def\yquantgroup at equals@ii#1[#2]{%
+   \yquantgroup at reset@cmds%
    \unless\ifx0#1%
       \numgdef\yquantgroup at alignments{\yquantgroup at alignments+1}%
    \fi%
@@ -440,6 +456,7 @@
          \fi%
       \fi%
    \fi%
+   \yquantgroup at set@cmds%
 }
 % END_FOLD
 



More information about the tex-live-commits mailing list.