Debian Codegraph @

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

raw
1 %%
2 %% This is file `dvipsone.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% drivers.dtx (with options: `tiffrules,dvipsone,color1,dosrules,psrules')
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{dvipsone.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{\csname col@#1\endcsname}}%
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{gray 0}
78 \def\set@color{%
79 \special{color push}\special{color \current@color
80 }\aftergroup\reset@color}
81 \def\reset@color{\special{%
82 color pop}}
83 \def\set@page@color{\special{%
84 background \current@color}}
85 \def\define@color@named#1#2{%
86 \expandafter\edef\csname col@#1\endcsname{#2}}
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@tiff#1{%
106 \message{<#1>}%
107 \special{insertimage: #1 \number\Gin@req@width\space
108 \number\Gin@req@height}}
109 \def\Ginclude@wmf#1{%
110 \message{<#1>}%
111 \special{insertmf: #1 0 0 \number\Gin@req@width\space
112 \number\Gin@req@height}}
113 \def\Gin@PS@raw#1{\special{ps: #1}}
114 \def\Grot@start{%
115 \special{ps: gsave currentpoint
116 currentpoint translate \Grot@angle\space
117 rotate neg exch neg exch translate}}
118 \def\Grot@end{%
119 \special{ps: currentfont currentpoint grestore moveto setfont}}
120 \def\Gscale@start{\special{ps: currentpoint currentpoint translate
121 \Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}}
122 \def\Gscale@end{\special{ps: currentpoint currentpoint translate
123 1 \Gscale@x\space div 1 \Gscale@y\space div scale
124 neg exch neg exch translate}}
125 \@namedef{Gin@[email protected]}#1{{wmf}{}{#1}}
126 \@namedef{Gin@[email protected]}#1{{wmf}{}{#1}}
127 \def\Gin@PS@raw#1{\special{ps: #1}}
128 \def\Gin@PS@restored#1{\special{" #1}}
129 \def\Gin@PS@literal@header#1{\AtBeginDvi{\special{headertext=#1}}}
130 \def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}}
131 \def\Gin@extensions{.eps,.ps}
132 \@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}}
133 \@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}}
134 \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
135 \def\Gin@extensions{.eps,.ps,.pcx,.bmp}
136 \@namedef{Gin@[email protected]}#1{{bmp}{}{#1}}
137 \@namedef{Gin@[email protected]}#1{{bmp}{}{#1}}
138 \@namedef{Gin@[email protected]}#1{{bmp}{}{#1}}
139 \@namedef{Gin@[email protected]}#1{{tiff}{}{#1}}
140 \endinput
141 %%
142 %% End of file `dvipsone.def'.