summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty
blob: 4835d0547f2178a7e3dde794399147f2eab5bfec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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