Debian Codegraph @

texmf-dist/tex/latex/graphics/epsfig.sty

raw
1 %%
2 %% This is file `epsfig.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% epsfig.dtx (with options: `package')
8 %%
9 %% The source is maintained by the LaTeX Project team and bug
10 %% reports for it can be opened at https://latex-project.org/bugs/
11 %% (but please observe conditions on bug reports sent to that address!)
12 %%
13 %%
14 %% epsfig.dtx Copyright (C) 1994-1996 1999 Sebastian Rahtz
15 %% Copyright (C) 2000-2025 LaTeX Project
16 %% The LaTeX Project and any individual authors listed elsewhere
17 %% in this file.
18 %%
19 %% This file is part of the Standard LaTeX `Graphics Bundle'.
20 %% It may be distributed under the terms of the LaTeX Project Public
21 %% License, as described in lppl.txt in the base LaTeX distribution.
22 %% Either version 1.3 or, at your option, any later version.
23 %%
24 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
25 \ProvidesPackage{epsfig}
26 [2024/01/14 v1.7b (e)psfig emulation (SPQR)]
27 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{graphicx}}
28 \ProcessOptions
29 \RequirePackage{graphicx}
30 \def\psfig#1{%
31 \let\Gin@ewidth\Gin@exclamation\let\Gin@eheight\Gin@ewidth
32 \def\Gin@req@sizes{%
33 \def\Gin@scalex{1}\let\Gin@scaley\Gin@exclamation
34 \Gin@req@height\Gin@nat@height
35 \Gin@req@width\Gin@nat@width}%
36 \begingroup
37 \let\Gfigname\relax
38 \@tempswafalse
39 \toks@{\Ginclude@graphics{\Gfigname}}%
40 \setkeys{Gin}{#1}%
41 \Gin@esetsize
42 \ifx\Gfigname\relax\ErrorNoFile\else
43 \the\toks@
44 \fi
45 \endgroup}
46 \define@key{Gin}{figure}{\def\Gfigname{#1}}
47 \define@key{Gin}{file}{\def\Gfigname{#1}}
48 \define@key{Gin}{prolog}{\typeout{epsfig: header files are not needed}}
49 \define@key{Gin}{silent}[]{}
50 \def\psdraft{\Gin@drafttrue}
51 \def\psfull{\Gin@draftfalse}
52 \def\pssilent{\typeout{epsfig option `silent' ignored}}
53 \def\psnoisy{\typeout{epsfig option `noisy' ignored}}
54 \let\epsfig\psfig
55 \def\psfigdriver#1{\makeatletter\input{#1.def}\makeatother}
56 \newdimen\epsfxsize
57 \newdimen\epsfysize
58 \epsfysize\z@
59 \epsfxsize\z@
60 \def\epsfsize#1#2{\epsfxsize}
61 \def\epsfbox{%
62 \@ifnextchar[%
63 {\Gin@bboxtrue\epsf@bb@box}%
64 {\Gin@bboxfalse\epsf@box}%
65 }
66 \def\epsf@bb@box[#1#2]{%
67 \expandafter\Gread@parse@bb#1#2 \\
68 \epsf@box}
69 \def\epsf@box#1{%
70 \bgroup
71 \def\Gin@req@sizes{%
72 \epsfxsize\epsfsize{\Gin@nat@width}{\Gin@nat@height}%
73 \ifdim\epsfxsize=\z@
74 \ifdim\epsfysize=\z@
75 \Gin@req@height\Gin@nat@height
76 \Gin@req@width\Gin@nat@width
77 \else
78 \let\Gin@scalex\Gin@exclamation
79 \Gin@req@height\epsfysize
80 \Gscale@div\Gin@scaley\Gin@req@height\Gin@nat@height
81 \Gin@req@width\Gin@scaley\Gin@nat@width
82 \fi
83 \else
84 \Gin@req@width\epsfxsize
85 \Gscale@div\Gin@scalex\Gin@req@width\Gin@nat@width
86 \ifdim\epsfysize=\z@
87 \let\Gin@scaley\Gin@exclamation
88 \Gin@req@height\Gin@scalex\Gin@nat@height
89 \else
90 \Gin@req@height\epsfysize
91 \Gscale@div\Gin@scaley\Gin@req@height\Gin@nat@height
92 \fi
93 \fi
94 }%
95 \Ginclude@graphics{#1}%
96 \egroup
97 \epsfysize\z@
98 \epsfxsize\z@
99 }
100 \let\epsffile\epsfbox
101 \def\epsfclipon{\Gin@cliptrue}
102 \def\epsfclipoff{\Gin@clipfalse}
103 \def\epsfverbosetrue{\typeout{epsf verbose option ignored}}
104 \def\epsfverbosefalse{\typeout{epsf verbose option ignored}}
105
106 \endinput
107 %%
108 %% End of file `epsfig.sty'.