/[protege]/frames-vs-owl/graphicx.sty
ViewVC logotype

Contents of /frames-vs-owl/graphicx.sty

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2461 - (show annotations) (download)
Sat Jun 24 00:02:40 2006 UTC (12 years, 5 months ago) by vendetti
File size: 8229 byte(s)
adding directory to house material for the frames vs. owl tutorial at the 2006 protege conference
1 %%
2 %% This is file `graphicx.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% graphicx.dtx (with options: `package')
8 %%
9 %% graphicx.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz
10 %% Copyright (C) 1995 1996 1997 David Carlisle
11 %%
12 %% This file is part of the Standard LaTeX `Graphics Bundle'.
13 %%
14 %% It should be distributed *unchanged* and together with all other
15 %% files in the graphics bundle. The file 00readme.txt contains a list
16 %% of all of these files.
17 %%
18 %% A modified version of this file may be distributed, but it should
19 %% be distributed with a *different* name. Changed files must be
20 %% distributed *together with a complete and unchanged* distribution
21 %% of these files.
22 %%
23 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
24 \ProvidesPackage{graphicx}
25 [1997/06/09 v1.0d Enhanced LaTeX Graphics (DPC,SPQR)]
26 \DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}}
27 \ProcessOptions
28 \RequirePackage{keyval,graphics}
29 \define@key{Gin}{bb}
30 {\Gin@bboxtrue\Gread@parse@bb#1 \\}
31 \define@key{Gin}{bbllx}
32 {\Gin@bboxtrue\Gin@defaultbp\Gin@llx{#1}}
33 \define@key{Gin}{bblly}
34 {\Gin@bboxtrue\Gin@defaultbp\Gin@lly{#1}}
35 \define@key{Gin}{bburx}
36 {\Gin@bboxtrue\Gin@defaultbp\Gin@urx{#1}}
37 \define@key{Gin}{bbury}
38 {\Gin@bboxtrue\Gin@defaultbp\Gin@ury{#1}}
39 \define@key{Gin}{hiresbb}[true]{%
40 \edef\Gread@BBox{%
41 \@percentchar\@percentchar
42 \csname if#1\endcsname HiRes\fi
43 BoundingBox}}
44 \let\KV@Gin@natwidth\KV@Gin@bburx
45 \let\KV@Gin@natheight\KV@Gin@bbury
46 \define@key{Gin}{viewport}
47 {\let\Gin@viewport@code\Gin@viewport\Gread@parse@vp#1 \\}
48 \define@key{Gin}{trim}
49 {\let\Gin@viewport@code\Gin@trim\Gread@parse@vp#1 \\}
50 \def\Gread@parse@vp#1 #2 #3 #4 #5\\{%
51 \Gin@defaultbp\Gin@vllx{#1}%
52 \Gin@defaultbp\Gin@vlly{#2}%
53 \Gin@defaultbp\Gin@vurx{#3}%
54 \Gin@defaultbp\Gin@vury{#4}}%
55 \def\Gin@viewport{%
56 \let\Gin@ollx\Gin@llx
57 \let\Gin@olly\Gin@lly
58 \let\Gin@ourx\Gin@urx
59 \let\Gin@oury\Gin@ury
60 \dimen@\Gin@llx\p@\advance\dimen@ \Gin@vurx\p@
61 \edef\Gin@urx{\strip@pt\dimen@}%
62 \dimen@\Gin@lly\p@\advance\dimen@ \Gin@vury\p@
63 \edef\Gin@ury{\strip@pt\dimen@}%
64 \dimen@\Gin@llx\p@\advance\dimen@ \Gin@vllx\p@
65 \edef\Gin@llx{\strip@pt\dimen@}%
66 \dimen@\Gin@lly\p@\advance\dimen@ \Gin@vlly\p@
67 \edef\Gin@lly{\strip@pt\dimen@}}
68 \def\Gin@trim{%
69 \let\Gin@ollx\Gin@llx
70 \let\Gin@olly\Gin@lly
71 \let\Gin@ourx\Gin@urx
72 \let\Gin@oury\Gin@ury
73 \dimen@\Gin@llx\p@\advance\dimen@ \Gin@vllx\p@
74 \edef\Gin@llx{\strip@pt\dimen@}%
75 \dimen@\Gin@lly\p@\advance\dimen@ \Gin@vlly\p@
76 \edef\Gin@lly{\strip@pt\dimen@}%
77 \dimen@\Gin@urx\p@\advance\dimen@ -\Gin@vurx\p@
78 \edef\Gin@urx{\strip@pt\dimen@}%
79 \dimen@\Gin@ury\p@\advance\dimen@ -\Gin@vury\p@
80 \edef\Gin@ury{\strip@pt\dimen@}}
81 \let\Gin@vllx\Gin@llx\let\Gin@vlly\Gin@llx
82 \let\Gin@vurx\Gin@llx\let\Gin@vury\Gin@llx
83 \define@key{Gin}{angle}
84 {\Gin@esetsize
85 \@tempswatrue
86 \edef\@tempa{\toks@{\noexpand\Gin@erotate{#1}{\the\toks@}}}%
87 \@tempa}
88 \define@key{Gin}{origin}[c]{%
89 \def\Gin@erotate{\Grot@box@kv[origin=#1]}}
90 \define@key{Gin}{width}{\def\Gin@ewidth{#1}}
91 \define@key{Gin}{height}{\def\Gin@eheight{#1}}
92 \define@key{Gin}{totalheight}{%
93 \def\Gin@eresize{\totalheight}\def\Gin@eheight{#1}}
94 \define@key{Gin}{keepaspectratio}[true]{%
95 \lowercase{\Gin@boolkey{#1}}{iso}}
96 \define@key{Gin}{scale}{%
97 \if@tempswa
98 \edef\@tempa{\toks@{\noexpand\Gscale@box{#1}[#1]{\the\toks@}}}%
99 \@tempa
100 \else
101 \def\Gin@req@sizes{%
102 \def\Gin@scalex{#1}\let\Gin@scaley\Gin@exclamation
103 \Gin@req@height\Gin@scalex\Gin@nat@height
104 \Gin@req@width\Gin@scalex\Gin@nat@width}%
105 \fi
106 \@tempswatrue}
107 \define@key{Gin}{draft}[true]{%
108 \lowercase{\Gin@boolkey{#1}}{draft}}
109 \define@key{Gin}{clip}[true]{%
110 \lowercase{\Gin@boolkey{#1}}{clip}}
111 \define@key{Gin}{type}{%
112 \def\Ginclude@graphics##1{%
113 \begingroup
114 \def\Gin@base{##1}%
115 \edef\@tempa{{#1}{\Gin@eread}{\Gin@ecom{##1\Gin@eext}}}%
116 \expandafter\Gin@setfile\@tempa
117 \endgroup}}
118 \define@key{Gin}{ext}{\def\Gin@eext{#1}}
119 \let\Gin@eext\@empty
120 \define@key{Gin}{read}{%
121 \def\Gin@eread{#1}%
122 \def\@tempa{*}\ifx\@tempa\Gin@eread\def\Gin@eread{\Gin@eext}\fi}
123 \let\Gin@eread\@empty
124 \define@key{Gin}{command}{\def\Gin@ecom##1{#1}}
125 \let\Gin@ecom\@firstofone
126 \def\Gin@boolkey#1#2{%
127 \csname Gin@#2\ifx\relax#1\relax true\else#1\fi\endcsname}
128 \def\Gin@eresize{\height}
129 \def\Gin@esetsize{%
130 \let\@tempa\Gin@exclamation
131 \if@tempswa
132 \edef\@tempa{\toks@{\noexpand
133 \Gscale@@box\noexpand\Gin@eresize
134 {\Gin@ewidth}{\Gin@eheight}{\the\toks@}}}%
135 \@tempa
136 \else
137 \ifx\Gin@ewidth\@tempa
138 \ifx\Gin@eheight\@tempa
139 \else
140 \let\Gin@@eheight\Gin@eheight
141 \def\Gin@req@sizes{%
142 \Gscale@div\Gin@scaley\Gin@@eheight\Gin@nat@height
143 \let\Gin@scalex\Gin@exclamation
144 \setlength\Gin@req@height\Gin@@eheight
145 \Gin@req@width\Gin@scaley\Gin@nat@width}%
146 \fi
147 \else
148 \ifx\Gin@eheight\@tempa
149 \let\Gin@@ewidth\Gin@ewidth
150 \def\Gin@req@sizes{%
151 \Gscale@div\Gin@scalex\Gin@@ewidth\Gin@nat@width
152 \let\Gin@scaley\Gin@exclamation
153 \setlength\Gin@req@width\Gin@@ewidth
154 \Gin@req@height\Gin@scalex\Gin@nat@height}%
155 \else
156 \let\Gin@@ewidth\Gin@ewidth
157 \let\Gin@@eheight\Gin@eheight
158 \def\Gin@nosize##1{%
159 \KV@Gin@natwidth\Gin@@ewidth
160 \KV@Gin@natheight\Gin@@eheight}%
161 \def\Gin@req@sizes{%
162 \Gscale@div\Gin@scalex\Gin@@ewidth\Gin@nat@width
163 \Gscale@div\Gin@scaley\Gin@@eheight\Gin@nat@height
164 \ifGin@iso
165 \ifdim\Gin@scaley\p@>\Gin@scalex\p@
166 \let\Gin@scaley\Gin@scalex
167 \else
168 \let\Gin@scalex\Gin@scaley
169 \fi
170 \fi
171 \Gin@req@width\Gin@scalex\Gin@nat@width
172 \Gin@req@height\Gin@scaley\Gin@nat@height}%
173 \fi
174 \fi
175 \fi
176 \let\Gin@ewidth\Gin@exclamation
177 \let\Gin@eheight\Gin@ewidth}
178 \newdimen\Gin@req@height
179 \newdimen\Gin@req@width
180 \let\Gin@outer@scalex\relax
181 \let\Gin@outer@scaley\relax
182 \let\Gin@angle\relax
183 \let\Gin@ewidth\Gin@exclamation
184 \let\Gin@eheight\Gin@ewidth
185 \def\Gin@scalex{1}
186 \let\Gin@scaley\Gin@exclamation
187 \def\Gin@i{%
188 \def\Gin@req@sizes{%
189 \Gin@req@height\Gin@nat@height
190 \Gin@req@width\Gin@nat@width}%
191 \@ifnextchar[\Gin@ii{\Gin@ii[]}}
192 \def\Gin@ii[#1]#2{%
193 \def\@tempa{[}\def\@tempb{#2}%
194 \ifx\@tempa\@tempb
195 \def\@tempa{\Gin@iii[#1][}%
196 \expandafter\@tempa
197 \else
198 \begingroup
199 \@tempswafalse
200 \toks@{\Ginclude@graphics{#2}}%
201 \setkeys{Gin}{#1}%
202 \Gin@esetsize
203 \the\toks@
204 \endgroup
205 \fi}
206 \def\rotatebox{%
207 \@ifnextchar[\Grot@box@kv\Grot@box@std}
208 \def\Grot@box@std#1#2{%
209 \Grot@setangle{#1}%
210 \setbox\z@\hbox{{#2}}%
211 \Grot@x\z@
212 \Grot@y\z@
213 \Grot@box}
214 \def\Grot@box@kv[#1]#2#3{%
215 \@begin@tempboxa\hbox{#3}%
216 \Grot@x\width \divide\Grot@x\tw@
217 \Grot@y\height \advance\Grot@y-\depth \divide\Grot@y\tw@
218 \setkeys{Grot}{#1}%
219 \setbox\z@\box\@tempboxa
220 \Grot@setangle{#2}%
221 \Grot@box
222 \@end@tempboxa}
223 \define@key{Grot}{origin}[c]{%
224 \@tfor\@tempa:=#1\do{%
225 \if l\@tempa \Grot@x\z@\else
226 \if r\@tempa \Grot@x\width\else
227 \if t\@tempa \Grot@y\height\else
228 \if b\@tempa \Grot@y-\depth\else
229 \if B\@tempa \Grot@y\z@\fi\fi\fi\fi\fi}}
230 \define@key{Grot}{x}{\setlength\Grot@x{#1}}
231 \define@key{Grot}{y}{\setlength\Grot@y{#1}}
232 \define@key{Grot}{units}{%
233 \def\Grot@setangle##1{%
234 \dimen@##1\p@
235 \dimen@ii#1\p@
236 \divide\dimen@ii360\relax
237 \divide\dimen@\dimen@ii
238 \edef\Grot@angle{\number\dimen@}}}
239 \let\Gin@erotate\Grot@box@std
240 \endinput
241 %%
242 %% End of file `graphicx.sty'.

protege-admin@lists.stanford.edu
ViewVC Help
Powered by ViewVC 1.1.26