summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/yquant/yquant-doc.pdfbin600284 -> 602267 bytes
-rw-r--r--Master/texmf-dist/doc/latex/yquant/yquant-doc.tex11
-rw-r--r--Master/texmf-dist/tex/latex/yquant/yquant-env.tex23
-rw-r--r--Master/texmf-dist/tex/latex/yquant/yquant.sty2
4 files changed, 26 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf b/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf
index fb714890d79..fbfb209a949 100644
--- a/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf
+++ b/Master/texmf-dist/doc/latex/yquant/yquant-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex b/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex
index cf32f913e66..407752853de 100644
--- a/Master/texmf-dist/doc/latex/yquant/yquant-doc.tex
+++ b/Master/texmf-dist/doc/latex/yquant/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/Master/texmf-dist/tex/latex/yquant/yquant-env.tex b/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
index bb901d1d2cf..a9262b957da 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant-env.tex
+++ b/Master/texmf-dist/tex/latex/yquant/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/Master/texmf-dist/tex/latex/yquant/yquant.sty b/Master/texmf-dist/tex/latex/yquant/yquant.sty
index 2395f674624..fe99da5c1ff 100644
--- a/Master/texmf-dist/tex/latex/yquant/yquant.sty
+++ b/Master/texmf-dist/tex/latex/yquant/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]