2 %% This is file `epsfig.sty',
\r
3 %% generated with the docstrip utility.
\r
5 %% The original source files were:
\r
7 %% epsfig.dtx (with options: `package')
\r
9 %% epsfig.dtx Copyright (C) 1994-1996 1999 Sebastian Rahtz
\r
11 %% This file is part of the Standard LaTeX `Graphics Bundle'.
\r
12 %% It may be distributed under the terms of the LaTeX Project Public
\r
13 %% License, as described in lppl.txt in the base LaTeX distribution.
\r
14 %% Either version 1.3 or, at your option, any later version.
\r
16 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
\r
17 \ProvidesPackage{epsfig}
\r
18 [1999/02/16 v1.7a (e)psfig emulation (SPQR)]
\r
19 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{graphicx}}
\r
21 \RequirePackage{graphicx}
\r
23 \let\Gin@ewidth\Gin@exclamation\let\Gin@eheight\Gin@ewidth
\r
24 \def\Gin@req@sizes{%
\r
25 \def\Gin@scalex{1}\let\Gin@scaley\Gin@exclamation
\r
26 \Gin@req@height\Gin@nat@height
\r
27 \Gin@req@width\Gin@nat@width}%
\r
31 \toks@{\Ginclude@graphics{\Gfigname}}%
\r
34 \ifx\Gfigname\relax\ErrorNoFile\else
\r
38 \define@key{Gin}{figure}{\def\Gfigname{#1}}
\r
39 \define@key{Gin}{file}{\def\Gfigname{#1}}
\r
40 \define@key{Gin}{prolog}{\typeout{epsfig: header files are not needed}}
\r
41 \define@key{Gin}{silent}[]{}
\r
42 \def\psdraft{\Gin@drafttrue}
\r
43 \def\psfull{\Gin@draftfalse}
\r
44 \def\pssilent{\typeout{epsfig option `silent' ignored}}
\r
45 \def\psnoisy{\typeout{epsfig option `noisy' ignored}}
\r
47 \def\psfigdriver#1{\makeatletter\input{#1.def}\makeatother}
\r
52 \def\epsfsize#1#2{\epsfxsize}
\r
55 {\Gin@bboxtrue\epsf@bb@box}%
\r
56 {\Gin@bboxfalse\epsf@box}%
\r
58 \def\epsf@bb@box[#1#2]{%
\r
59 \expandafter\Gread@parse@bb#1#2 \\
\r
63 \def\Gin@req@sizes{%
\r
64 \epsfxsize\epsfsize{\Gin@nat@width}{\Gin@nat@height}%
\r
65 \ifdim\epsfxsize=\z@
\r
66 \ifdim\epsfysize=\z@
\r
67 \Gin@req@height\Gin@nat@height
\r
68 \Gin@req@width\Gin@nat@width
\r
70 \let\Gin@scalex\Gin@exclamation
\r
71 \Gin@req@height\epsfysize
\r
72 \Gscale@div\Gin@scaley\Gin@req@height\Gin@nat@height
\r
73 \Gin@req@width\Gin@scaley\Gin@nat@width
\r
76 \Gin@req@width\epsfxsize
\r
77 \Gscale@div\Gin@scalex\Gin@req@width\Gin@nat@width
\r
78 \ifdim\epsfysize=\z@
\r
79 \let\Gin@scaley\Gin@exclamation
\r
80 \Gin@req@height\Gin@scalex\Gin@nat@height
\r
82 \Gin@req@height\epsfysize
\r
83 \Gscale@div\Gin@scaley\Gin@req@height\Gin@nat@height
\r
87 \Ginclude@graphics{#1}%
\r
92 \let\epsffile\epsfbox
\r
93 \def\epsfclipon{\Gin@cliptrue}
\r
94 \def\epsfclipoff{\Gin@clipfalse}
\r
95 \def\epsfverbosetrue{\typeout{epsf verbose option ignored}}
\r
96 \def\epsfverbosefalse{\typeout{epsf verbose option ignored}}
\r
100 %% End of file `epsfig.sty'.
\r