summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty210
1 files changed, 131 insertions, 79 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty b/Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty
index 1c1ab79be76..4660d994248 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/epstopdf.sty
@@ -1,90 +1,142 @@
-% File: epstopdf.sty
-% Version: 2001/02/04 v1.1
-% Author: Heiko Oberdiek
-% Email: <oberdiek@ruf.uni-freiburg.de>
-%
-% Copyright: Copyright (C) 2001 Heiko Oberdiek.
-%
-% This program may be distributed and/or modified under
-% the conditions of the LaTeX Project Public License,
-% either version 1.2 of this license or (at your option)
-% any later version. The latest version of this license
-% is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.2 or later is part of all distributions
-% of LaTeX version 1999/12/01 or later.
-%
-% Function: This packages adds support of handling eps images
-% to package graphic{s,x} with option `pdftex'.
-% If an eps image is detected, epstopdf is automatically
-% called to convert it to pdf format.
-%
-% Required: * The program `epstopdf'.
-% * The feature `\write18' has to be enabled to get
-% the conversion via the program epstopdf work:
-% * command line option: -shell-escape
-% example: pdflatex -shell-escape test.tex
-% * configuraton file `texmf.cnf': shell_escape = 1
-%
-% Use: The package is loaded after graphic{s,x}, eg:
-% \usepackage[pdftex]{graphicx}
-% \usepackage{epstopdf}
-% Images with extension `.eps' are now detected
-% and supported:
-% * Implicitly: \includegraphics{bild}
-% If `bild.eps' can only be found,
-% then it is converted to the file `bild.pdf',
-% that will be used by pdfTeX.
-% On the next ocurrences or on the next pdfTeX run,
-% the pdf file is already available, so the
-% conversion step is skipped.
-% * Explicitly: \includegraphics{bild.eps}
-% Each time the conversion program is called.
-%
-% History: 2001/01/06 v1.0:
-% * first public version,
-% published in the pdftex mailing list.
-% 2001/02/04 v1.1:
-% * minor documentation update.
-% * CTAN.
-%
-\NeedsTeXFormat{LaTeX2e}
+%%
+%% This is file `epstopdf.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% epstopdf.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2001, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% This Current Maintainer of this work is Heiko Oberdiek.
+%%
+%% This work consists of the main source file epstopdf.dtx
+%% and the derived files
+%% epstopdf.sty, epstopdf.pdf, epstopdf.ins, epstopdf.drv.
+%%
+\begingroup
+ \expandafter\let\expandafter\x\csname ver@epstopdf.sty\endcsname
+ \ifcase 0%
+ \ifx\x\relax % plain
+ \else
+ \ifx\x\empty % LaTeX
+ \else
+ 1%
+ \fi
+ \fi
+ \else
+ \expandafter\ifx\csname PackageInfo\endcsname\relax
+ \def\x#1#2{%
+ \immediate\write-1{Package #1 Info: #2.}%
+ }%
+ \else
+ \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
+ \fi
+ \x{epstopdf}{The package is already loaded}%
+ \endgroup
+ \expandafter\endinput
+ \fi
+\endgroup
+\begingroup
+ \expandafter\ifx\csname ProvidesPackage\endcsname\relax
+ \def\x#1#2#3[#4]{\endgroup
+ \immediate\write-1{Package: #3 #4}%
+ \xdef#1{#4}%
+ }%
+ \else
+ \def\x#1#2[#3]{\endgroup
+ #2[{#3}]%
+ \ifx#1\relax
+ \xdef#1{#3}%
+ \fi
+ }%
+ \fi
+\expandafter\x\csname ver@epstopdf.sty\endcsname
\ProvidesPackage{epstopdf}%
- [2001/02/04 v1.1 Conversion with epstopdf on the fly (HO)]
-
-% Check, whether package graphics is loaded
-% (also graphicx loads graphics)
-\@ifpackageloaded{graphics}{}{%
- \PackageWarningNoLine{epstopdf}{%
- No graphics package \string`graphic{s,x}\string' loaded%
+ [2006/08/26 v1.3 Conversion with epstopdf on the fly (HO)]
+\@ifundefined{PackageWarning}{%
+ \def\PackageWarning#1#2{%
+ \begingroup
+ \newlinechar=10 %
+ \def\MessageBreak{%
+ ^^J(#1)\@spaces\@spaces\@spaces\@spaces
+ }%
+ \immediate\write16{^^JPackage #1 Warning: #2\on@line.^^J}%
+ \endgroup
}%
- \endinput
-}
-% Check, whether pdftex.def is loaded
-\@ifundefined{ver@pdftex.def}{%
+}{}
+\@ifundefined{PackageWarningNoLine}{%
+ \def\PackageWarningNoLine#1#2{%
+ \PackageWarning{#1}{#2\@gobble}%
+ }%
+}{}
+\@ifundefined{on@line}{%
+ \def\on@line{ on input line \the\inputlineno}%
+}{}
+\@ifundefined{@spaces}{%
+ \def\@spaces{\space\space\space\space}%
+}{}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname Gin@setfile\endcsname\relax
\PackageWarningNoLine{epstopdf}{%
- Graphics driver file \string`pdftex.def\string' not loaded%
- }
- \endinput
-}
-
-% Patch \Gin@setfile to execute #3, if it contains
-% a command
-\let\orgGin@setfile\Gin@setfile
+ No graphics package \string`graphic{s,x}\string' found%
+ }%
+ \expandafter\endinput
+\fi
+\begingroup
+ \def\x{pdftex.def}%
+ \ifx\Gin@driver\x
+ \else
+ \PackageWarningNoLine{epstopdf}{%
+ Graphics driver file \string`pdftex.def\string' not found%
+ }
+ \expandafter\endgroup\expandafter\endinput
+ \fi
+\endgroup
+\begingroup
+ \expandafter\ifx\csname pdfshellescape\endcsname\relax
+ \else
+ \ifnum\pdfshellescape>0 %
+ \else
+ \PackageWarningNoLine{epstopdf}{%
+ Shell escape feature is not enabled%
+ }%
+ \fi
+ \fi
+\endgroup
+\let\ETEorg@Gin@setfile\Gin@setfile
\def\Gin@setfile#1#2#3{%
\if`\@car #3\relax\@nil
\immediate\write18{\@cdr #3\@empty\@nil}%
- \orgGin@setfile{#1}{#2}{\Gin@base #2}%
+ \ETEorg@Gin@setfile{#1}{#2}{\Gin@base #2}%
+ \else
+ \ETEorg@Gin@setfile{#1}{#2}{#3}%
+ \fi
+}
+\@ifundefined{Gin@extensions}{%
+ \def\Gin@extensions{.eps}%
+}{%
+ \expandafter\ifx\expandafter\indent\Gin@extensions\indent
+ \def\Gin@extensions{.eps}%
\else
- \orgGin@setfile{#1}{#2}{#3}%
+ \expandafter\def\expandafter\Gin@extensions\expandafter{%
+ \Gin@extensions,.eps%
+ }%
\fi
}
-
-% Adding .eps at the end of the list of extensions,
-% defined by \DeclareGraphicsExtensions
-\g@addto@macro\Gin@extensions{,.eps}
-
-% \DeclareGraphicsRule for .eps
\@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`epstopdf #1}}
-
\endinput
+%%
+%% End of file `epstopdf.sty'.