| 1 |
%% |
| 2 |
%% This is file `truetex.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% drivers.dtx (with options: `truetex,color4,nops') |
| 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-2025 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{truetex.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 |
\c@lor@rgb@RGB\@tempa |
| 31 |
\edef#1{\@tempa\@tempa\@tempa}% |
| 32 |
} |
| 33 |
\def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1} |
| 34 |
\def\c@lor@@cmyk#1,#2,#3,#4\@@#5{% |
| 35 |
\c@lor@arg{#4}% |
| 36 |
\dimen@ii#4\p@ |
| 37 |
\c@lor@arg{#1}% |
| 38 |
\c@lor@cmyk@RGB\@tempa |
| 39 |
\c@lor@arg{#2}% |
| 40 |
\c@lor@cmyk@RGB\@tempb |
| 41 |
\c@lor@arg{#3}% |
| 42 |
\c@lor@cmyk@RGB\@tempc |
| 43 |
\edef#5{\@tempa\@tempb\@tempc}% |
| 44 |
} |
| 45 |
\def\c@lor@cmyk@RGB#1{% |
| 46 |
\advance\dimen@-\p@ |
| 47 |
\advance\dimen@\dimen@ii |
| 48 |
\dimen@-\@cclv\dimen@ |
| 49 |
\divide\dimen@\p@ |
| 50 |
\count@\ifdim\dimen@<\z@\z@\else\dimen@\fi |
| 51 |
\edef#1{\the\count@\space}} |
| 52 |
\def\color@rgb#1#2{\c@lor@@rgb#2\@@#1} |
| 53 |
\def\c@lor@@rgb#1,#2,#3\@@#4{% |
| 54 |
\c@lor@arg{#1}% |
| 55 |
\c@lor@rgb@RGB\@tempa |
| 56 |
\c@lor@arg{#2}% |
| 57 |
\c@lor@rgb@RGB\@tempb |
| 58 |
\c@lor@arg{#3}% |
| 59 |
\c@lor@rgb@RGB\@tempc |
| 60 |
\edef#4{\@tempa\@tempb\@tempc}% |
| 61 |
} |
| 62 |
\def\c@lor@rgb@RGB#1{% |
| 63 |
\dimen@\@cclv\dimen@ |
| 64 |
\count@\dimen@ |
| 65 |
\divide\count@\p@ |
| 66 |
\edef#1{\the\count@\space}} |
| 67 |
\def\color@RGB#1#2{\c@lor@@RGB#2\@@#1} |
| 68 |
\def\c@lor@@RGB#1,#2,#3\@@#4{% |
| 69 |
\edef#4{#1 #2 #3}% |
| 70 |
} |
| 71 |
\def\color@named#1#2{\c@lor@@named#2,,\@@#1} |
| 72 |
\def\c@lor@@named#1,#2,#3\@@#4{% |
| 73 |
\@ifundefined{col@#1}% |
| 74 |
{\PackageError{color}{Undefined color `#1'}\@ehd}% |
| 75 |
{\edef#4{\csname col@#1\endcsname}}% |
| 76 |
} |
| 77 |
\def\c@lor@to@ps#1#2 #3 #4\@@{% |
| 78 |
#1#2 255 div #3 255 div #4 255 div setrgbcolor} |
| 79 |
\def\current@color{0 0 0} |
| 80 |
\def\set@color{% |
| 81 |
\special{textcolor: \current@color}\aftergroup\reset@color} |
| 82 |
\def\reset@color{\special{textcolor: \current@color}} |
| 83 |
\def\set@page@color{% |
| 84 |
\c@lor@special\sixt@@n{background color ignored: \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@bmp#1{% |
| 106 |
\message{<#1>}% |
| 107 |
\special{bmpfile #1}} |
| 108 |
\def\Ginclude@tiff#1{% |
| 109 |
\message{<#1>}% |
| 110 |
\special{tifffile #1}} |
| 111 |
\def\Gin@extensions{.eps,.ps} |
| 112 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 113 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 114 |
\@namedef{Gin@[email protected]}#1{{tiff}{}{#1}} |
| 115 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 116 |
\@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}} |
| 117 |
\def\Gin@PS@raw#1{} |
| 118 |
\def\Gin@PS@restored#1{} |
| 119 |
\def\Gin@PS@literal@header#1{} |
| 120 |
\def\Gin@PS@file@header#1{} |
| 121 |
\endinput |
| 122 |
%% |
| 123 |
%% End of file `truetex.def'. |