| 1 |
%% |
| 2 |
%% This is file `pctex32.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% drivers.dtx (with options: `pctex32,color1') |
| 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{pctex32.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{color push \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\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 |
\ifGin@clip |
| 108 |
\typeout{no clipping support for BMP graphics in PCTeX32}% |
| 109 |
\fi |
| 110 |
\Gin@[email protected]\Gin@req@width |
| 111 |
\Gin@[email protected]\Gin@req@height |
| 112 |
\special{bmp:#1\space x=\strip@pt\Gin@req@width cm, |
| 113 |
y=\strip@pt\Gin@req@height cm}} |
| 114 |
\def\Ginclude@wmf#1{% |
| 115 |
\message{<#1>}% |
| 116 |
\ifGin@clip |
| 117 |
\typeout{no clipping support for WMF graphics in PCTeX32}% |
| 118 |
\fi |
| 119 |
\Gin@[email protected]\Gin@req@width |
| 120 |
\Gin@[email protected]\Gin@req@height |
| 121 |
\special{wmf:#1\space x=\strip@pt\Gin@req@width cm, |
| 122 |
y=\strip@pt\Gin@req@height cm}} |
| 123 |
\def\Grot@start{% |
| 124 |
\special{ps:: gsave currentpoint |
| 125 |
currentpoint translate \Grot@angle\space neg |
| 126 |
rotate neg exch neg exch translate}} |
| 127 |
\def\Grot@end{\special{ps:: currentpoint grestore moveto}} |
| 128 |
\def\Gscale@start{\special{ps:: currentpoint currentpoint translate |
| 129 |
\Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}} |
| 130 |
\def\Gscale@end{\special{ps:: currentpoint currentpoint translate |
| 131 |
1 \Gscale@x\space div 1 \Gscale@y\space div scale |
| 132 |
neg exch neg exch translate}} |
| 133 |
\def\Gin@PS@raw#1{\special{ps:: #1}} |
| 134 |
\def\Gin@PS@restored#1{\special{" #1}} |
| 135 |
\def\Gin@extensions{.eps,.ps,.wmf,.bmp} |
| 136 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 137 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 138 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 139 |
\@namedef{Gin@[email protected]}#1{{wmf}{}{#1}} |
| 140 |
\endinput |
| 141 |
%% |
| 142 |
%% End of file `pctex32.def'. |