summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/yquant/tex/yquant-env.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-07-12 03:02:30 +0000
committerNorbert Preining <norbert@preining.info>2020-07-12 03:02:30 +0000
commit145ca8eeaa26583fb8cf216fc5a079f3d65260e2 (patch)
treeb83a4fcf8a50b58b62d94c3efb6d8720309bd0ab /graphics/pgf/contrib/yquant/tex/yquant-env.tex
parent9f9f8877a616fec845b82f43c991811cb167c35f (diff)
CTAN sync 202007120302
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex/yquant-env.tex')
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-env.tex23
1 files changed, 17 insertions, 6 deletions
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}{%