From 9c7d503dc24a8dc3cbae16a8c57039c09451f1af Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 11 Jul 2020 21:01:24 +0000 Subject: yquant (11jul20) git-svn-id: svn://tug.org/texlive/trunk@55810 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/yquant/yquant-env.tex | 23 +++++++++++++++++------ Master/texmf-dist/tex/latex/yquant/yquant.sty | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/yquant') 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] -- cgit v1.2.3