| 1 |
% |
| 2 |
% \iffalse |
| 3 |
% |
| 4 |
%% drivers.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz |
| 5 |
%% Copyright (C) 1995 1996 1997 1998 1999 David Carlisle |
| 6 |
%% Copyright (C) 2000-2025 LaTeX Project |
| 7 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 8 |
%% in this file. |
| 9 |
%% |
| 10 |
%% This file is part of the Standard LaTeX `Graphics Bundle'. |
| 11 |
%% It may be distributed under the terms of the LaTeX Project Public |
| 12 |
%% License, as described in lppl.txt in the base LaTeX distribution. |
| 13 |
%% Either version 1.3 or, at your option, any later version. |
| 14 |
%% |
| 15 |
%<template, >\ProvidesFile{template.def} |
| 16 |
%<dvips, >\ProvidesFile{dvips.def} |
| 17 |
%<dvipsnames>\ProvidesFile{dvipsnam.def} |
| 18 |
%<dvipdf, >\ProvidesFile{dvipdf.def} |
| 19 |
%<emtex, >\ProvidesFile{emtex.def} |
| 20 |
%<dviwin, >\ProvidesFile{dviwin.def} |
| 21 |
%<dvipsone, >\ProvidesFile{dvipsone.def} |
| 22 |
%<pctexps, >\ProvidesFile{pctexps.def} |
| 23 |
%<pctex32, >\ProvidesFile{pctex32.def} |
| 24 |
%<pctexwin, >\ProvidesFile{pctexwin.def} |
| 25 |
%<pctexhp, >\ProvidesFile{pctexhp.def} |
| 26 |
%<truetex, >\ProvidesFile{truetex.def} |
| 27 |
%<tcidvi, >\ProvidesFile{tcidvi.def} |
| 28 |
%<oztex, >\ProvidesFile{oztex.def} |
| 29 |
%<textures, >\ProvidesFile{textures.def} |
| 30 |
%<dvialw, >\ProvidesFile{dvialw.def} |
| 31 |
%<dvilaser, >\ProvidesFile{dvilaser.def} |
| 32 |
%<psprint, >\ProvidesFile{psprint.def} |
| 33 |
%<dvi2ps, >\ProvidesFile{dvi2ps.def} |
| 34 |
%<pubps, >\ProvidesFile{pubps.def} |
| 35 |
%<dvitops, >\ProvidesFile{dvitops.def} |
| 36 |
%<ln, >\ProvidesFile{ln.def} |
| 37 |
% |
| 38 |
%<*driver> |
| 39 |
\NeedsTeXFormat{LaTeX2e} |
| 40 |
\ProvidesFile{drivers.dtx} |
| 41 |
%</driver> |
| 42 |
[2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)] |
| 43 |
% |
| 44 |
%<*driver> |
| 45 |
\documentclass{ltxdoc} |
| 46 |
\GetFileInfo{drivers.dtx} |
| 47 |
\begin{document} |
| 48 |
\title{Graphics drivers for \LaTeXe\thanks |
| 49 |
{Version \fileversion, revised \filedate}} |
| 50 |
\author{Sebastian Rahtz and David Carlisle} |
| 51 |
\date{\filedate} |
| 52 |
\MaintainedByLaTeXTeam{graphics} |
| 53 |
\maketitle |
| 54 |
\DocInput{drivers.dtx} |
| 55 |
\end{document} |
| 56 |
%</driver> |
| 57 |
% \fi |
| 58 |
% |
| 59 |
% |
| 60 |
% |
| 61 |
% \providecommand\OzTeX{O\kern-.03em z\kern-.15em\TeX} |
| 62 |
% |
| 63 |
% \section{Driver files} |
| 64 |
% |
| 65 |
% This file implements some of the currently supported drivers. |
| 66 |
% If the driver you use is not in this list then a `.def' file |
| 67 |
% may be distributed with This graphics bundle, |
| 68 |
% or may be distributed with your driver. |
| 69 |
% |
| 70 |
% If not, send us some details of the driver's |\special| syntax, and |
| 71 |
% we will try to produce a suitable file. |
| 72 |
% |
| 73 |
% Note that some of these files are for drivers to which we have no |
| 74 |
% access, so they are untested. Please send any corrections to the |
| 75 |
% latexbugs address. |
| 76 |
% |
| 77 |
% |
| 78 |
% |
| 79 |
% |
| 80 |
% \MaybeStop{} |
| 81 |
% |
| 82 |
% |
| 83 |
% \section{Colour} |
| 84 |
% |
| 85 |
% Most of the drivers that support colour use one of three methods. |
| 86 |
% \begin{itemize} |
| 87 |
% \item color1: `dvips' style colour specials. |
| 88 |
% \item color2: `textures' style colour specials. |
| 89 |
% \item color3: Colour implemented via literal PostScript specials. |
| 90 |
% \item color4: Colour implemented by specials that only support RGB, |
| 91 |
% i.e., Red Green Blue specified as integers in the range |
| 92 |
% 0--255. Other models converted to this within \TeX. |
| 93 |
% \end{itemize} |
| 94 |
% Some drivers do not use any of these modules and have their own code. |
| 95 |
% Note that drivers using the `color3' code can not fully support the |
| 96 |
% \LaTeX\ colour commands. |
| 97 |
% \begin{macrocode} |
| 98 |
%<*color1|color2|color3|color4> |
| 99 |
% \end{macrocode} |
| 100 |
% |
| 101 |
% \begin{macrocode} |
| 102 |
\def\c@lor@arg#1{% |
| 103 |
\dimen@#1\p@ |
| 104 |
\ifdim\dimen@<\z@\dimen@\maxdimen\fi |
| 105 |
\ifdim\dimen@>\p@ |
| 106 |
\PackageError{color}{Argument `#1' not in range [0,1]}\@ehd |
| 107 |
\fi} |
| 108 |
% \end{macrocode} |
| 109 |
% |
| 110 |
% Need to make sure of a trailing .0 for textures. Apparently it |
| 111 |
% is OK to always add a . as 1.3. is accepted by textures. |
| 112 |
% textures gray special is reversed, so just use rgb instead. |
| 113 |
% |
| 114 |
% \begin{macrocode} |
| 115 |
\def\color@gray#1#2{% |
| 116 |
\c@lor@arg{#2}% |
| 117 |
%<color4> \c@lor@rgb@RGB\@tempa |
| 118 |
%<color1> \edef#1{gray #2}% |
| 119 |
%<color2> \edef#1{rgb #2. #2. #2.}% |
| 120 |
%<color3> \edef#1{#2 setgray}% |
| 121 |
%<color4> \edef#1{\@tempa\@tempa\@tempa}% |
| 122 |
} |
| 123 |
% \end{macrocode} |
| 124 |
% |
| 125 |
% \begin{macrocode} |
| 126 |
\def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1} |
| 127 |
\def\c@lor@@cmyk#1,#2,#3,#4\@@#5{% |
| 128 |
\c@lor@arg{#4}% |
| 129 |
%<color4> \dimen@ii#4\p@ |
| 130 |
\c@lor@arg{#1}% |
| 131 |
%<color4> \c@lor@cmyk@RGB\@tempa |
| 132 |
\c@lor@arg{#2}% |
| 133 |
%<color4> \c@lor@cmyk@RGB\@tempb |
| 134 |
\c@lor@arg{#3}% |
| 135 |
%<color4> \c@lor@cmyk@RGB\@tempc |
| 136 |
%<color1> \edef#5{cmyk #1 #2 #3 #4}% |
| 137 |
%<color2> \edef#5{cmyk #1. #2. #3. #4.}% |
| 138 |
%<color3> \edef#5{#1 #2 #3 #4 setcmykcolor}% |
| 139 |
%<color4> \edef#5{\@tempa\@tempb\@tempc}% |
| 140 |
} |
| 141 |
% \end{macrocode} |
| 142 |
% |
| 143 |
% A 0--1 range value will have been left in |\dimen@| by |\c@lor@arg|. |
| 144 |
% The black value (0--1) will be stored in |\dimen@ii|. |
| 145 |
% Covert to 0--255 integer, and leave in |#1|. |
| 146 |
% \begin{macrocode} |
| 147 |
%<*color4> |
| 148 |
\def\c@lor@cmyk@RGB#1{% |
| 149 |
\advance\dimen@-\p@ |
| 150 |
\advance\dimen@\dimen@ii |
| 151 |
\dimen@-\@cclv\dimen@ |
| 152 |
\divide\dimen@\p@ |
| 153 |
\count@\ifdim\dimen@<\z@\z@\else\dimen@\fi |
| 154 |
\edef#1{\the\count@\space}} |
| 155 |
%</color4> |
| 156 |
% \end{macrocode} |
| 157 |
% |
| 158 |
% \begin{macrocode} |
| 159 |
\def\color@rgb#1#2{\c@lor@@rgb#2\@@#1} |
| 160 |
\def\c@lor@@rgb#1,#2,#3\@@#4{% |
| 161 |
\c@lor@arg{#1}% |
| 162 |
%<color4> \c@lor@rgb@RGB\@tempa |
| 163 |
\c@lor@arg{#2}% |
| 164 |
%<color4> \c@lor@rgb@RGB\@tempb |
| 165 |
\c@lor@arg{#3}% |
| 166 |
%<color4> \c@lor@rgb@RGB\@tempc |
| 167 |
%<color1> \edef#4{rgb #1 #2 #3}% |
| 168 |
%<color2> \edef#4{rgb #1. #2. #3.}% |
| 169 |
%<color3> \edef#4{#1 #2 #3 setrgbcolor}% |
| 170 |
%<color4> \edef#4{\@tempa\@tempb\@tempc}% |
| 171 |
} |
| 172 |
% \end{macrocode} |
| 173 |
% |
| 174 |
% A 0--1 range value will have been left in |\dimen@| by |\c@lor@arg|. |
| 175 |
% Convert to 0--255 integer, and leave in |#1|. |
| 176 |
% \begin{macrocode} |
| 177 |
%<*color4> |
| 178 |
\def\c@lor@rgb@RGB#1{% |
| 179 |
\dimen@\@cclv\dimen@ |
| 180 |
\count@\dimen@ |
| 181 |
\divide\count@\p@ |
| 182 |
\edef#1{\the\count@\space}} |
| 183 |
%</color4> |
| 184 |
% \end{macrocode} |
| 185 |
% |
| 186 |
% \begin{macrocode} |
| 187 |
\def\color@RGB#1#2{\c@lor@@RGB#2\@@#1} |
| 188 |
% \end{macrocode} |
| 189 |
% |
| 190 |
% \begin{macrocode} |
| 191 |
\def\c@lor@@RGB#1,#2,#3\@@#4{% |
| 192 |
%<!color4> \c@lor@RGB@rgb{#1}\@tempa |
| 193 |
%<!color4> \c@lor@RGB@rgb{#2}\@tempb |
| 194 |
%<!color4> \c@lor@RGB@rgb{#3}\@tempc |
| 195 |
%<!color4> \c@lor@@rgb\@tempa,\@tempb,\@tempc\@@#4% |
| 196 |
%<color4> \edef#4{#1 #2 #3}% |
| 197 |
} |
| 198 |
% \end{macrocode} |
| 199 |
% % Convert 0--255 integer, |#1|, to 0--1 real, and leave in |#2|. |
| 200 |
% \begin{macrocode} |
| 201 |
%<*!color4> |
| 202 |
\def\c@lor@RGB@rgb#1#2{% |
| 203 |
\dimen@#1\p@ |
| 204 |
\divide\dimen@\@cclv |
| 205 |
\edef#2{\strip@pt\dimen@}} |
| 206 |
%</!color4> |
| 207 |
% \end{macrocode} |
| 208 |
% |
| 209 |
% \begin{macrocode} |
| 210 |
%<*color1|color3> |
| 211 |
\def\color@hsb#1#2{\c@lor@@hsb#2\@@#1} |
| 212 |
% \end{macrocode} |
| 213 |
% |
| 214 |
% \begin{macrocode} |
| 215 |
\def\c@lor@@hsb#1,#2,#3\@@#4{% |
| 216 |
\c@lor@arg{#1}% |
| 217 |
\c@lor@arg{#2}% |
| 218 |
\c@lor@arg{#3}% |
| 219 |
%<color1> \edef#4{hsb #1 #2 #3}% |
| 220 |
%<color3> \edef#4{#1 #2 #3 sethsbcolor}% |
| 221 |
} |
| 222 |
%</color1|color3> |
| 223 |
% \end{macrocode} |
| 224 |
% |
| 225 |
% \begin{macrocode} |
| 226 |
\def\color@named#1#2{\c@lor@@named#2,,\@@#1} |
| 227 |
% \end{macrocode} |
| 228 |
% |
| 229 |
% \begin{macrocode} |
| 230 |
\def\c@lor@@named#1,#2,#3\@@#4{% |
| 231 |
\@ifundefined{col@#1}% |
| 232 |
{\PackageError{color}{Undefined color `#1'}\@ehd}% |
| 233 |
%<color1&!dvipsone> {\edef#4{ #1}}% |
| 234 |
%<color2> {\edef#4{ #1 \if!#2!\else #2.\fi}}% |
| 235 |
%<color3|dvipsone|color4> {\edef#4{\csname col@#1\endcsname}}% |
| 236 |
} |
| 237 |
% \end{macrocode} |
| 238 |
% |
| 239 |
% Conversion from |\special| syntax to PostScript (for PSTricks). |
| 240 |
% \begin{macrocode} |
| 241 |
%<*color1|color2> |
| 242 |
\def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@} |
| 243 |
%</color1|color2> |
| 244 |
%<*color3> |
| 245 |
\def\c@lor@to@ps#1\@@{#1} |
| 246 |
%</color3> |
| 247 |
%<*color4> |
| 248 |
\def\c@lor@to@ps#1#2 #3 #4\@@{% |
| 249 |
#1#2 255 div #3 255 div #4 255 div setrgbcolor} |
| 250 |
%</color4> |
| 251 |
% \end{macrocode} |
| 252 |
% |
| 253 |
% \begin{macrocode} |
| 254 |
%<*color1> |
| 255 |
\def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end} |
| 256 |
\def\c@lor@ps@rgb#1\@@{#1 setrgbcolor} |
| 257 |
\def\c@lor@ps@hsb#1\@@{#1 sethsbcolor} |
| 258 |
\def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor} |
| 259 |
\def\c@lor@ps@gray#1\@@{#1 setgray} |
| 260 |
%</color1> |
| 261 |
%<*color2> |
| 262 |
\def\c@lor@to@ps@#1 #2\@@{\csname c@lor@ps@#1@\endcsname#2 \@@} |
| 263 |
\def\c@lor@ps@#1 #2\@@{% |
| 264 |
\expandafter\expandafter\expandafter |
| 265 |
\c@lor@to@ps@\csname col@#1\expandafter\endcsname\space#2. \@@{#1}} |
| 266 |
\def\c@lor@ps@rgb#1. #2. #3. #4\@@{#1 #2 #3 setrgbcolor} |
| 267 |
\def\c@lor@ps@rgb@#1. #2. #3. #4. #5\@@#6{#1 #2 #3 setrgbcolor} |
| 268 |
\def\c@lor@ps@cmyk#1. #2. #3. #4. #5. #6\@@{#1 #2 #3 #4 setcmykcolor} |
| 269 |
\def\c@lor@ps@cmyk@#1. #2. #3. #4. #5. #6\@@#7{% |
| 270 |
#1 #2 #3 #4 (#7) findcustomcmykcolor |
| 271 |
\if!\@firstofone#5!1 \else#5 \fi setcustomcolor} |
| 272 |
%</color2> |
| 273 |
% \end{macrocode} |
| 274 |
% |
| 275 |
% \begin{macrocode} |
| 276 |
%<color1&!dvipsone>\def\current@color{ Black} |
| 277 |
%<color1&dvipsone>\def\current@color{gray 0} |
| 278 |
%<color2>\def\current@color{rgb 0. 0. 0.} |
| 279 |
%<color3>\def\current@color{0 setgray} |
| 280 |
%<color4>\def\current@color{0 0 0} |
| 281 |
% \end{macrocode} |
| 282 |
% |
| 283 |
% \changes{v3.0j}{2014/04/23} |
| 284 |
% {add \cs{nopagecolor} for dvips graphics/3873} |
| 285 |
% \begin{macrocode} |
| 286 |
%<*color1> |
| 287 |
\def\set@color{% |
| 288 |
%<!dvipsone&!dvipdf> \special{color push \current@color |
| 289 |
%<dvipsone> \special{color push}\special{color \current@color |
| 290 |
%<dvipdf> \special{pdf: /C \current@color\space<< |
| 291 |
}\aftergroup\reset@color} |
| 292 |
\def\reset@color{\special{% |
| 293 |
%<!dvipdf> color pop}} |
| 294 |
%<dvipdf> pdf: /C >> }} |
| 295 |
\def\set@page@color{\special{% |
| 296 |
%<!dvipdf> background \current@color}} |
| 297 |
%<dvipdf> pdf: /BG \current@color}} |
| 298 |
\def\define@color@named#1#2{% |
| 299 |
%<!dvipsone> \expandafter\let\csname col@#1\endcsname\@nnil} |
| 300 |
%<dvipsone> \expandafter\edef\csname col@#1\endcsname{#2}} |
| 301 |
%<dvips> \def\no@page@color{\special{background \string"newpath clip}} |
| 302 |
%</color1> |
| 303 |
%<*color2> |
| 304 |
\def\set@color{% |
| 305 |
\special{color push}% |
| 306 |
\special{color \current@color}% |
| 307 |
\aftergroup\reset@color} |
| 308 |
\def\reset@color{\special{color pop}} |
| 309 |
\def\set@page@color{\c@lor@special\sixt@@n{background \current@color}} |
| 310 |
\def\define@color@named#1#2{% |
| 311 |
\AtBeginDvi{\special{color define #1 #2}}% |
| 312 |
\expandafter\edef\csname col@#1\endcsname{#2}} |
| 313 |
%</color2> |
| 314 |
%<*color3> |
| 315 |
\def\set@color{% |
| 316 |
\Gin@PS@raw{\current@color}\aftergroup\reset@color} |
| 317 |
\def\reset@color{\Gin@PS@raw{\current@color}} |
| 318 |
%</color3> |
| 319 |
%<*color4> |
| 320 |
\def\set@color{% |
| 321 |
\special{textcolor: \current@color}\aftergroup\reset@color} |
| 322 |
\def\reset@color{\special{textcolor: \current@color}} |
| 323 |
%</color4> |
| 324 |
%<*color3|color4> |
| 325 |
\def\set@page@color{% |
| 326 |
\c@lor@special\sixt@@n{background color ignored: \current@color}} |
| 327 |
\def\define@color@named#1#2{% |
| 328 |
\expandafter\edef\csname col@#1\endcsname{#2}} |
| 329 |
%</color3|color4> |
| 330 |
% \end{macrocode} |
| 331 |
% |
| 332 |
% \begin{macrocode} |
| 333 |
%</color1|color2|color3|color4> |
| 334 |
% \end{macrocode} |
| 335 |
% |
| 336 |
% \begin{macrocode} |
| 337 |
%<*colorfix> |
| 338 |
\AtBeginDocument{% |
| 339 |
\let\@ldc@l@r\color |
| 340 |
\def\color{\if@inlabel\leavevmode\fi\@ldc@l@r}% |
| 341 |
\let\@lduseb@x\usebox |
| 342 |
\def\usebox#1{\@lduseb@x{#1}\set@color}} |
| 343 |
%</colorfix> |
| 344 |
% \end{macrocode} |
| 345 |
% |
| 346 |
% \begin{macrocode} |
| 347 |
%<*dvipsnames> |
| 348 |
\DefineNamedColor{named}{GreenYellow} {cmyk}{0.15,0,0.69,0} |
| 349 |
\DefineNamedColor{named}{Yellow} {cmyk}{0,0,1,0} |
| 350 |
\DefineNamedColor{named}{Goldenrod} {cmyk}{0,0.10,0.84,0} |
| 351 |
\DefineNamedColor{named}{Dandelion} {cmyk}{0,0.29,0.84,0} |
| 352 |
\DefineNamedColor{named}{Apricot} {cmyk}{0,0.32,0.52,0} |
| 353 |
\DefineNamedColor{named}{Peach} {cmyk}{0,0.50,0.70,0} |
| 354 |
\DefineNamedColor{named}{Melon} {cmyk}{0,0.46,0.50,0} |
| 355 |
\DefineNamedColor{named}{YellowOrange} {cmyk}{0,0.42,1,0} |
| 356 |
\DefineNamedColor{named}{Orange} {cmyk}{0,0.61,0.87,0} |
| 357 |
\DefineNamedColor{named}{BurntOrange} {cmyk}{0,0.51,1,0} |
| 358 |
\DefineNamedColor{named}{Bittersweet} {cmyk}{0,0.75,1,0.24} |
| 359 |
\DefineNamedColor{named}{RedOrange} {cmyk}{0,0.77,0.87,0} |
| 360 |
\DefineNamedColor{named}{Mahogany} {cmyk}{0,0.85,0.87,0.35} |
| 361 |
\DefineNamedColor{named}{Maroon} {cmyk}{0,0.87,0.68,0.32} |
| 362 |
\DefineNamedColor{named}{BrickRed} {cmyk}{0,0.89,0.94,0.28} |
| 363 |
\DefineNamedColor{named}{Red} {cmyk}{0,1,1,0} |
| 364 |
\DefineNamedColor{named}{OrangeRed} {cmyk}{0,1,0.50,0} |
| 365 |
\DefineNamedColor{named}{RubineRed} {cmyk}{0,1,0.13,0} |
| 366 |
\DefineNamedColor{named}{WildStrawberry}{cmyk}{0,0.96,0.39,0} |
| 367 |
\DefineNamedColor{named}{Salmon} {cmyk}{0,0.53,0.38,0} |
| 368 |
\DefineNamedColor{named}{CarnationPink} {cmyk}{0,0.63,0,0} |
| 369 |
\DefineNamedColor{named}{Magenta} {cmyk}{0,1,0,0} |
| 370 |
\DefineNamedColor{named}{VioletRed} {cmyk}{0,0.81,0,0} |
| 371 |
\DefineNamedColor{named}{Rhodamine} {cmyk}{0,0.82,0,0} |
| 372 |
\DefineNamedColor{named}{Mulberry} {cmyk}{0.34,0.90,0,0.02} |
| 373 |
\DefineNamedColor{named}{RedViolet} {cmyk}{0.07,0.90,0,0.34} |
| 374 |
\DefineNamedColor{named}{Fuchsia} {cmyk}{0.47,0.91,0,0.08} |
| 375 |
\DefineNamedColor{named}{Lavender} {cmyk}{0,0.48,0,0} |
| 376 |
\DefineNamedColor{named}{Thistle} {cmyk}{0.12,0.59,0,0} |
| 377 |
\DefineNamedColor{named}{Orchid} {cmyk}{0.32,0.64,0,0} |
| 378 |
\DefineNamedColor{named}{DarkOrchid} {cmyk}{0.40,0.80,0.20,0} |
| 379 |
\DefineNamedColor{named}{Purple} {cmyk}{0.45,0.86,0,0} |
| 380 |
\DefineNamedColor{named}{Plum} {cmyk}{0.50,1,0,0} |
| 381 |
\DefineNamedColor{named}{Violet} {cmyk}{0.79,0.88,0,0} |
| 382 |
\DefineNamedColor{named}{RoyalPurple} {cmyk}{0.75,0.90,0,0} |
| 383 |
\DefineNamedColor{named}{BlueViolet} {cmyk}{0.86,0.91,0,0.04} |
| 384 |
\DefineNamedColor{named}{Periwinkle} {cmyk}{0.57,0.55,0,0} |
| 385 |
\DefineNamedColor{named}{CadetBlue} {cmyk}{0.62,0.57,0.23,0} |
| 386 |
\DefineNamedColor{named}{CornflowerBlue}{cmyk}{0.65,0.13,0,0} |
| 387 |
\DefineNamedColor{named}{MidnightBlue} {cmyk}{0.98,0.13,0,0.43} |
| 388 |
\DefineNamedColor{named}{NavyBlue} {cmyk}{0.94,0.54,0,0} |
| 389 |
\DefineNamedColor{named}{RoyalBlue} {cmyk}{1,0.50,0,0} |
| 390 |
\DefineNamedColor{named}{Blue} {cmyk}{1,1,0,0} |
| 391 |
\DefineNamedColor{named}{Cerulean} {cmyk}{0.94,0.11,0,0} |
| 392 |
\DefineNamedColor{named}{Cyan} {cmyk}{1,0,0,0} |
| 393 |
\DefineNamedColor{named}{ProcessBlue} {cmyk}{0.96,0,0,0} |
| 394 |
\DefineNamedColor{named}{SkyBlue} {cmyk}{0.62,0,0.12,0} |
| 395 |
\DefineNamedColor{named}{Turquoise} {cmyk}{0.85,0,0.20,0} |
| 396 |
\DefineNamedColor{named}{TealBlue} {cmyk}{0.86,0,0.34,0.02} |
| 397 |
\DefineNamedColor{named}{Aquamarine} {cmyk}{0.82,0,0.30,0} |
| 398 |
\DefineNamedColor{named}{BlueGreen} {cmyk}{0.85,0,0.33,0} |
| 399 |
\DefineNamedColor{named}{Emerald} {cmyk}{1,0,0.50,0} |
| 400 |
\DefineNamedColor{named}{JungleGreen} {cmyk}{0.99,0,0.52,0} |
| 401 |
\DefineNamedColor{named}{SeaGreen} {cmyk}{0.69,0,0.50,0} |
| 402 |
\DefineNamedColor{named}{Green} {cmyk}{1,0,1,0} |
| 403 |
\DefineNamedColor{named}{ForestGreen} {cmyk}{0.91,0,0.88,0.12} |
| 404 |
\DefineNamedColor{named}{PineGreen} {cmyk}{0.92,0,0.59,0.25} |
| 405 |
\DefineNamedColor{named}{LimeGreen} {cmyk}{0.50,0,1,0} |
| 406 |
\DefineNamedColor{named}{YellowGreen} {cmyk}{0.44,0,0.74,0} |
| 407 |
\DefineNamedColor{named}{SpringGreen} {cmyk}{0.26,0,0.76,0} |
| 408 |
\DefineNamedColor{named}{OliveGreen} {cmyk}{0.64,0,0.95,0.40} |
| 409 |
\DefineNamedColor{named}{RawSienna} {cmyk}{0,0.72,1,0.45} |
| 410 |
\DefineNamedColor{named}{Sepia} {cmyk}{0,0.83,1,0.70} |
| 411 |
\DefineNamedColor{named}{Brown} {cmyk}{0,0.81,1,0.60} |
| 412 |
\DefineNamedColor{named}{Tan} {cmyk}{0.14,0.42,0.56,0} |
| 413 |
\DefineNamedColor{named}{Gray} {cmyk}{0,0,0,0.50} |
| 414 |
\DefineNamedColor{named}{Black} {cmyk}{0,0,0,1} |
| 415 |
\DefineNamedColor{named}{White} {cmyk}{0,0,0,0} |
| 416 |
%</dvipsnames> |
| 417 |
% \end{macrocode} |
| 418 |
% |
| 419 |
% \section{dvips} |
| 420 |
% A \LaTeXe\ graphics driver file for Tom Rokicki's \emph{dvips} |
| 421 |
% driver; tested with version 5.58f. |
| 422 |
% |
| 423 |
% \begin{macrocode} |
| 424 |
%<*dvips> |
| 425 |
% \end{macrocode} |
| 426 |
% |
| 427 |
% \subsection{Colour} |
| 428 |
% Uses the generic `color1' code. |
| 429 |
% |
| 430 |
% \subsection{File inclusion} |
| 431 |
% |
| 432 |
% \begin{macro}{\Ginclude@eps} |
| 433 |
% |#1| input file (or command) |
| 434 |
% \begin{macrocode} |
| 435 |
\def\Ginclude@eps#1{% |
| 436 |
\message{<#1>}% |
| 437 |
\bgroup |
| 438 |
% \end{macrocode} |
| 439 |
% \emph{dvips} likes to work with its own pixel resolution, so |
| 440 |
% mangle the sizes slightly. |
| 441 |
% \begin{macrocode} |
| 442 |
\def\@tempa{!}% |
| 443 |
\dimen@\Gin@req@width |
| 444 |
\[email protected]% |
| 445 |
\divide\dimen@\dimen@ii |
| 446 |
\@tempdima\Gin@req@height |
| 447 |
\divide\@tempdima\dimen@ii |
| 448 |
\special{PSfile="#1"\space |
| 449 |
llx=\Gin@llx\space |
| 450 |
lly=\Gin@lly\space |
| 451 |
urx=\Gin@urx\space |
| 452 |
ury=\Gin@ury\space |
| 453 |
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi |
| 454 |
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi |
| 455 |
\ifGin@clip clip\fi}% |
| 456 |
\egroup} |
| 457 |
% \end{macrocode} |
| 458 |
% \end{macro} |
| 459 |
% |
| 460 |
% \begin{macro}{\Ginclude@bmp} |
| 461 |
% |#1| input file; if zero size is requested, the graphic will |
| 462 |
% come at `natural' size. |
| 463 |
% \begin{macrocode} |
| 464 |
\def\Ginclude@bmp#1{% |
| 465 |
\message{<#1>}% |
| 466 |
\dimen@\Gin@req@height |
| 467 |
\advance\dimen@ by-\Gin@lly bp |
| 468 |
\kern-\Gin@llx bp\raise\Gin@req@height\hbox{% |
| 469 |
\ifdim\Gin@urx bp=\z@ |
| 470 |
\ifdim\Gin@ury bp=\z@ |
| 471 |
\special{em: graph #1}% |
| 472 |
\else |
| 473 |
\special{em: graph #1,\Gin@urx bp}% |
| 474 |
\fi |
| 475 |
\else |
| 476 |
\special{em: graph #1,\Gin@urx bp,\Gin@ury bp}% |
| 477 |
\fi |
| 478 |
}% |
| 479 |
} |
| 480 |
% \end{macrocode} |
| 481 |
% \end{macro} |
| 482 |
% |
| 483 |
% \begin{macro}{\Ginclude@pict} |
| 484 |
% \begin{macro}{\Ginclude@pntg} |
| 485 |
% \begin{macro}{\oztex@include} |
| 486 |
% PICT/PNTG format from the Mac. Actually only currently supported by |
| 487 |
% the version of dvips distributed with \OzTeX, and with the built in |
| 488 |
% \OzTeX\ drivers, but put here anyway as it is not much code and |
| 489 |
% increases portability between the systems as now |[dvips]| and |
| 490 |
% |[oztex]| share the same back end. |
| 491 |
% \begin{macrocode} |
| 492 |
\def\oztex@include#1#2{% |
| 493 |
\dimen@1bp% |
| 494 |
\divide\Gin@req@width\dimen@ |
| 495 |
\divide\Gin@req@height\dimen@ |
| 496 |
\special{#1=#2\space |
| 497 |
\@width=\number\Gin@req@width \space |
| 498 |
\@height=\number\Gin@req@height}} |
| 499 |
% \end{macrocode} |
| 500 |
% |
| 501 |
% \begin{macrocode} |
| 502 |
\def\Ginclude@pntg{\oztex@include{pntg}} |
| 503 |
\def\Ginclude@pict{\oztex@include{pict}} |
| 504 |
% \end{macrocode} |
| 505 |
% \end{macro} |
| 506 |
% \end{macro} |
| 507 |
% \end{macro} |
| 508 |
% |
| 509 |
% \subsection{Rotation} |
| 510 |
% \begin{macrocode} |
| 511 |
\def\Grot@start{% |
| 512 |
\special{ps: gsave currentpoint |
| 513 |
currentpoint translate \Grot@angle\space neg |
| 514 |
rotate neg exch neg exch translate}} |
| 515 |
\def\Grot@end{\special{ps: currentpoint grestore moveto}} |
| 516 |
% \end{macrocode} |
| 517 |
% \subsection{Scaling} |
| 518 |
% \begin{macrocode} |
| 519 |
\def\Gscale@start{\special{ps: currentpoint currentpoint translate |
| 520 |
\Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}} |
| 521 |
\def\Gscale@end{\special{ps: currentpoint currentpoint translate |
| 522 |
1 \Gscale@x\space div 1 \Gscale@y\space div scale |
| 523 |
neg exch neg exch translate}} |
| 524 |
% \end{macrocode} |
| 525 |
% |
| 526 |
% \section{Literal Postscript} |
| 527 |
% |
| 528 |
% Raw PostScript code, no save/restore. |
| 529 |
% \begin{macrocode} |
| 530 |
\def\Gin@PS@raw#1{\special{ps: #1}} |
| 531 |
% \end{macrocode} |
| 532 |
% |
| 533 |
% PostScript code, to be surrounded by save/restore by the driver. |
| 534 |
% Coordinate system standard PostScript, but with origin |
| 535 |
% at current (\TeX) position. |
| 536 |
% \begin{macrocode} |
| 537 |
\def\Gin@PS@restored#1{\special{" #1}} |
| 538 |
% \end{macrocode} |
| 539 |
% |
| 540 |
% PostScript code to be inserted in the Header section of the final |
| 541 |
% PostScript. Must be issued on the first page of a document. |
| 542 |
% \begin{macrocode} |
| 543 |
\def\Gin@PS@literal@header#1{\AtBeginDvi{\special{! #1}}} |
| 544 |
% \end{macrocode} |
| 545 |
% |
| 546 |
% Name of external file, the contents of which are to be inserted in |
| 547 |
% the Header section of the final PostScript. Must be issued on the |
| 548 |
% first page of a document. |
| 549 |
% \begin{macrocode} |
| 550 |
\def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}} |
| 551 |
% \end{macrocode} |
| 552 |
% |
| 553 |
% \section{Page Size} |
| 554 |
% |
| 555 |
% \changes{v3.0l}{2016/06/02}{page size special added to patch pdftex.def} |
| 556 |
% \changes{v3.0m}{2016/06/17}{guards for contributed packages and plain TeX} |
| 557 |
% \begin{macrocode} |
| 558 |
\@ifundefined{ifGin@setpagesize} |
| 559 |
{\expandafter\let\csname ifGin@setpagesize\expandafter\endcsname |
| 560 |
\csname iftrue\endcsname} |
| 561 |
{} |
| 562 |
% \end{macrocode} |
| 563 |
% |
| 564 |
% \begin{macrocode} |
| 565 |
\ifGin@setpagesize |
| 566 |
\ifx\paperwidth\@undefined\else |
| 567 |
\AtBeginDocument{\AtBeginDvi{% |
| 568 |
\begingroup |
| 569 |
\ifx\stockwidth\@undefined\else |
| 570 |
\paperwidth\stockwidth |
| 571 |
\paperheight\stockheight |
| 572 |
\fi |
| 573 |
\ifdim\paperwidth>\z@ |
| 574 |
\ifdim\paperheight>\z@ |
| 575 |
\special{papersize=\the\paperwidth,\the\paperheight}% |
| 576 |
\fi |
| 577 |
\fi |
| 578 |
\endgroup}} |
| 579 |
\fi |
| 580 |
\fi |
| 581 |
% \end{macrocode} |
| 582 |
% |
| 583 |
% \begin{macrocode} |
| 584 |
%</dvips> |
| 585 |
% \end{macrocode} |
| 586 |
% |
| 587 |
% |
| 588 |
% \section{dvipdf} |
| 589 |
% A \LaTeXe\ graphics driver file for \emph{dvipdf} driver. |
| 590 |
% |
| 591 |
% \begin{macrocode} |
| 592 |
%<*dvipdf> |
| 593 |
% \end{macrocode} |
| 594 |
% |
| 595 |
% \subsection{Colour} |
| 596 |
% Uses the generic `color1' code. |
| 597 |
% |
| 598 |
% \subsection{File inclusion} |
| 599 |
% |
| 600 |
% \begin{macro}{\Ginclude@eps} |
| 601 |
% |#1| input file (or command) |
| 602 |
% \begin{macrocode} |
| 603 |
\def\Ginclude@eps#1{% |
| 604 |
\message{<#1>}% |
| 605 |
\bgroup |
| 606 |
% \end{macrocode} |
| 607 |
% \emph{dvips} likes to work with its own pixel resolution, so |
| 608 |
% mangle the sizes slightly. |
| 609 |
% \begin{macrocode} |
| 610 |
\def\@tempa{!}% |
| 611 |
\dimen@\Gin@req@width |
| 612 |
\[email protected]% |
| 613 |
\divide\dimen@\dimen@ii |
| 614 |
\@tempdima\Gin@req@height |
| 615 |
\divide\@tempdima\dimen@ii |
| 616 |
\special{PSfile="#1"\space |
| 617 |
llx=\Gin@llx\space |
| 618 |
lly=\Gin@lly\space |
| 619 |
urx=\Gin@urx\space |
| 620 |
ury=\Gin@ury\space |
| 621 |
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi |
| 622 |
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi |
| 623 |
\ifGin@clip clip\fi}% |
| 624 |
\egroup} |
| 625 |
% \end{macrocode} |
| 626 |
% \end{macro} |
| 627 |
% |
| 628 |
% \begin{macro}{\Ginclude@bmp} |
| 629 |
% |#1| input file; if zero size is requested, the graphic will |
| 630 |
% come at `natural' size. |
| 631 |
% \begin{macrocode} |
| 632 |
\def\Ginclude@bmp#1{% |
| 633 |
\message{<#1>}% |
| 634 |
\dimen@\Gin@req@height |
| 635 |
\advance\dimen@ by-\Gin@lly bp |
| 636 |
\kern-\Gin@llx bp\raise\Gin@req@height\hbox{% |
| 637 |
\ifdim\Gin@urx bp=\z@ |
| 638 |
\ifdim\Gin@ury bp=\z@ |
| 639 |
\special{pdf: /GRAPH #1}% |
| 640 |
\else |
| 641 |
\special{pdf: /GRAPH #1 \number\Gin@req@width sp}% |
| 642 |
\fi |
| 643 |
\else |
| 644 |
\special{pdf: /GRAPH #1 \number\Gin@req@width sp |
| 645 |
\number\Gin@req@height sp}% |
| 646 |
\fi}} |
| 647 |
% \end{macrocode} |
| 648 |
% \end{macro} |
| 649 |
% |
| 650 |
% \subsection{Rotation} |
| 651 |
% \begin{macrocode} |
| 652 |
\def\Grot@start{% |
| 653 |
\special{pdf: /ROT \Grot@angle\space << }} |
| 654 |
\def\Grot@end{\special{pdf: /ROT >> }} |
| 655 |
% \end{macrocode} |
| 656 |
% |
| 657 |
% \subsection{Scaling} |
| 658 |
% \begin{macrocode} |
| 659 |
\def\Gscale@start{\special{pdf: /S \Gscale@x\space \Gscale@y\space << }} |
| 660 |
\def\Gscale@end{\special{pdf: /S \space >> }} |
| 661 |
% \end{macrocode} |
| 662 |
% |
| 663 |
% \section{Literal Postscript} |
| 664 |
% |
| 665 |
% Raw PostScript code, no save/restore. |
| 666 |
% \begin{macrocode} |
| 667 |
\def\Gin@PS@raw#1{\special{ps: #1}} |
| 668 |
% \end{macrocode} |
| 669 |
% |
| 670 |
% PostScript code, to be surrounded by save/restore by the driver. |
| 671 |
% Coordinate system standard PostScript, but with origin |
| 672 |
% at current (\TeX) position. |
| 673 |
% \begin{macrocode} |
| 674 |
\def\Gin@PS@restored#1{\special{" #1}} |
| 675 |
% \end{macrocode} |
| 676 |
% |
| 677 |
% PostScript code to be inserted in the Header section of the final |
| 678 |
% PostScript. Must be issued on the first page of a document. |
| 679 |
% \begin{macrocode} |
| 680 |
\def\Gin@PS@literal@header#1{\AtBeginDvi{\special{! #1}}} |
| 681 |
% \end{macrocode} |
| 682 |
% |
| 683 |
% Name of external file, the contents of which are to be inserted in |
| 684 |
% the Header section of the final PostScript. Must be issued on the |
| 685 |
% first page of a document. |
| 686 |
% \begin{macrocode} |
| 687 |
\def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}} |
| 688 |
% \end{macrocode} |
| 689 |
% |
| 690 |
% \subsection{File extensions} |
| 691 |
% |
| 692 |
% \begin{macrocode} |
| 693 |
\@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}} |
| 694 |
\@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}} |
| 695 |
\@namedef{Gin@[email protected]}#1{{bmp}{.bb}{#1}} |
| 696 |
% \end{macrocode} |
| 697 |
% |
| 698 |
% \begin{macrocode} |
| 699 |
%</dvipdf> |
| 700 |
% \end{macrocode} |
| 701 |
% |
| 702 |
% \section{\OzTeX} |
| 703 |
% |
| 704 |
% A \LaTeXe\ graphics driver file for \OzTeX\ |
| 705 |
% (versions 1.42 and later), |
| 706 |
% by Andrew Trevorrow. |
| 707 |
% \begin{macrocode} |
| 708 |
%<*oztex> |
| 709 |
% \end{macrocode} |
| 710 |
%\subsection{Graphics inclusion} |
| 711 |
% \begin{macrocode} |
| 712 |
\def\Ginclude@eps{\Oztex@Include{epsf}} |
| 713 |
\def\Ginclude@pntg{\Oztex@Include{pntg}} |
| 714 |
\def\Ginclude@pict{\Oztex@Include{pict}} |
| 715 |
\def\Oztex@Include#1#2{% |
| 716 |
\ifGin@clip |
| 717 |
\typeout{No clipping support in OzTeX}% |
| 718 |
\fi |
| 719 |
\divide\Gin@req@width by 65781% convert sp to bp |
| 720 |
\divide\Gin@req@height by 65781% |
| 721 |
\special{#1=#2\space |
| 722 |
width=\number\Gin@req@width \space |
| 723 |
height=\number\Gin@req@height |
| 724 |
}% |
| 725 |
} |
| 726 |
%</oztex> |
| 727 |
% \end{macrocode} |
| 728 |
%\section{Textures} |
| 729 |
% A \LaTeXe\ graphics driver file for Blue Sky's Textures |
| 730 |
% |
| 731 |
% \textbf{WARNING! There is ongoing work to produce a new version of |
| 732 |
% the textures support. Do not rely on anything in this file being in |
| 733 |
% the next version!} |
| 734 |
% |
| 735 |
% |
| 736 |
% \begin{macrocode} |
| 737 |
%<*textures> |
| 738 |
% \end{macrocode} |
| 739 |
% \subsection{Graphics inclusion} |
| 740 |
% |
| 741 |
% |
| 742 |
% \begin{macrocode} |
| 743 |
\PackageInfo{graphics/color} |
| 744 |
{This file uses the advanced color support\MessageBreak |
| 745 |
available in textures1.7\MessageBreak |
| 746 |
If you are using color with an earlier version\MessageBreak |
| 747 |
of textures, edit graphics.ins where marked,\MessageBreak |
| 748 |
and re-latex graphics.ins.\MessageBreak\MessageBreak |
| 749 |
If you are using textures1.7\MessageBreak |
| 750 |
you may want to delete this warning\MessageBreak |
| 751 |
from textures.def.\MessageBreak\MessageBreak |
| 752 |
The code for scaling/rotation and file inclusion\MessageBreak |
| 753 |
in this file is still rudimentary, and does not\MessageBreak |
| 754 |
use textures' full capabilities.\MessageBreak\MessageBreak |
| 755 |
A new textures.def is currently being developed\@gobble} |
| 756 |
% \end{macrocode} |
| 757 |
% |
| 758 |
% |
| 759 |
% \begin{macrocode} |
| 760 |
\def\Ginclude@eps{\Textures@Include{illustration}} |
| 761 |
\def\Ginclude@pict{\Textures@Include{pictfile}} |
| 762 |
\def\Textures@Include#1#2{% |
| 763 |
\def\@tempa{!}% |
| 764 |
\ifx\Gin@scaley\@tempa |
| 765 |
\let\Gin@scaley\Gin@scalex |
| 766 |
\else |
| 767 |
\ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi |
| 768 |
\fi |
| 769 |
\setlength\@tempdima{\Gin@scalex pt}% |
| 770 |
\setlength\@tempdimb{\Gin@scaley pt}% |
| 771 |
\ifdim\@tempdima>\@tempdimb |
| 772 |
\let\Gin@scalex\Gin@scaley |
| 773 |
\fi |
| 774 |
\ifGin@clip |
| 775 |
\typeout{no clipping support in Textures}% |
| 776 |
\fi |
| 777 |
\@tempdimb=1000sp% |
| 778 |
\setlength\@tempdima{\Gin@scalex\@tempdimb}% |
| 779 |
\special{#1 #2\space scaled \number\@tempdima}% |
| 780 |
} |
| 781 |
% \end{macrocode} |
| 782 |
% \subsection{Rotation} |
| 783 |
% This code was written when no unprotected postscript code was allowed; |
| 784 |
% it could almost certainly be rewritten now with `rawpostscript'. |
| 785 |
% \begin{macrocode} |
| 786 |
\def\Grot@start{\special{postscript |
| 787 |
0 0 transform |
| 788 |
grestore |
| 789 |
matrix currentmatrix |
| 790 |
3 1 roll |
| 791 |
itransform |
| 792 |
dup 3 -1 roll |
| 793 |
dup 4 1 roll exch |
| 794 |
translate |
| 795 |
\Grot@angle\space neg rotate |
| 796 |
neg exch neg exch translate |
| 797 |
gsave}} |
| 798 |
\def\Grot@end{\special{postscript grestore setmatrix gsave}} |
| 799 |
% \end{macrocode} |
| 800 |
% \subsection{Colour} |
| 801 |
% This will only work for versions 1.6 and Version 1.7 uses `color2'. |
| 802 |
% \begin{macrocode} |
| 803 |
%<color3>\def\Gin@PS@raw#1{\special{rawpostscript #1}} |
| 804 |
%</textures> |
| 805 |
% \end{macrocode} |
| 806 |
% |
| 807 |
% \section{dvialw} |
| 808 |
% A \LaTeXe\ graphics driver file for dvialw, by Nelson Beebe |
| 809 |
% \begin{macrocode} |
| 810 |
%<*dvialw> |
| 811 |
% \end{macrocode} |
| 812 |
% \subsection{Rotation} |
| 813 |
% \begin{macrocode} |
| 814 |
\def\Ginclude@eps#1{% |
| 815 |
\def\@tempa{!}% |
| 816 |
\ifx\Gin@scaley\@tempa |
| 817 |
\let\Gin@scaley\Gin@scalex |
| 818 |
\else |
| 819 |
\ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi |
| 820 |
\fi |
| 821 |
\ifGin@clip |
| 822 |
\typeout{no clipping support in dvialw}% |
| 823 |
\fi |
| 824 |
\special{language "PS", |
| 825 |
literal "\Gin@scalex\space |
| 826 |
\Gin@scaley\space scale", |
| 827 |
position = "bottom left", |
| 828 |
include "#1\space"}% |
| 829 |
} |
| 830 |
%</dvialw> |
| 831 |
% \end{macrocode} |
| 832 |
% \section{emtex} |
| 833 |
% A \LaTeXe\ graphics driver file for Eberhard Mattes' emTeX |
| 834 |
% \begin{macrocode} |
| 835 |
%<*emtex> |
| 836 |
% \end{macrocode} |
| 837 |
% \subsection{Graphics file inclusion} |
| 838 |
% \begin{macrocode} |
| 839 |
\def\Ginclude@bmp#1{% |
| 840 |
\raise\Gin@req@height\hbox{\special{em:graph #1}}% |
| 841 |
\typeout{WARNING: emtex does not permit graphics to be scaled}% |
| 842 |
} |
| 843 |
%</emtex> |
| 844 |
% \end{macrocode} |
| 845 |
% \section{dvilaser/ps} |
| 846 |
% A \LaTeXe\ graphics driver file for Arbortext's dvilaser/ps |
| 847 |
% \begin{macrocode} |
| 848 |
%<*dvilaser> |
| 849 |
% \end{macrocode} |
| 850 |
%\subsection{Graphic file inclusion} |
| 851 |
% \begin{macrocode} |
| 852 |
\def\Ginclude@eps#1{% |
| 853 |
\ifGin@clip |
| 854 |
\typeout{no clipping support in dvilaser/ps}% |
| 855 |
\fi |
| 856 |
\special{ps: epsfile #1\space \the\Gin@req@width}% |
| 857 |
} |
| 858 |
%</dvilaser> |
| 859 |
% \end{macrocode} |
| 860 |
% \section{psprint} |
| 861 |
% A \LaTeXe\ graphics driver file for Trevorrow's psprint |
| 862 |
% \begin{macrocode} |
| 863 |
%<*psprint> |
| 864 |
% \end{macrocode} |
| 865 |
%\subsection{Graphic file inclusion} |
| 866 |
% \begin{macrocode} |
| 867 |
\def\Ginclude@eps#1{% |
| 868 |
\def\@tempa{!}% |
| 869 |
\ifx\Gin@scaley\@tempa |
| 870 |
\let\Gin@scaley\Gin@scalex |
| 871 |
\else |
| 872 |
\ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi |
| 873 |
\fi |
| 874 |
\ifGin@clip |
| 875 |
\typeout{no clipping support in psprint}% |
| 876 |
\fi |
| 877 |
\special{#1\space |
| 878 |
\Gin@scalex\space \Gin@scaley\space scale |
| 879 |
\Gin@llx\space neg |
| 880 |
\Gin@lly \space neg translate |
| 881 |
}% |
| 882 |
} |
| 883 |
%</psprint> |
| 884 |
% \end{macrocode} |
| 885 |
% \section{dvipsone} |
| 886 |
% |
| 887 |
% A \LaTeXe\ graphics driver file for Y\&Y's dvipsone |
| 888 |
% \begin{macrocode} |
| 889 |
%<*dvipsone> |
| 890 |
% \end{macrocode} |
| 891 |
% |
| 892 |
% \subsection{Graphic file inclusion} |
| 893 |
% |
| 894 |
% PostScript Files. |
| 895 |
% \begin{macrocode} |
| 896 |
\def\Ginclude@eps#1{% |
| 897 |
\message{<#1>}% |
| 898 |
\bgroup |
| 899 |
\def\@tempa{!}% |
| 900 |
\dimen@\Gin@req@width |
| 901 |
\[email protected]% |
| 902 |
\divide\dimen@\dimen@ii |
| 903 |
\@tempdima\Gin@req@height |
| 904 |
\divide\@tempdima\dimen@ii |
| 905 |
\special{PSfile="#1"\space |
| 906 |
llx=\Gin@llx\space |
| 907 |
lly=\Gin@lly\space |
| 908 |
urx=\Gin@urx\space |
| 909 |
ury=\Gin@ury\space |
| 910 |
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi |
| 911 |
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi |
| 912 |
\ifGin@clip clip\fi}% |
| 913 |
\egroup} |
| 914 |
% \end{macrocode} |
| 915 |
% |
| 916 |
% Tiff files. |
| 917 |
% \begin{macrocode} |
| 918 |
\def\Ginclude@tiff#1{% |
| 919 |
\message{<#1>}% |
| 920 |
\special{insertimage: #1 \number\Gin@req@width\space |
| 921 |
\number\Gin@req@height}} |
| 922 |
% \end{macrocode} |
| 923 |
% |
| 924 |
% Windows Metafiles. |
| 925 |
% \begin{macrocode} |
| 926 |
\def\Ginclude@wmf#1{% |
| 927 |
\message{<#1>}% |
| 928 |
\special{insertmf: #1 0 0 \number\Gin@req@width\space |
| 929 |
\number\Gin@req@height}} |
| 930 |
% \end{macrocode} |
| 931 |
% |
| 932 |
% \begin{macrocode} |
| 933 |
% \end{macrocode} |
| 934 |
% |
| 935 |
% \begin{macrocode} |
| 936 |
\def\Gin@PS@raw#1{\special{ps: #1}} |
| 937 |
% \end{macrocode} |
| 938 |
% |
| 939 |
% \subsection{Rotation} |
| 940 |
% \begin{macrocode} |
| 941 |
\def\Grot@start{% |
| 942 |
\special{ps: gsave currentpoint |
| 943 |
currentpoint translate \Grot@angle\space |
| 944 |
rotate neg exch neg exch translate}} |
| 945 |
\def\Grot@end{% |
| 946 |
\special{ps: currentfont currentpoint grestore moveto setfont}} |
| 947 |
% \end{macrocode} |
| 948 |
% |
| 949 |
% \subsection{Scaling} |
| 950 |
% \begin{macrocode} |
| 951 |
\def\Gscale@start{\special{ps: currentpoint currentpoint translate |
| 952 |
\Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}} |
| 953 |
\def\Gscale@end{\special{ps: currentpoint currentpoint translate |
| 954 |
1 \Gscale@x\space div 1 \Gscale@y\space div scale |
| 955 |
neg exch neg exch translate}} |
| 956 |
% \end{macrocode} |
| 957 |
% |
| 958 |
% \subsection{File Extensions} |
| 959 |
% |
| 960 |
% \begin{macrocode} |
| 961 |
\@namedef{Gin@[email protected]}#1{{wmf}{}{#1}} |
| 962 |
\@namedef{Gin@[email protected]}#1{{wmf}{}{#1}} |
| 963 |
% \end{macrocode} |
| 964 |
% |
| 965 |
% \section{Literal Postscript} |
| 966 |
% |
| 967 |
% Raw PostScript code, no save/restore. |
| 968 |
% \begin{macrocode} |
| 969 |
\def\Gin@PS@raw#1{\special{ps: #1}} |
| 970 |
% \end{macrocode} |
| 971 |
% |
| 972 |
% PostScript code, to be surrounded by save/restore by the driver. |
| 973 |
% Coordinate system standard PostScript, but with origin |
| 974 |
% at current (\TeX) position. |
| 975 |
% \begin{macrocode} |
| 976 |
\def\Gin@PS@restored#1{\special{" #1}} |
| 977 |
% \end{macrocode} |
| 978 |
% |
| 979 |
% PostScript code to be inserted in the Header section of the final |
| 980 |
% PostScript. Must be issued on the first page of a document. |
| 981 |
% \begin{macrocode} |
| 982 |
\def\Gin@PS@literal@header#1{\AtBeginDvi{\special{headertext=#1}}} |
| 983 |
% \end{macrocode} |
| 984 |
% |
| 985 |
% Name of external file, the contents of which are to be inserted in |
| 986 |
% the Header section of the final PostScript. Must be issued on the |
| 987 |
% first page of a document. |
| 988 |
% \begin{macrocode} |
| 989 |
\def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}} |
| 990 |
% \end{macrocode} |
| 991 |
% |
| 992 |
% \begin{macrocode} |
| 993 |
%</dvipsone> |
| 994 |
% \end{macrocode} |
| 995 |
% |
| 996 |
% \section{dviwindo} |
| 997 |
% A \LaTeXe\ graphics driver file for Y\&Y's dviwindo. |
| 998 |
% |
| 999 |
% This driver now uses the same file as |dvipsone|. |
| 1000 |
% |
| 1001 |
% \section{dvitops} |
| 1002 |
% A \LaTeXe\ graphics driver file for James Clark's dvitops |
| 1003 |
% \begin{macrocode} |
| 1004 |
%<*dvitops> |
| 1005 |
% \end{macrocode} |
| 1006 |
% \subsection{Rotation} |
| 1007 |
% \begin{macrocode} |
| 1008 |
\newcount\Grot@count |
| 1009 |
\Grot@count=\@ne |
| 1010 |
\def\Grot@start{\special{dvitops: origin |
| 1011 |
rot\the\@tempdima}% |
| 1012 |
\special{dvitops: begin rot\the\Grot@count}}% |
| 1013 |
\def\Grot@end{\special{dvitops: end}% |
| 1014 |
\special{dvitops: rotate rot\the\Grot@count \space |
| 1015 |
\Grot@angle}% |
| 1016 |
\global\advance\Grot@count by\@ne}% |
| 1017 |
% \end{macrocode} |
| 1018 |
% \subsection{Graphic file inclusion} |
| 1019 |
% \begin{macrocode} |
| 1020 |
\def\Ginclude@eps#1{% |
| 1021 |
% These cause an arithmetic overflow, so I've commented them |
| 1022 |
% out. Presumably they were there for some reason. |
| 1023 |
% Any dvitops users out there?? |
| 1024 |
% \multiply\Gin@req@width by \@m |
| 1025 |
% \multiply\Gin@req@height by \@m |
| 1026 |
\ifGin@clip |
| 1027 |
\typeout{no clipping support in dvitops}% |
| 1028 |
\fi |
| 1029 |
\special{import #1\space \the\Gin@req@width\space |
| 1030 |
\the\Gin@req@height\space fill}} |
| 1031 |
% \end{macrocode} |
| 1032 |
% |
| 1033 |
% \begin{macrocode} |
| 1034 |
%</dvitops> |
| 1035 |
% \end{macrocode} |
| 1036 |
% |
| 1037 |
%\section{dvi2ps} |
| 1038 |
% A \LaTeXe\ graphics driver file for original dvi2ps |
| 1039 |
% \begin{macrocode} |
| 1040 |
%<*dvi2ps> |
| 1041 |
% \end{macrocode} |
| 1042 |
% |
| 1043 |
% \subsection{Graphic file inclusion} |
| 1044 |
% \begin{macrocode} |
| 1045 |
\def\Ginclude@eps#1{% |
| 1046 |
\def\@tempa{!}% |
| 1047 |
\ifx\Gin@scaley\@tempa |
| 1048 |
\let\Gin@scaley\Gin@scalex |
| 1049 |
\else |
| 1050 |
\ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi |
| 1051 |
\fi |
| 1052 |
\ifGin@clip |
| 1053 |
\typeout{no clipping support in dvi2ps}% |
| 1054 |
\fi |
| 1055 |
\special{psfile=#1\space |
| 1056 |
hscale=\Gin@scalex\space 1000 mul |
| 1057 |
vscale=\Gin@scaley\space 1000 mul}} |
| 1058 |
% \end{macrocode} |
| 1059 |
% |
| 1060 |
% \begin{macrocode} |
| 1061 |
%</dvi2ps> |
| 1062 |
% \end{macrocode} |
| 1063 |
% |
| 1064 |
% \section{pctexps} |
| 1065 |
% A \LaTeXe\ graphics driver file for Personal TeX's PTI Laser/PS; |
| 1066 |
% from information supplied by Lance Carnes and Tao Wang |
| 1067 |
% |<[email protected]>|. |
| 1068 |
% \begin{macrocode} |
| 1069 |
%<*pctexps> |
| 1070 |
% \end{macrocode} |
| 1071 |
% |
| 1072 |
% \subsection{Graphic file inclusion} |
| 1073 |
% |
| 1074 |
% \begin{macrocode} |
| 1075 |
\def\Ginclude@eps#1{% |
| 1076 |
\message{<#1>}% |
| 1077 |
\ifGin@clip |
| 1078 |
\typeout{no clipping support in pctexps}% |
| 1079 |
\fi |
| 1080 |
\Gin@[email protected]\Gin@req@width |
| 1081 |
\Gin@[email protected]\Gin@req@height |
| 1082 |
\special{ps:#1\space x=\strip@pt\Gin@req@width cm, |
| 1083 |
y=\strip@pt\Gin@req@height cm}} |
| 1084 |
% \end{macrocode} |
| 1085 |
% |
| 1086 |
% \begin{macrocode} |
| 1087 |
\def\Ginclude@ps#1{% |
| 1088 |
\message{<#1>}% |
| 1089 |
\ifGin@clip |
| 1090 |
\typeout{no clipping support in pctexps}% |
| 1091 |
\fi |
| 1092 |
\hbox{\kern-\Gin@llx bp\raise-\Gin@lly bp\hbox{\special{ps:#1}}}% |
| 1093 |
\typeout{^^J% |
| 1094 |
---------------------------------------------------------^^J% |
| 1095 |
.ps graphics without bounding box information cannot be^^J% |
| 1096 |
scaled. If the file actually contains the information,^^J% |
| 1097 |
please rename the file to .eps file extension.^^J% |
| 1098 |
---------------------------------------------------------^^J}} |
| 1099 |
% \end{macrocode} |
| 1100 |
% |
| 1101 |
% \begin{macrocode} |
| 1102 |
\def\Gin@extensions{.eps,.ps} |
| 1103 |
\@namedef{Gin@[email protected]}#1{{ps}{.ps}{#1}} |
| 1104 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1105 |
% \end{macrocode} |
| 1106 |
% |
| 1107 |
% \begin{macrocode} |
| 1108 |
\def\Gin@PS@raw#1{\special{ps::#1}} |
| 1109 |
\def\Grot@start{% |
| 1110 |
\special{ps::gsave currentpoint |
| 1111 |
currentpoint translate \Grot@angle\space |
| 1112 |
rotate neg exch neg exch translate}} |
| 1113 |
\def\Grot@end{\special{ps:: currentpoint grestore moveto}} |
| 1114 |
% \end{macrocode} |
| 1115 |
% |
| 1116 |
% \begin{macrocode} |
| 1117 |
\def\Gscale@start{\special{ps:: currentpoint currentpoint translate |
| 1118 |
\Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}} |
| 1119 |
\def\Gscale@end{\special{ps:: currentpoint currentpoint translate |
| 1120 |
1 \Gscale@x\space div 1 \Gscale@y\space div scale |
| 1121 |
neg exch neg exch translate}} |
| 1122 |
% \end{macrocode} |
| 1123 |
% |
| 1124 |
% \begin{macrocode} |
| 1125 |
%</pctexps> |
| 1126 |
% \end{macrocode} |
| 1127 |
% |
| 1128 |
% \section{pctex32} |
| 1129 |
% A \LaTeXe\ graphics driver file for Personal TeX's PC TeX for 32 bit |
| 1130 |
% Windows; Code supplied by Tao Wang |<[email protected]>|. |
| 1131 |
% |
| 1132 |
% \subsection{Colour} |
| 1133 |
% Uses the generic `color1' code. |
| 1134 |
% |
| 1135 |
% \begin{macrocode} |
| 1136 |
%<*pctex32> |
| 1137 |
% \end{macrocode} |
| 1138 |
% |
| 1139 |
% \subsection{Graphic file inclusion}% |
| 1140 |
% \begin{macrocode} |
| 1141 |
% including PostScript graphics |
| 1142 |
\def\Ginclude@eps#1{% |
| 1143 |
\message{<#1>}% |
| 1144 |
\bgroup |
| 1145 |
\def\@tempa{!}% |
| 1146 |
\dimen@\Gin@req@width |
| 1147 |
\[email protected]% |
| 1148 |
\divide\dimen@\dimen@ii |
| 1149 |
\@tempdima\Gin@req@height |
| 1150 |
\divide\@tempdima\dimen@ii |
| 1151 |
\special{PSfile="#1"\space |
| 1152 |
llx=\Gin@llx\space |
| 1153 |
lly=\Gin@lly\space |
| 1154 |
urx=\Gin@urx\space |
| 1155 |
ury=\Gin@ury\space |
| 1156 |
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi |
| 1157 |
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi |
| 1158 |
\ifGin@clip clip\fi}% |
| 1159 |
\egroup} |
| 1160 |
% \end{macrocode} |
| 1161 |
% |
| 1162 |
% including BMP graphics |
| 1163 |
% \begin{macrocode} |
| 1164 |
\def\Ginclude@bmp#1{% |
| 1165 |
\message{<#1>}% |
| 1166 |
\ifGin@clip |
| 1167 |
\typeout{no clipping support for BMP graphics in PCTeX32}% |
| 1168 |
\fi |
| 1169 |
\Gin@[email protected]\Gin@req@width |
| 1170 |
\Gin@[email protected]\Gin@req@height |
| 1171 |
\special{bmp:#1\space x=\strip@pt\Gin@req@width cm, |
| 1172 |
y=\strip@pt\Gin@req@height cm}} |
| 1173 |
% \end{macrocode} |
| 1174 |
% |
| 1175 |
% including WMF graphics |
| 1176 |
% \begin{macrocode} |
| 1177 |
\def\Ginclude@wmf#1{% |
| 1178 |
\message{<#1>}% |
| 1179 |
\ifGin@clip |
| 1180 |
\typeout{no clipping support for WMF graphics in PCTeX32}% |
| 1181 |
\fi |
| 1182 |
\Gin@[email protected]\Gin@req@width |
| 1183 |
\Gin@[email protected]\Gin@req@height |
| 1184 |
\special{wmf:#1\space x=\strip@pt\Gin@req@width cm, |
| 1185 |
y=\strip@pt\Gin@req@height cm}} |
| 1186 |
% \end{macrocode} |
| 1187 |
% |
| 1188 |
% \subsection{Scaling and Rotating} |
| 1189 |
% PostScript rotation and scaling |
| 1190 |
% \begin{macrocode} |
| 1191 |
\def\Grot@start{% |
| 1192 |
\special{ps:: gsave currentpoint |
| 1193 |
currentpoint translate \Grot@angle\space neg |
| 1194 |
rotate neg exch neg exch translate}} |
| 1195 |
\def\Grot@end{\special{ps:: currentpoint grestore moveto}} |
| 1196 |
\def\Gscale@start{\special{ps:: currentpoint currentpoint translate |
| 1197 |
\Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}} |
| 1198 |
\def\Gscale@end{\special{ps:: currentpoint currentpoint translate |
| 1199 |
1 \Gscale@x\space div 1 \Gscale@y\space div scale |
| 1200 |
neg exch neg exch translate}} |
| 1201 |
% \end{macrocode} |
| 1202 |
% |
| 1203 |
% \begin{macrocode} |
| 1204 |
\def\Gin@PS@raw#1{\special{ps:: #1}} |
| 1205 |
\def\Gin@PS@restored#1{\special{" #1}} |
| 1206 |
% \end{macrocode} |
| 1207 |
% |
| 1208 |
% \subsection{Default Extensions} |
| 1209 |
% |
| 1210 |
% \begin{macrocode} |
| 1211 |
\def\Gin@extensions{.eps,.ps,.wmf,.bmp} |
| 1212 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1213 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1214 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1215 |
\@namedef{Gin@[email protected]}#1{{wmf}{}{#1}} |
| 1216 |
% \end{macrocode} |
| 1217 |
% |
| 1218 |
% \begin{macrocode} |
| 1219 |
%</pctex32> |
| 1220 |
% \end{macrocode} |
| 1221 |
% |
| 1222 |
% \section{pctexwin} |
| 1223 |
% A \LaTeXe\ graphics driver file for Personal TeX's PC TeX for Windows; |
| 1224 |
% from information supplied by Lance Carnes and Tao Wang |
| 1225 |
% |<[email protected]>|. |
| 1226 |
% \begin{macrocode} |
| 1227 |
%<*pctexwin> |
| 1228 |
% \end{macrocode} |
| 1229 |
% |
| 1230 |
% \subsection{Graphic file inclusion} |
| 1231 |
% |
| 1232 |
% \begin{macrocode} |
| 1233 |
\def\Ginclude@eps#1{% |
| 1234 |
\message{<#1>}% |
| 1235 |
\ifGin@clip |
| 1236 |
\typeout{no clipping support in pctexwin}% |
| 1237 |
\fi |
| 1238 |
\Gin@[email protected]\Gin@req@width |
| 1239 |
\Gin@[email protected]\Gin@req@height |
| 1240 |
\special{eps:#1\space x=\strip@pt\Gin@req@width cm, |
| 1241 |
y=\strip@pt\Gin@req@height cm}} |
| 1242 |
% \end{macrocode} |
| 1243 |
% |
| 1244 |
% \begin{macrocode} |
| 1245 |
\def\Ginclude@ps#1{% |
| 1246 |
\message{<#1>}% |
| 1247 |
\ifGin@clip |
| 1248 |
\typeout{no clipping support in pctexwin}% |
| 1249 |
\fi |
| 1250 |
\hbox{\kern-\Gin@llx bp\raise-\Gin@lly bp\hbox{\special{ps:#1}}}% |
| 1251 |
\typeout{^^J% |
| 1252 |
---------------------------------------------------------^^J% |
| 1253 |
.ps graphics without bounding box information cannot be^^J% |
| 1254 |
scaled. If the file actually contains the information,^^J% |
| 1255 |
please rename the file to .eps file extension.^^J% |
| 1256 |
---------------------------------------------------------^^J% |
| 1257 |
}} |
| 1258 |
% \end{macrocode} |
| 1259 |
% |
| 1260 |
% \begin{macrocode} |
| 1261 |
\def\Ginclude@bmp#1{% |
| 1262 |
\message{<#1>}% |
| 1263 |
\ifGin@clip |
| 1264 |
\typeout{no clipping support in pctexwin}% |
| 1265 |
\fi |
| 1266 |
\Gin@[email protected]\Gin@req@width |
| 1267 |
\Gin@[email protected]\Gin@req@height |
| 1268 |
\special{bmp:#1\space x=\strip@pt\Gin@req@width cm, |
| 1269 |
y=\strip@pt\Gin@req@height cm}} |
| 1270 |
% \end{macrocode} |
| 1271 |
% |
| 1272 |
% \begin{macrocode} |
| 1273 |
\def\Ginclude@wmf#1{% |
| 1274 |
\message{<#1>}% |
| 1275 |
\ifGin@clip |
| 1276 |
\typeout{no clipping support in pctexwin}% |
| 1277 |
\fi |
| 1278 |
\Gin@[email protected]\Gin@req@width |
| 1279 |
\Gin@[email protected]\Gin@req@height |
| 1280 |
\special{wmf:#1\space x=\strip@pt\Gin@req@width cm, |
| 1281 |
y=\strip@pt\Gin@req@height cm}} |
| 1282 |
% \end{macrocode} |
| 1283 |
% |
| 1284 |
% \begin{macrocode} |
| 1285 |
\def\Gin@extensions{.eps,.ps,.wmf,.bmp} |
| 1286 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1287 |
\@namedef{Gin@[email protected]}#1{{wmf}{}{#1}} |
| 1288 |
\@namedef{Gin@[email protected]}#1{{ps}{.ps}{#1}} |
| 1289 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1290 |
% \end{macrocode} |
| 1291 |
% |
| 1292 |
% \begin{macrocode} |
| 1293 |
%</pctexwin> |
| 1294 |
% \end{macrocode} |
| 1295 |
% |
| 1296 |
% \section{pctexhp} |
| 1297 |
% A \LaTeXe\ graphics driver file for Personal TeX's PTI Laser/HP; |
| 1298 |
% from information supplied by Lance Carnes and Tao Wang |
| 1299 |
% |<[email protected]>|. |
| 1300 |
% \begin{macrocode} |
| 1301 |
%<*pctexhp> |
| 1302 |
% \end{macrocode} |
| 1303 |
% \subsection{Graphic file inclusion} |
| 1304 |
% \begin{macrocode} |
| 1305 |
\def\Ginclude@pcl#1{% |
| 1306 |
\message{<#1>}% |
| 1307 |
\ifGin@clip |
| 1308 |
\typeout{no clipping support in pctexhp}% |
| 1309 |
\fi |
| 1310 |
\hbox{\kern-\Gin@llx bp\raise-\Gin@lly bp\hbox{\special{pcl:#1}}}% |
| 1311 |
\typeout{WARNING: pctexhp does not permit graphics to be scaled}} |
| 1312 |
\@namedef{Gin@[email protected]}#1{{pcl}{}{#1}} |
| 1313 |
\def\Gin@extensions{.pcl} |
| 1314 |
%</pctexhp> |
| 1315 |
% \end{macrocode} |
| 1316 |
% |
| 1317 |
% \section{pubps} |
| 1318 |
% A \LaTeXe\ graphics driver file for Arbortext's PUBps; |
| 1319 |
% information from Peter R Wilson |[email protected]|. |
| 1320 |
% \begin{macrocode} |
| 1321 |
%<*pubps> |
| 1322 |
% \end{macrocode} |
| 1323 |
% \subsection{Rotation} |
| 1324 |
% \begin{macrocode} |
| 1325 |
\def\Grot@start{\special{ps: gsave currentpoint |
| 1326 |
currentpoint translate \Grot@angle\space |
| 1327 |
rotate neg exch neg exch translate}} |
| 1328 |
\def\Grot@end{\special{ps: currentpoint grestore moveto}} |
| 1329 |
%</pubps> |
| 1330 |
% \end{macrocode} |
| 1331 |
% |
| 1332 |
% \section{dviwin} |
| 1333 |
% A \LaTeXe\ graphics driver file for Hippocrates Sendoukas' dviwin |
| 1334 |
% \begin{macrocode} |
| 1335 |
%<*dviwin> |
| 1336 |
% \end{macrocode} |
| 1337 |
% \subsection{Graphic file inclusion} |
| 1338 |
% Dviwin sorts out the graphics type itself based on extension. |
| 1339 |
% They all use the same |\special|, so as far as graphics.sty is |
| 1340 |
% concerned they are all the same `type'. Use `bmp' for the type |
| 1341 |
% as that is as good a name as any. Make this the default. |
| 1342 |
% \begin{macrocode} |
| 1343 |
\@namedef{Gin@rule@*}#1{{bmp}{}{#1}} |
| 1344 |
\def\Ginclude@bmp#1{% |
| 1345 |
\raise\Gin@req@height\hbox{% |
| 1346 |
\special{anisoscale #1, |
| 1347 |
\the\Gin@req@width\space \the\Gin@req@height}}} |
| 1348 |
% \end{macrocode} |
| 1349 |
% The only exception is EPS files, as they may be read for BoundingBox |
| 1350 |
% \begin{macrocode} |
| 1351 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1352 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1353 |
\let\Ginclude@eps\Ginclude@bmp |
| 1354 |
% \end{macrocode} |
| 1355 |
% Add a few default extensions so |\includegraphics{a}| |
| 1356 |
% will pick up |a.eps| or |a.wmf|. |
| 1357 |
% This list can be reset with |\DeclareGraphicsExtensions|. |
| 1358 |
% Other extensions not in the list may be used explicitly, eg |
| 1359 |
% |\includegraphics{a.gif}| should work as long as dviwin has access |
| 1360 |
% to a gif filter. If |.gif| is added using |\DeclareGraphicsExtensions| |
| 1361 |
% then |\includegraphics{a}| would also find |a.gif|. |
| 1362 |
% \begin{macrocode} |
| 1363 |
\def\Gin@extensions{.eps,.ps,.wmf,.tif} |
| 1364 |
% \end{macrocode} |
| 1365 |
% |
| 1366 |
% \begin{macrocode} |
| 1367 |
%</dviwin> |
| 1368 |
% \end{macrocode} |
| 1369 |
% |
| 1370 |
% \section{ln} |
| 1371 |
% A \LaTeXe\ graphics driver file for B Hamilton Kelly's ln03 driver. |
| 1372 |
% Untested, but based on the graphics macros distributed with the |
| 1373 |
% driver. |
| 1374 |
% \begin{macrocode} |
| 1375 |
%<*ln> |
| 1376 |
% \end{macrocode} |
| 1377 |
% \subsection{Graphic file inclusion} |
| 1378 |
% \begin{macrocode} |
| 1379 |
\def\Ginclude@sixel#1{\special{ln03:sixel #1}} |
| 1380 |
%</ln> |
| 1381 |
% \end{macrocode} |
| 1382 |
% |
| 1383 |
% \section{truetex} |
| 1384 |
% A \LaTeXe\ graphics driver file for Kinch `truetex' driver. |
| 1385 |
% \begin{macrocode} |
| 1386 |
%<*truetex> |
| 1387 |
% \end{macrocode} |
| 1388 |
% |
| 1389 |
% \subsection{Colour} |
| 1390 |
% Uses the `color4' colour code. |
| 1391 |
% |
| 1392 |
% \subsection{Graphic file inclusion} |
| 1393 |
% |
| 1394 |
% EPS File inclusion: DVIPS style. |
| 1395 |
% \begin{macrocode} |
| 1396 |
\def\Ginclude@eps#1{% |
| 1397 |
\message{<#1>}% |
| 1398 |
\bgroup |
| 1399 |
\def\@tempa{!}% |
| 1400 |
\dimen@\Gin@req@width |
| 1401 |
\[email protected]% |
| 1402 |
\divide\dimen@\dimen@ii |
| 1403 |
\@tempdima\Gin@req@height |
| 1404 |
\divide\@tempdima\dimen@ii |
| 1405 |
\special{PSfile="#1"\space |
| 1406 |
llx=\Gin@llx\space |
| 1407 |
lly=\Gin@lly\space |
| 1408 |
urx=\Gin@urx\space |
| 1409 |
ury=\Gin@ury\space |
| 1410 |
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi |
| 1411 |
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi |
| 1412 |
\ifGin@clip clip\fi}% |
| 1413 |
\egroup} |
| 1414 |
% \end{macrocode} |
| 1415 |
% |
| 1416 |
% bmp File Inclusion. |
| 1417 |
% \begin{macrocode} |
| 1418 |
\def\Ginclude@bmp#1{% |
| 1419 |
\message{<#1>}% |
| 1420 |
\special{bmpfile #1}} |
| 1421 |
% \end{macrocode} |
| 1422 |
% |
| 1423 |
% tif(f) File inclusion |
| 1424 |
% \begin{macrocode} |
| 1425 |
\def\Ginclude@tiff#1{% |
| 1426 |
\message{<#1>}% |
| 1427 |
\special{tifffile #1}} |
| 1428 |
% \end{macrocode} |
| 1429 |
% |
| 1430 |
% \subsection{Literal PostScript} |
| 1431 |
% This is not supported, so uses `nops' code. |
| 1432 |
% |
| 1433 |
% \subsection{Default Rules} |
| 1434 |
% Support (e)ps, tif and bmp, default to eps. |
| 1435 |
% \begin{macrocode} |
| 1436 |
\def\Gin@extensions{.eps,.ps} |
| 1437 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1438 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1439 |
\@namedef{Gin@[email protected]}#1{{tiff}{}{#1}} |
| 1440 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1441 |
% \end{macrocode} |
| 1442 |
% |
| 1443 |
% \begin{macrocode} |
| 1444 |
\@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}} |
| 1445 |
% \end{macrocode} |
| 1446 |
% |
| 1447 |
% \begin{macrocode} |
| 1448 |
%</truetex> |
| 1449 |
% \end{macrocode} |
| 1450 |
% |
| 1451 |
% \section{tcidvi} |
| 1452 |
% A \LaTeXe\ graphics driver file for Scientific Word/Workplace. |
| 1453 |
% Actually for the Kinch truetex driver, augmented with extra |
| 1454 |
% |\special| handling with the DLL supplied with SW. |
| 1455 |
% \begin{macrocode} |
| 1456 |
%<*tcidvi> |
| 1457 |
% \end{macrocode} |
| 1458 |
% |
| 1459 |
% \subsection{Colour} |
| 1460 |
% Uses the `color4' colour code. |
| 1461 |
% |
| 1462 |
% The above colours are handled by the Kinch-supplied dll |
| 1463 |
% The TCI dll adds support for |\colorbox|, but only grey scale |
| 1464 |
% The code below accepts any color model, but only the red |
| 1465 |
% component is used. |
| 1466 |
% \begin{macrocode} |
| 1467 |
\AtBeginDocument{\def\color@block#1#2#3{% |
| 1468 |
{\rlap{\ifcolors@ |
| 1469 |
\@defaultunits\count@\current@color\@nnil |
| 1470 |
\dimen@\count@\p@ |
| 1471 |
\divide\dimen@\@cclv |
| 1472 |
\dimen@ii#2% |
| 1473 |
\advance\dimen@ii#3% |
| 1474 |
\lower#3\hbox{% |
| 1475 |
\special{language "Scientific Word";% |
| 1476 |
type "greybox";% |
| 1477 |
greyscale \strip@pt\dimen@;% |
| 1478 |
height \the\dimen@ii;% |
| 1479 |
width \the#1;% |
| 1480 |
depth 0pt;}}% |
| 1481 |
\fi}}}} |
| 1482 |
% \end{macrocode} |
| 1483 |
% |
| 1484 |
% \subsection{Graphic file inclusion} |
| 1485 |
% |
| 1486 |
% EPS File inclusion. |
| 1487 |
% \begin{macrocode} |
| 1488 |
\def\Ginclude@eps#1{% |
| 1489 |
\message{<#1>}% |
| 1490 |
\raise\Gin@req@height\hbox{% |
| 1491 |
% \end{macrocode} |
| 1492 |
% |
| 1493 |
% If the bounding box has been changed by a trim or viewport |
| 1494 |
% key then need to calculate the crop ratios based on the original |
| 1495 |
% bb coordinates. (This assumes that clip key is also used). |
| 1496 |
% \begin{macrocode} |
| 1497 |
\ifx\Gin@ollx\@undefined |
| 1498 |
\else |
| 1499 |
\@tempdimb \Gin@ourx bp% |
| 1500 |
\advance\@tempdimb-\Gin@ollx bp% |
| 1501 |
\@tempdima\Gin@llx bp% |
| 1502 |
\advance\@tempdima-\Gin@ollx bp% |
| 1503 |
\Gscale@div\TCI@cropleft\@tempdima\@tempdimb |
| 1504 |
\@tempdima\Gin@urx bp% |
| 1505 |
\advance\@tempdima-\Gin@ollx bp% |
| 1506 |
\Gscale@div\TCI@cropright\@tempdima\@tempdimb |
| 1507 |
\@tempdimb \Gin@oury bp% |
| 1508 |
\advance\@tempdimb-\Gin@olly bp% |
| 1509 |
\@tempdima\Gin@lly bp% |
| 1510 |
\advance\@tempdima-\Gin@olly bp% |
| 1511 |
\Gscale@div\TCI@cropbottom\@tempdima\@tempdimb |
| 1512 |
\@tempdima\Gin@ury bp% |
| 1513 |
\advance\@tempdima-\Gin@olly bp% |
| 1514 |
\Gscale@div\TCI@croptop\@tempdima\@tempdimb |
| 1515 |
\fi |
| 1516 |
% \end{macrocode} |
| 1517 |
% |
| 1518 |
% \begin{macrocode} |
| 1519 |
\special{% |
| 1520 |
language \TCI@language;% |
| 1521 |
type \TCI@type;% |
| 1522 |
valid_file \TCI@validfile;% |
| 1523 |
width \the\Gin@req@width;% |
| 1524 |
height \the\Gin@req@height;% |
| 1525 |
depth 0pt;% |
| 1526 |
original-width \the\Gin@nat@width;% |
| 1527 |
original-height \the\Gin@nat@height;% |
| 1528 |
cropleft "\TCI@cropleft";% |
| 1529 |
croptop "\TCI@croptop";% |
| 1530 |
cropright "\TCI@cropright";% |
| 1531 |
cropbottom "\TCI@cropbottom";% |
| 1532 |
filename '#1';% |
| 1533 |
\ifx\TCI@temp\@empty\else tempfilename \TCI@temp;\fi |
| 1534 |
}}} |
| 1535 |
% \end{macrocode} |
| 1536 |
% |
| 1537 |
% Default values so documents produced elsewhere should work |
| 1538 |
% \begin{macrocode} |
| 1539 |
\def\TCI@language{"Scientific Word"} |
| 1540 |
\def\TCI@type{"GRAPHIC"} |
| 1541 |
\def\TCI@validfile{'F'} |
| 1542 |
\def\TCI@cropleft{0} |
| 1543 |
\def\TCI@croptop{1} |
| 1544 |
\def\TCI@cropright{1} |
| 1545 |
\def\TCI@cropbottom{0} |
| 1546 |
\let\TCI@temp\@empty |
| 1547 |
% \end{macrocode} |
| 1548 |
% |
| 1549 |
% Non PS Graphic files. |
| 1550 |
% |
| 1551 |
% File inclusion macro is always the same. Use a different name though |
| 1552 |
% as LaTeX thinks it can read eps files for BoundingBox. |
| 1553 |
% \begin{macrocode} |
| 1554 |
\let\Ginclude@bmp\Ginclude@eps |
| 1555 |
% \end{macrocode} |
| 1556 |
% |
| 1557 |
% \subsection{Literal PostScript} |
| 1558 |
% This is not supported, so uses `nops' code. |
| 1559 |
% |
| 1560 |
% \subsection{Default Rules} |
| 1561 |
% SW always gives the full name with extension. |
| 1562 |
% So leave this list empty. |
| 1563 |
% \begin{macrocode} |
| 1564 |
\def\Gin@extensions{} |
| 1565 |
% \end{macrocode} |
| 1566 |
% |
| 1567 |
% .ps .PS .eps .EPS are (E)PS |
| 1568 |
% rest are `bmp' which is a catch all type for anything |
| 1569 |
% that the import filter can handle. |
| 1570 |
% \begin{macrocode} |
| 1571 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1572 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1573 |
\@namedef{Gin@[email protected]}#1{{eps}{.PS}{#1}} |
| 1574 |
\@namedef{Gin@[email protected]}#1{{eps}{.EPS}{#1}} |
| 1575 |
% \end{macrocode} |
| 1576 |
% |
| 1577 |
% \begin{macrocode} |
| 1578 |
\@namedef{Gin@rule@*}#1{{bmp}{\Gin@ext}{#1}} |
| 1579 |
% \end{macrocode} |
| 1580 |
% |
| 1581 |
% \begin{macrocode} |
| 1582 |
%</tcidvi> |
| 1583 |
% \end{macrocode} |
| 1584 |
% |
| 1585 |
% \section{Literal Postscript} |
| 1586 |
% Most drivers writing to PostScript allow some form of `literal' |
| 1587 |
% PostScript |\special| that inserts code into the final PostScript |
| 1588 |
% output. However Non-PS drivers can not support this (and some PS |
| 1589 |
% one's can't either). The code here makes all these commands no ops. |
| 1590 |
% Individual driver sections may define the commands to do something |
| 1591 |
% useful. |
| 1592 |
% |
| 1593 |
% \begin{macrocode} |
| 1594 |
%<*nops> |
| 1595 |
% \end{macrocode} |
| 1596 |
% |
| 1597 |
% Raw PostScript code, no save/restore. Coordinate system unspecified. |
| 1598 |
% \begin{macrocode} |
| 1599 |
\def\Gin@PS@raw#1{} |
| 1600 |
% \end{macrocode} |
| 1601 |
% |
| 1602 |
% PostScript code, to be surrounded by save/restore by the driver. |
| 1603 |
% Coordinate system standard PostScript, but with origin |
| 1604 |
% at current (\TeX) position. |
| 1605 |
% \begin{macrocode} |
| 1606 |
\def\Gin@PS@restored#1{} |
| 1607 |
% \end{macrocode} |
| 1608 |
% |
| 1609 |
% PostScript code to be inserted in the Header section of the final |
| 1610 |
% PostScript. Must be issued on the first page of a document. |
| 1611 |
% \begin{macrocode} |
| 1612 |
\def\Gin@PS@literal@header#1{} |
| 1613 |
% \end{macrocode} |
| 1614 |
% |
| 1615 |
% Name of external file, the contents of which are to be inserted in |
| 1616 |
% the Header section of the final PostScript. Must be issued on the |
| 1617 |
% first page of a document. |
| 1618 |
% \begin{macrocode} |
| 1619 |
\def\Gin@PS@file@header#1{} |
| 1620 |
% \end{macrocode} |
| 1621 |
% |
| 1622 |
% \begin{macrocode} |
| 1623 |
%</nops> |
| 1624 |
% \end{macrocode} |
| 1625 |
% |
| 1626 |
% \section{Graphics Inclusion Rules} |
| 1627 |
% \begin{macrocode} |
| 1628 |
%<*psrules> |
| 1629 |
% \end{macrocode} |
| 1630 |
% |
| 1631 |
% \begin{macrocode} |
| 1632 |
\def\Gin@extensions{.eps,.ps} |
| 1633 |
% \end{macrocode} |
| 1634 |
% |
| 1635 |
% \begin{macrocode} |
| 1636 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1637 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1638 |
% \end{macrocode} |
| 1639 |
% |
| 1640 |
% \begin{macrocode} |
| 1641 |
\@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}} |
| 1642 |
% \end{macrocode} |
| 1643 |
% |
| 1644 |
% \begin{macrocode} |
| 1645 |
%</psrules> |
| 1646 |
%<*psrulesZ> |
| 1647 |
% \end{macrocode} |
| 1648 |
% |
| 1649 |
% \changes{v3.0j}{2014/04/23} |
| 1650 |
% {add .mps for metapost generated postscript to match pdftex graphics/4050} |
| 1651 |
% \begin{macrocode} |
| 1652 |
\def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps} |
| 1653 |
% \end{macrocode} |
| 1654 |
% |
| 1655 |
% \changes{v3.0k}{2015/12/30} |
| 1656 |
% {compressed files don't require gunzip for dvips/xdvi} |
| 1657 |
% \begin{macrocode} |
| 1658 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1659 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1660 |
\@namedef{Gin@[email protected]}#1{{eps}{.mps}{#1}} |
| 1661 |
\@namedef{Gin@[email protected]}#1{{eps}{.bb}{#1}} |
| 1662 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps.bb}{#1}} |
| 1663 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps.bb}{#1}} |
| 1664 |
\@namedef{Gin@[email protected]}#1{{eps}{.ps.bb}{#1}} |
| 1665 |
\@namedef{Gin@[email protected]}#1{{eps}{.eps.bb}{#1}} |
| 1666 |
% \end{macrocode} |
| 1667 |
% |
| 1668 |
% \begin{macrocode} |
| 1669 |
\@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}} |
| 1670 |
% \end{macrocode} |
| 1671 |
% |
| 1672 |
% \begin{macrocode} |
| 1673 |
%</psrulesZ> |
| 1674 |
%<*dosrules> |
| 1675 |
% \end{macrocode} |
| 1676 |
% |
| 1677 |
% \begin{macrocode} |
| 1678 |
%<!psrulesZ>\def\Gin@extensions{.eps,.ps,.pcx,.bmp} |
| 1679 |
% \end{macrocode} |
| 1680 |
% |
| 1681 |
% \begin{macrocode} |
| 1682 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1683 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1684 |
\@namedef{Gin@[email protected]}#1{{bmp}{}{#1}} |
| 1685 |
% \end{macrocode} |
| 1686 |
% |
| 1687 |
% \begin{macrocode} |
| 1688 |
%</dosrules> |
| 1689 |
%<*macrules> |
| 1690 |
%\def\Gin@extensions{{},.ps,.eps,.pict} |
| 1691 |
%\@namedef{Gin@[email protected]}#1{{eps}{.ps}{#1}} |
| 1692 |
%\@namedef{Gin@[email protected]}#1{{eps}{.eps}{#1}} |
| 1693 |
\@namedef{Gin@[email protected]}#1{{pict}{}{#1}} |
| 1694 |
\@namedef{Gin@[email protected]}#1{{pntg}{}{#1}} |
| 1695 |
%\@namedef{Gin@rule@}#1{{pict}{\relax}{#1}} |
| 1696 |
%</macrules> |
| 1697 |
%<*tiffrules> |
| 1698 |
\@namedef{Gin@[email protected]}#1{{tiff}{}{#1}} |
| 1699 |
%</tiffrules> |
| 1700 |
% \end{macrocode} |
| 1701 |
% |
| 1702 |
% \Finale |
| 1703 |
% |