summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty33
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty
new file mode 100644
index 00000000000..4835d0547f2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty
@@ -0,0 +1,33 @@
+% Copyright 2006 by Till Tantau
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+\ProvidesPackage{pgfreadexternal}[2006/03/13 ver 0.01]
+
+% Environment for reading an external graphic.
+%
+% #1 = suffix
+%
+% Example:
+%
+% \pgfexternalbegin{mygraph}
+% \begin{tikzpicture}
+% ...
+% \end{tikzpicture}
+% \pgfextenalend
+
+\providecommand\pgfexternalbegin{\pgf@externalbegin}
+\long\def\pgf@externalbegin#1#2\pgfexternalend{%
+ \pgfexternalincludecommand{#1}%
+}
+
+\providecommand\pgfexternalincludecommand[1]{\includegraphics{\pgfexternalprefix#1}}
+\providecommand\pgfexternalprefix{}
+
+\endinput
+