texlive[55810] Master/texmf-dist: yquant (11jul20)

commits+karl at tug.org commits+karl at tug.org
Sat Jul 11 23:01:25 CEST 2020


Revision: 55810
          http://tug.org/svn/texlive?view=revision&revision=55810
Author:   karl
Date:     2020-07-11 23:01:24 +0200 (Sat, 11 Jul 2020)
Log Message:
-----------
yquant (11jul20)

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-env.tex
    trunk/Master/texmf-dist/tex/latex/yquant/yquant.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	2020-07-11 21:01:10 UTC (rev 55809)
+++ trunk/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex	2020-07-11 21:01:24 UTC (rev 55810)
@@ -199,7 +199,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 alpha version~0.3 \emph{should} be stable and interfaces are not very likely to change in an incompatible way in the future.
+      This alpha version~0.3.1 \emph{should} be stable and interfaces are not very likely to change in an incompatible way in the future.
       Please do report all issues and desirable additions.
       
       \subsection{How to read the manual}
@@ -696,6 +696,7 @@
             Since version 0.1.2, the style's default path is, as with all other styles, \texttt{/tikz}.
             The default style will make all nodes (which in particular means, all gates) respect outer canvas transformations.
             Due to \TikZ{} bug \href{https://github.com/pgf-tikz/pgf/issues/843}{\#843}, this must be undone for \texttt{label}s.
+            % TODO Note that unless you use a very recent version of \TikZ{} in which bug \href{https://github.com/pgf-tikz/pgf/issues/843}{\#843} was fixed, you might need to add \tex!every label/.prefix style={transform shape=false}! to this style, which undoes the effect for \texttt{label}s.
          \end{option}
          
          \begin{option}{every wire}!draw!
@@ -2706,6 +2707,7 @@
                   Here, we first scaled the circuit itself.
                   The default style for \style{/yquant/every circuit} sets the \texttt{transform shape} key for every node (which means any gate), so that those are also scaled.
                   This is explicitly undone for \texttt{label}s due to \TikZ{} bug \href{https://github.com/pgf-tikz/pgf/issues/843}{\#843}, so the scaling must be specified explicitly for the \texttt{label}s.
+                  % TODO Note that unless you use a very recent version of \TikZ{} in which bug \href{https://github.com/pgf-tikz/pgf/issues/843}{\#843} was fixed, you might need to add \tex!every label/.prefix style={transform shape=false}! to this style, which undoes the effect for \texttt{label}s.
                \end{example}
          
          \subsubsection{VII. Typesetting}
@@ -2929,11 +2931,11 @@
             \end{example}
       \endgroup
    
-   \section{Foreign language support}
+   \section{Foreign language support}\label{sec:foreign}
       \Yquant{} is built in various modules, so that it is not hard to use the quantum circuit rendering backend, but expose a different language frontend.
       Since version~0.3, \Yquant{} not only understands its own language, but also others.
       
-      \subsection{qasm}
+      \subsection{qasm}\label{sec:foreign:qasm}
          By saying \tex!\useyquantlanguage{qasm}! in the preamble after loading \Yquant{} itself, the parser for \pkg{qasm} (not OpenQASM) is loaded.
          It provides the environment \tex!qasm! as well as the macro \tex!\qasmimport!, which works similarly to \tex!\yquantimport! (but does not accept additional options).
          
@@ -3053,5 +3055,8 @@
          
       \subsection{2020-06-13: Version 0.3}
          Introduce support for the \pkg{qasm} language.
+         
+      \subsection{2020-07-11: Version 0.3.1}
+         Add legacy support for very old \TikZ{} versions such as the one used on the arXiv.
 %END_FOLD
 \end{document}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yquant/yquant-env.tex	2020-07-11 21:01:10 UTC (rev 55809)
+++ trunk/Master/texmf-dist/tex/latex/yquant/yquant-env.tex	2020-07-11 21:01:24 UTC (rev 55810)
@@ -327,13 +327,24 @@
    }%
    % no need for \scoped, because it internally calls \scope.
    % We need to hack into \scope, but this is a bit tricky due to its argument handling. In order to get all optional arguments, including the possible animations library, correct, we change \tikz at scope@opt.
-   \let\yquant at env@substikz at scope=\tikz at scope@opt%
-   \def\tikz at scope@opt[##1]{%
-      \protected at csxappto{\yquant at prefix draw}{%
-         \noexpand\tikz at scope@env[{##1}]%
+   \ifdefined\tikz at scope@opt%
+      \let\yquant at env@substikz at scope=\tikz at scope@opt%
+      \def\tikz at scope@opt[##1]{%
+         \protected at csxappto{\yquant at prefix draw}{%
+            \noexpand\tikz at scope@env[{##1}]%
+         }%
+         \yquant at env@substikz at scope[{##1}]%
       }%
-      \yquant at env@substikz at scope[{##1}]%
-   }%
+   \else%
+      % this is for the arXiv, which has a very outdated version of TikZ
+      \let\yquant at env@substikz at scope=\tikz@@scope at env%
+      \def\tikz@@scope at env[##1]{%
+         \protected at csxappto{\yquant at prefix draw}{%
+            \noexpand\tikz@@scope at env[{##1}]%
+         }%
+         \yquant at env@substikz at scope[{##1}]%
+      }%
+   \fi%
    \let\yquant at env@substikz at endscope=\endtikz at scope@env%
    \def\endtikz at scope@env{%
       \csgappto{\yquant at prefix draw}{%

Modified: trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty	2020-07-11 21:01:10 UTC (rev 55809)
+++ trunk/Master/texmf-dist/tex/latex/yquant/yquant.sty	2020-07-11 21:01:24 UTC (rev 55810)
@@ -15,7 +15,7 @@
 %
 % The Current Maintainer of this work is Benjamin Desef.
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{yquant}[2020/06/13 v0.3 Yet another quantum circuit library for LaTeX]
+\ProvidesPackage{yquant}[2020/07/11 v0.3.1 Yet another quantum circuit library for LaTeX]
 
 \RequirePackage{etoolbox}[2018/02/11]
 \RequirePackage{tikz}[2015/08/29]



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