% 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

