diff options
author | Norbert Preining <norbert@preining.info> | 2020-07-12 03:02:30 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-07-12 03:02:30 +0000 |
commit | 145ca8eeaa26583fb8cf216fc5a079f3d65260e2 (patch) | |
tree | b83a4fcf8a50b58b62d94c3efb6d8720309bd0ab /graphics/pgf | |
parent | 9f9f8877a616fec845b82f43c991811cb167c35f (diff) |
CTAN sync 202007120302
Diffstat (limited to 'graphics/pgf')
-rw-r--r-- | graphics/pgf/contrib/yquant/doc/yquant-doc.pdf | bin | 600284 -> 602267 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/yquant/doc/yquant-doc.tex | 11 | ||||
-rw-r--r-- | graphics/pgf/contrib/yquant/tex/yquant-env.tex | 23 | ||||
-rw-r--r-- | graphics/pgf/contrib/yquant/tex/yquant.sty | 2 |
4 files changed, 26 insertions, 10 deletions
diff --git a/graphics/pgf/contrib/yquant/doc/yquant-doc.pdf b/graphics/pgf/contrib/yquant/doc/yquant-doc.pdf Binary files differindex fb714890d7..fbfb209a94 100644 --- a/graphics/pgf/contrib/yquant/doc/yquant-doc.pdf +++ b/graphics/pgf/contrib/yquant/doc/yquant-doc.pdf diff --git a/graphics/pgf/contrib/yquant/doc/yquant-doc.tex b/graphics/pgf/contrib/yquant/doc/yquant-doc.tex index cf32f913e6..407752853d 100644 --- a/graphics/pgf/contrib/yquant/doc/yquant-doc.tex +++ b/graphics/pgf/contrib/yquant/doc/yquant-doc.tex @@ -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 @@ IndexSingle = ?number? | ( [ ?number? ], "-", [ ?number? ] ); 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 diff --git a/graphics/pgf/contrib/yquant/tex/yquant-env.tex b/graphics/pgf/contrib/yquant/tex/yquant-env.tex index bb901d1d2c..a9262b957d 100644 --- a/graphics/pgf/contrib/yquant/tex/yquant-env.tex +++ b/graphics/pgf/contrib/yquant/tex/yquant-env.tex @@ -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@scope@opt. - \let\yquant@env@substikz@scope=\tikz@scope@opt% - \def\tikz@scope@opt[##1]{% - \protected@csxappto{\yquant@prefix draw}{% - \noexpand\tikz@scope@env[{##1}]% + \ifdefined\tikz@scope@opt% + \let\yquant@env@substikz@scope=\tikz@scope@opt% + \def\tikz@scope@opt[##1]{% + \protected@csxappto{\yquant@prefix draw}{% + \noexpand\tikz@scope@env[{##1}]% + }% + \yquant@env@substikz@scope[{##1}]% }% - \yquant@env@substikz@scope[{##1}]% - }% + \else% + % this is for the arXiv, which has a very outdated version of TikZ + \let\yquant@env@substikz@scope=\tikz@@scope@env% + \def\tikz@@scope@env[##1]{% + \protected@csxappto{\yquant@prefix draw}{% + \noexpand\tikz@@scope@env[{##1}]% + }% + \yquant@env@substikz@scope[{##1}]% + }% + \fi% \let\yquant@env@substikz@endscope=\endtikz@scope@env% \def\endtikz@scope@env{% \csgappto{\yquant@prefix draw}{% diff --git a/graphics/pgf/contrib/yquant/tex/yquant.sty b/graphics/pgf/contrib/yquant/tex/yquant.sty index 2395f67462..fe99da5c1f 100644 --- a/graphics/pgf/contrib/yquant/tex/yquant.sty +++ b/graphics/pgf/contrib/yquant/tex/yquant.sty @@ -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] |