Debian Codegraph @

texmf-dist/tex/latex-dev/graphics/dvipdf.def

raw
1 %%
2 %% This is file `dvipdf.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% drivers.dtx (with options: `dvipdf,color1,psrulesZ')
8 %%
9 %% drivers.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz
10 %% Copyright (C) 1995 1996 1997 1998 1999 David Carlisle
11 %% Copyright (C) 2000-2026 LaTeX Project
12 %% The LaTeX Project and any individual authors listed elsewhere
13 %% in this file.
14 %%
15 %% This file is part of the Standard LaTeX `Graphics Bundle'.
16 %% It may be distributed under the terms of the LaTeX Project Public
17 %% License, as described in lppl.txt in the base LaTeX distribution.
18 %% Either version 1.3 or, at your option, any later version.
19 %%
20 \ProvidesFile{dvipdf.def}
21 [2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)]
22 \def\c@lor@arg#1{%
23 \dimen@#1\p@
24 \ifdim\dimen@<\z@\dimen@\maxdimen\fi
25 \ifdim\dimen@>\p@
26 \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
27 \fi}
28 \def\color@gray#1#2{%
29 \c@lor@arg{#2}%
30 \edef#1{gray #2}%
31 }
32 \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
33 \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
34 \c@lor@arg{#4}%
35 \c@lor@arg{#1}%
36 \c@lor@arg{#2}%
37 \c@lor@arg{#3}%
38 \edef#5{cmyk #1 #2 #3 #4}%
39 }
40 \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
41 \def\c@lor@@rgb#1,#2,#3\@@#4{%
42 \c@lor@arg{#1}%
43 \c@lor@arg{#2}%
44 \c@lor@arg{#3}%
45 \edef#4{rgb #1 #2 #3}%
46 }
47 \def\color@RGB#1#2{\c@lor@@RGB#2\@@#1}
48 \def\c@lor@@RGB#1,#2,#3\@@#4{%
49 \c@lor@RGB@rgb{#1}\@tempa
50 \c@lor@RGB@rgb{#2}\@tempb
51 \c@lor@RGB@rgb{#3}\@tempc
52 \c@lor@@rgb\@tempa,\@tempb,\@tempc\@@#4%
53 }
54 \def\c@lor@RGB@rgb#1#2{%
55 \dimen@#1\p@
56 \divide\dimen@\@cclv
57 \edef#2{\strip@pt\dimen@}}
58 \def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
59 \def\c@lor@@hsb#1,#2,#3\@@#4{%
60 \c@lor@arg{#1}%
61 \c@lor@arg{#2}%
62 \c@lor@arg{#3}%
63 \edef#4{hsb #1 #2 #3}%
64 }
65 \def\color@named#1#2{\c@lor@@named#2,,\@@#1}
66 \def\c@lor@@named#1,#2,#3\@@#4{%
67 \@ifundefined{col@#1}%
68 {\PackageError{color}{Undefined color `#1'}\@ehd}%
69 {\edef#4{ #1}}%
70 }
71 \def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}
72 \def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}
73 \def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}
74 \def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}
75 \def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
76 \def\c@lor@ps@gray#1\@@{#1 setgray}
77 \def\current@color{ Black}
78 \def\set@color{%
79 \special{pdf: /C \current@color\space<<
80 }\aftergroup\reset@color}
81 \def\reset@color{\special{%
82 pdf: /C >> }}
83 \def\set@page@color{\special{%
84 pdf: /BG \current@color}}
85 \def\define@color@named#1#2{%
86 \expandafter\let\csname col@#1\endcsname\@nnil}
87 \def\Ginclude@eps#1{%
88 \message{<#1>}%
89 \bgroup
90 \def\@tempa{!}%
91 \dimen@\Gin@req@width
92 \[email protected]%
93 \divide\dimen@\dimen@ii
94 \@tempdima\Gin@req@height
95 \divide\@tempdima\dimen@ii
96 \special{PSfile="#1"\space
97 llx=\Gin@llx\space
98 lly=\Gin@lly\space
99 urx=\Gin@urx\space
100 ury=\Gin@ury\space
101 \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
102 \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
103 \ifGin@clip clip\fi}%
104 \egroup}
105 \def\Ginclude@bmp#1{%
106 \message{<#1>}%
107 \dimen@\Gin@req@height
108 \advance\dimen@ by-\Gin@lly bp
109 \kern-\Gin@llx bp\raise\Gin@req@height\hbox{%
110 \ifdim\Gin@urx bp=\z@
111 \ifdim\Gin@ury bp=\z@
112 \special{pdf: /GRAPH #1}%
113 \else
114 \special{pdf: /GRAPH #1 \number\Gin@req@width sp}%
115 \fi
116 \else
117 \special{pdf: /GRAPH #1 \number\Gin@req@width sp
118 \number\Gin@req@height sp}%
119 \fi}}
120 \def\Grot@start{%
121 \special{pdf: /ROT \Grot@angle\space << }}
122 \def\Grot@end{\special{pdf: /ROT >> }}
123 \def\Gscale@start{\special{pdf: /S \Gscale@x\space \Gscale@y\space << }}
124 \def\Gscale@end{\special{pdf: /S \space >> }}
125 \def\Gin@PS@raw#1{\special{ps: #1}}
126 \def\Gin@PS@restored#1{\special{" #1}}
127 \def\Gin@PS@literal@header#1{\AtBeginDvi{\special{! #1}}}
128 \def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}}
129 \@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}}
130 \@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}}
131 \@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}}
132 \def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps}
133 \@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}}
134 \@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}}
135 \@namedef{Gin@[email protected]}#1{{eps}{.mps}{#1}}
136 \@namedef{Gin@[email protected]}#1{{eps}{.bb}{#1}}
137 \@namedef{Gin@[email protected]}#1{{eps}{.eps.bb}{#1}}
138 \@namedef{Gin@[email protected]}#1{{eps}{.ps.bb}{#1}}
139 \@namedef{Gin@[email protected]}#1{{eps}{.ps.bb}{#1}}
140 \@namedef{Gin@[email protected]}#1{{eps}{.eps.bb}{#1}}
141 \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
142 \endinput
143 %%
144 %% End of file `dvipdf.def'.