%% %% This is file `graphics.sty', generated on <1994/7/28> %% with the docstrip utility (2.2h). %% %% The original source files were: %% %% graphics.dtx (with options: `package') %% %% IMPORTANT NOTICE: %% You are not allowed to distribute this file. %% For distribution of the original source see %% the copyright notice in the file graphics.dtx . %% %% graphics.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{graphics} [1994/05/30 v0.4e Standard LaTeX Graphics (DPC,SPQR)] \def\@addtofilelist#1{% \xdef\@filelist{\@filelist,#1}} \RequirePackage{trig} \providecommand\Grot@start{\@latexerr{Rotation not supported}\@ehc \global\let\Grot@start\relax} \providecommand\Grot@end{} \providecommand\Gscale@start{\@latexerr{Scaling not supported}\@ehc \global\let\Gscale@start\relax} \providecommand\Gscale@end{} \DeclareOption{dvips}{\input{dvips.def}} \newif\ifGin@draft \DeclareOption{draft}{\Gin@drafttrue} \DeclareOption{final}{\Gin@draftfalse} \DeclareOption{dvgt}{\input{dvgt.def}} \DeclareOption{dvi2ps}{\input{dvi2ps.def}} \DeclareOption{dvialw}{\input{dvialw.def}} \DeclareOption{dvilaser}{\input{dvilaser.def}} \DeclareOption{dvipsone}{\input{dvipsone.def}} \DeclareOption{dvitops}{\input{dvitops.def}} \DeclareOption{dviwindo}{\input{dviwindo.def}} \DeclareOption{dvitps}{\input{dvitps.def}} \DeclareOption{emtex}{\input{emtex.def}} \DeclareOption{dviwin}{\input{dviwin.def}} \DeclareOption{oztex}{\input{oztex.def}} \DeclareOption{psprint}{\input{psprint.def}} \DeclareOption{pubps}{\input{pubps.def}} \DeclareOption{textures}{\input{textures.def}} \DeclareOption{debug}{\catcode`\^^A=9 \let\GDebug\typeout} \edef\GctrlA{\catcode`\noexpand\^^A\the\catcode`\^^A\relax} \catcode`\^^A=\catcode`\% \InputIfFileExists{graphics.cfg}{} \DeclareOption{hiderotate}{% \def\Grot@start{\begingroup\setbox\z@\hbox\bgroup} \def\Grot@end{\egroup\endgroup}} \DeclareOption{hidescale}{% \def\Gscale@start{\begingroup\setbox\z@\hbox\bgroup} \def\Gscale@end{\egroup\endgroup}} \ProcessOptions \let\Gin@llx\leftmargini \let\Gin@lly\leftmarginii \let\Gin@urx\leftmarginiii \let\Gin@ury\leftmarginiv \let\Gin@nat@width\leftmarginv \let\Gin@nat@height\leftmarginvi \newif\ifGin@clip \newcommand\DeclareGraphicsExtensions[2][.]{% \def\Gin@sepdefault{#1}% \def\Gin@extensions{#2}} \providecommand\Gin@extensions{} \def\includegraphics{% \@ifstar {\Gin@cliptrue\Gin@i}% {\Gin@clipfalse\Gin@i}} \def\Gin@i{% \@ifnextchar[%] {\Gin@viewporttrue\Gin@ii} {\Gin@viewportfalse\Ginclude@graphics}} \def\Gin@ii[#1,#2]{% \@ifnextchar[%] {\Gin@iii[#1,#2]} {\Gin@iii[\z@,\z@][#1,#2]}} \def\Gin@iii[#1,#2][#3,#4]{% \@defaultunits\Gin@llx#1bp\relax\@nnil \@defaultunits\Gin@lly#2bp\relax\@nnil \@defaultunits\Gin@urx#3bp\relax\@nnil \@defaultunits\Gin@ury#4bp\relax\@nnil \Ginclude@graphics} \def\DeclareGraphicsRule#1#2#3#4{% \expandafter\edef\csname Gin@rule@#1\endcsname##1% {{#2}{#3}{\ifx\indent#4\indent##1\else#4\fi}}} \def\graphicspath#1{\def\Ginput@path{ #1}} \ifx\Ginput@path\@undefined \let\Ginput@path\input@path \fi \def\Gin@getbase#1{% \edef\Gin@tempa{% \def\noexpand\@tempa####1#1\space{% \def\noexpand\Gin@base{####1}}}% \IfFileExists{\filename@area\filename@base\Gin@sep#1}% {\Gin@tempa \expandafter\@tempa\@filef@und \edef\Gin@ext{#1}}{}}% \let\Gin@ext\relax \def\Gin@sep{.} \def\Ginclude@graphics#1{% \begingroup \let\input@path\Ginput@path \filename@parse{#1}% \ifx\filename@ext\relax \let\Gin@sep\Gin@sepdefault \@for\Gin@temp:=\Gin@extensions\do{% \ifx\Gin@ext\relax \Gin@getbase\Gin@temp \fi}% \else \Gin@getbase\filename@ext \ifx\Gin@ext\relax \@warning{File `#1' not found}% \def\Gin@base{\filename@area\filename@base\Gin@sep}% \let\Gin@ext\filename@ext \fi \fi \ifx\Gin@ext\relax \@latexerr{File `#1' not found}% {I could not locate the file with any of these extensions:^^J% \Gin@extensions^^J\@ehc}% \else \@ifundefined{Gin@rule@\Gin@ext}% {\@latexerr{Unknown graphics extension: \Gin@ext}\@ehc}% {\expandafter\expandafter\expandafter\Gin@setfile \csname Gin@rule@\Gin@ext\endcsname{\Gin@base\Gin@ext}}% \fi \endgroup} \newif\ifGread@\Gread@true \def\Gin@setfile#1#2#3{% \ifx\\#2\\\Gread@false\fi \ifGin@viewport\else\ifGread@ \csname Gread@% \ifx\csname Gread@#1\endcsname\relax eps% \else #1% \fi \endcsname{\Gin@base#2}% \fi\fi \Gin@nat@height\Gin@ury\advance\Gin@nat@height-\Gin@lly \Gin@nat@width\Gin@urx\advance\Gin@nat@width-\Gin@llx \Gin@req@sizes \expandafter\ifx\csname Ginclude@#1\endcsname\relax \Gin@drafttrue \expandafter\ifx\csname Gread#1\endcsname\relax \@latexerr{Can not include graphics of type: #1}\@ehc \global\expandafter\let\csname Gread#1\endcsname\@empty \fi \fi \leavevmode \ifGin@draft \hbox to \Gin@req@width{% \vrule\hss \vbox to \Gin@req@height{% \hrule \@width \Gin@req@width \vss \edef\@tempa{#3}% \rlap{ \ttfamily\expandafter\strip@prefix\meaning\@tempa}% \vss \hrule}% \hss\vrule}% \else \@addtofilelist{#3}% \ProvidesFile{#3}[Graphic file (type #1)]% \setbox\z@\hbox{\csname Ginclude@#1\endcsname{#3}}% \dp\z@\z@ \ht\z@\Gin@req@height \wd\z@\Gin@req@width \box\z@ \fi} \let\Gin@req@sizes\relax \def\Gin@scalex{1}% \def\Gin@scaley{!}% \let\Gin@req@height\Gin@nat@height \let\Gin@req@width\Gin@nat@width \newif\ifGin@viewport \def\Gread@eps#1{% \begingroup \let\do\@makeother\dospecials\catcode`\ 10 % \immediate\openin\@inputcheck#1 % \ifeof\@inputcheck \@latexerr{File `#1' not found}\@ehc \else \Gread@true \let\@tempb\Gread@false \loop \read\@inputcheck to\@tempa \ifeof\@inputcheck \Gread@false \else \expandafter\Gread@find@bb\@tempa:.\\% \fi \ifGread@ \repeat \immediate\closein\@inputcheck \fi \ifGin@viewport\else \@latexerr {Cannot determine size of graphic in #1 (no BoundingBox).}% \@ehc \gdef\g@tempa{0 0 72 72 }% \fi \endgroup \expandafter\Gread@parse@bb\g@tempa\\} \long\def\Gread@find@bb#1:#2#3\\{% \def\@tempa{#1}% \ifx\@tempa\Gread@BBox \Gread@test@atend#2#3()\\% \fi} \def\Gread@test@atend#1(#2)#3\\{% \def\@tempa{#2}% \ifx\@tempa\Gread@atend \Gread@true \let\@tempb\relax \else \gdef\g@tempa{#1}% \@tempb \Gin@viewporttrue \fi} \def\Gread@parse@bb#1 #2 #3 #4 #5\\{% \@defaultunits\Gin@llx#1bp\relax\@nnil \@defaultunits\Gin@lly#2bp\relax\@nnil \@defaultunits\Gin@urx#3bp\relax\@nnil \@defaultunits\Gin@ury#4bp\relax\@nnil} \def\Gread@atend{atend} \edef\Gread@BBox{\@percentchar\@percentchar BoundingBox} \let\Grot@height\@ovxx \let\Grot@left\@ovyy \let\Grot@right\@ovdx \let\Grot@depth\@ovdy \let\Grot@l\@ovro \let\Grot@r\@ovri \let\Grot@h\@xdim \let\Grot@d\@ydim \let\Grot@x\@linelen \let\Grot@y\@dashdim \def\rotatebox#1#2{% \Grot@setangle{#1}% \setbox\z@\hbox{{#2}}% \Grot@x\z@ \Grot@y\z@ \Grot@box} \def\Grot@setangle#1{\edef\Grot@angle{#1}} \def\Grot@Px#1#2#3{% #1\Grot@cos#2% \advance#1-\Grot@sin#3} \def\Grot@Py#1#2#3{% #1\Grot@sin#2% \advance#1\Grot@cos#3} \def\Grot@box{% \begingroup \CalculateSin\Grot@angle \CalculateCos\Grot@angle \edef\Grot@sin{\UseSin\Grot@angle}% \edef\Grot@cos{\UseCos\Grot@angle}% ^^A \GDebug{Rotate: angle \Grot@angle, sine is \Grot@sin, ^^A cosine is \Grot@cos}% \Grot@r\wd\z@ \advance\Grot@r-\Grot@x \Grot@l\z@ \advance\Grot@l-\Grot@x \Grot@h\ht\z@ \advance\Grot@h-\Grot@y \Grot@d-\dp\z@ \advance\Grot@d-\Grot@y \ifdim\Grot@sin\p@>\z@ \ifdim\Grot@cos\p@>\z@ \Grot@Py\Grot@height \Grot@r\Grot@h%B \Grot@Px\Grot@right \Grot@r\Grot@d%E \Grot@Px\Grot@left \Grot@l\Grot@h%C \Grot@Py\Grot@depth \Grot@l\Grot@d%D \else \Grot@Py\Grot@height \Grot@r\Grot@d%E \Grot@Px\Grot@right \Grot@l\Grot@d%D \Grot@Px\Grot@left \Grot@r\Grot@h%B \Grot@Py\Grot@depth \Grot@l\Grot@h%C \fi \else \ifdim\Grot@cos\p@<\z@ \Grot@Py\Grot@height \Grot@l\Grot@d%D \Grot@Px\Grot@right \Grot@l\Grot@h%C \Grot@Px\Grot@left \Grot@r\Grot@d%E \Grot@Py\Grot@depth \Grot@r\Grot@h%B \else \Grot@Py\Grot@height \Grot@l\Grot@h%C \Grot@Px\Grot@right \Grot@r\Grot@h%B \Grot@Px\Grot@left \Grot@l\Grot@d%D \Grot@Py\Grot@depth \Grot@r\Grot@d%E \fi \fi \advance\Grot@height\Grot@y \advance\Grot@depth\Grot@y \Grot@Px\dimen@ \Grot@x\Grot@y \Grot@Py\dimen@ii \Grot@x\Grot@y \dimen@-\dimen@ \advance\dimen@-\Grot@left \dimen@ii-\dimen@ii \advance\dimen@ii\Grot@y ^^A \GDebug{Rotate: (l,r,h,d)^^J% ^^A Original \the\Grot@l,\the\Grot@r,\the\Grot@h,\the\Grot@d,^^J% ^^A New..... \the\Grot@left,\the\Grot@right,% ^^A \the\Grot@height,\the\Grot@depth}% \setbox\z@\hbox{% \kern\dimen@ \raise\dimen@ii\hbox{\Grot@start\box\z@\Grot@end}}% \ht\z@\Grot@height \dp\z@-\Grot@depth \advance\Grot@right-\Grot@left\wd\z@\Grot@right \leavevmode\box\z@ \endgroup} \def\scalebox#1{% \@ifnextchar[{\Gscale@box{#1}}{\Gscale@box{#1}[#1]}} \def\Gscale@box#1[#2]#3{% \def\Gscale@x{#1}\def\Gscale@y{#2}% \setbox\z@\hbox{{#3}}% \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}% \leavevmode \ifdim#2\p@<\z@ \ht\tw@-#2\dp\z@ \dp\tw@-#2\ht\z@ \else \ht\tw@#2\ht\z@ \dp\tw@#2\dp\z@ \fi \ifdim#1\p@<\z@ \hbox to -#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}% \else \wd\tw@#1\wd\z@ \box\tw@ \fi} \def\reflectbox{\Gscale@box-1[1]} \def\resizebox{% \@ifstar{\Gscale@@box\totalheight}{\Gscale@@box\height}} \def\Gscale@@box#1#2#3{% \def\@tempa{!}% \def\@tempb{#2}% \def\@tempc{#3}% \ifx\@tempb\@tempa \ifx\@tempc\@tempa \toks@{\mbox}% \else \toks@{\Gscale@box@dd{#3}#1}% \fi \else \ifx\@tempc\@tempa \toks@{\Gscale@box@dd{#2}\width}% \else \toks@{\Gscale@box@dddd{#2}\width{#3}#1}% \fi \fi \the\toks@} \def\Gscale@box@dd#1#2#3{% \@begin@tempboxa\hbox{#3}% \setlength\@tempdima{#1}% \setlength\@tempdimb{#2}% \Gscale@div\@tempa\@tempdima\@tempdimb \Gscale@box\@tempa[\@tempa]{\box\@tempboxa}% \@end@tempboxa} \def\Gscale@box@dddd#1#2#3#4#5{% \@begin@tempboxa\hbox{#5}% \setlength\@tempdima{#1}% \setlength\@tempdimb{#2}% \Gscale@div\@tempa\@tempdima\@tempdimb \setlength\@tempdima{#3}% \setlength\@tempdimb{#4}% \Gscale@div\@tempb\@tempdima\@tempdimb \Gscale@box\@tempa[\@tempb]{\box\@tempboxa}% \@end@tempboxa} \def\Gscale@div#1#2#3{% \dimen@#3\edef\@tempd{\the\dimen@}% \dimen@#2\relax \count@65536\relax \ifdim\dimen@<\z@ \dimen@-\dimen@ \count@-\count@ \fi \loop \ifdim\dimen@<8192\p@ \dimen@\tw@\dimen@ \divide\count@\tw@ \repeat \dimen@ii=\@tempd\relax \divide\dimen@ii\count@ \divide\dimen@\dimen@ii \edef#1{\strip@pt\dimen@}} \GctrlA \endinput %% %% End of file `graphics.sty'.