summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pgf/frontendlayer
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-28 20:57:36 +0000
committerKarl Berry <karl@freefriends.org>2020-09-28 20:57:36 +0000
commite752903a9ad1c74190305384230882402822846a (patch)
tree8d60a64b66091d1c8e34e5af76d413268603b25d /Master/texmf-dist/tex/latex/pgf/frontendlayer
parentc452dea4584e1a0650f1ba1f87262a85b511057c (diff)
pgf (28sep20)
git-svn-id: svn://tug.org/texlive/trunk@56462 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgf/frontendlayer')
-rw-r--r--Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex91
-rw-r--r--Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty2
-rw-r--r--Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty2
3 files changed, 48 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex b/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
index dc1fc05b936..d609371cd04 100644
--- a/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
+++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
@@ -1,4 +1,4 @@
-% Copyright 2008 by Christian Feuersaenger
+% Copyright 2019 by Christian Feuersaenger
%
% This file may be distributed and/or modified
%
@@ -7,16 +7,16 @@
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.
%
-%
+%
% This file provides a high-level automatic export feature for tikz pictures.
% It allows to export EACH SINGLE FIGURE into a separate PDF.
%
-% The simplest way is to use
+% The simplest way is to use
%
% \tikzexternalize{myarticle}
%
% it simply converts every figure using the write18 method. If that is not possible,
-% you need to reconfigure \tikzexternalize: it can generate a list of figure file names
+% you need to reconfigure \tikzexternalize: it can generate a list of figure file names
% and you need to generate these figures manually (or with a script).
%
% It replaces \tikzpicture/ \endtikzpicture and \tikz and invokes \beginpgfgraphicnamed ... \endpgfgraphicnamed
@@ -30,16 +30,16 @@
% ... also used for \pdf@shellescape.
\usepackage{pdftexcmds}
\pgfutil@IfFileExists{atveryend.sty}{%
- \usepackage{atveryend}%
+ \usepackage{atveryend}%
}{%
- \message{! Package tikz Warning: \string\usepackage{atveryend} impossible. Automatic resolving of references within external files impossible.}%
+ \message{! Package tikz Warning: \string\usepackage{atveryend} impossible. Automatic resolving of references within external files impossible.}%
}%
% source generic implementation:
\input tikzexternalshared.code.tex
\pgfutil@IfUndefined{pdf@mdfivesum}{}{%
- \let\tikzexternal@mdfivesum=\pdf@mdfivesum
+ \let\tikzexternal@mdfivesum=\pdf@mdfivesum
}%
\def\tikzexternal@TEXDIALECT@begpicture{\begin{tikzpicture}}
@@ -54,54 +54,55 @@
%
% This does also work if <name> is NOT tikzpicture!
\def\tikzexternal@TEXDIALECT@collectpicture#1{%
- \begingroup
- \t@tikzexternal@tmpa={}%
- \tikzexternal@laTeX@collect@until@end@tikzpicture{#1}%
+ \begingroup
+ \t@tikzexternal@tmpa={}%
+ \tikzexternal@laTeX@collect@until@end@tikzpicture{#1}%
}
% Loop until we find '\end{tikzpicture}'. We have to make sure that
% even strings like '#1' are allowed inside of the collected argument.
\long\def\tikzexternal@laTeX@collect@until@end@tikzpicture#1#2\end#3{%
- \def\tikzexternal@laTeX@collect@until@end@tikzpicture@{#3}%
- \ifx\tikzexternal@laTeX@collect@until@end@tikzpicture@\tikzexternal@laTeX@collect@until@end@tikzpicturetikzpicturestring
- \t@tikzexternal@tmpa=\expandafter{\the\t@tikzexternal@tmpa #2}%
- \edef\tikzexternal@TEXDIALECT@collectpicture@next{%
- \noexpand\endgroup
- \noexpand#1{\the\t@tikzexternal@tmpa}%
- }%
- \t@tikzexternal@tmpa={}% release memory.
- \else
- \t@tikzexternal@tmpa=\expandafter{\the\t@tikzexternal@tmpa #2\end{#3}}%
- \def\tikzexternal@TEXDIALECT@collectpicture@next{%
- \tikzexternal@laTeX@collect@until@end@tikzpicture{#1}}%
- \fi
- \tikzexternal@TEXDIALECT@collectpicture@next
+ \def\tikzexternal@laTeX@collect@until@end@tikzpicture@{#3}%
+ \ifx\tikzexternal@laTeX@collect@until@end@tikzpicture@\tikzexternal@laTeX@collect@until@end@tikzpicturetikzpicturestring
+ \t@tikzexternal@tmpa=\expandafter{\the\t@tikzexternal@tmpa #2}%
+ \edef\tikzexternal@TEXDIALECT@collectpicture@next{%
+ \noexpand\endgroup
+ \noexpand#1{\the\t@tikzexternal@tmpa}%
+ }%
+ \t@tikzexternal@tmpa={}% release memory.
+ \else
+ \t@tikzexternal@tmpa=\expandafter{\the\t@tikzexternal@tmpa #2\end{#3}}%
+ \def\tikzexternal@TEXDIALECT@collectpicture@next{%
+ \tikzexternal@laTeX@collect@until@end@tikzpicture{#1}}%
+ \fi
+ \tikzexternal@TEXDIALECT@collectpicture@next
}%
\def\tikzexternal@laTeX@collect@until@end@tikzpicturetikzpicturestring{tikzpicture}%
\def\tikzexternal@handle@landscape{%
- \ltx@ifpackageloaded{pdflscape}{%
- % Work around a bug in conjunction with pdflscape and
- % external: without this optimize-away-instruction, the
- % externalized image would be rotated - and it will be rotated
- % once more again when it is included.
- %
- % if we "optimize it away", the landscape stuff will be
- % omitted. I hope this is enough... might not be entirely
- % fool-proof; perhaps we need to set it to \relax. For now, it
- % will probably do the job
- \tikzset{
- external/.cd,
- optimize command away=\landscape,
- optimize command away=\endlandscape
- }%
- }{%
- }%
+ \ltx@ifpackageloaded{pdflscape}{%
+ % Work around a bug in conjunction with pdflscape and
+ % external: without this optimize-away-instruction, the
+ % externalized image would be rotated - and it will be rotated
+ % once more again when it is included.
+ %
+ % if we "optimize it away", the landscape stuff will be
+ % omitted. I hope this is enough... might not be entirely
+ % fool-proof; perhaps we need to set it to \relax. For now, it
+ % will probably do the job
+ \tikzset{
+ external/.cd,
+ optimize command away=\landscape,
+ optimize command away=\endlandscape
+ }%
+ }{%
+ }%
}%
\AtBeginDocument{%
- \pgfutil@ifundefined{tikzexternalrealjob}{%
- \global\let\tikzexternalrealjob=\jobname
- }{}%
- \tikzexternal@handle@landscape
+ \pgfutil@ifundefined{tikzexternalrealjob}{%
+ \global\let\tikzexternalrealjob=\jobname
+ }{}%
+ \tikzexternal@handle@landscape
}%
+
diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty b/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty
index 830fa0c6428..5bb19603eaf 100644
--- a/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty
+++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty
@@ -1,4 +1,4 @@
-% Copyright 2006 by Till Tantau
+% Copyright 2018 by Till Tantau
%
% This file may be distributed and/or modified
%
diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty b/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
index d3b8ed6e7f0..9efacf0d757 100644
--- a/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
+++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
@@ -1,4 +1,4 @@
-% Copyright 2006 by Till Tantau
+% Copyright 2018 by Till Tantau
%
% This file may be distributed and/or modified
%