home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Text / OzTeX 1.9 / TeX-inputs / Graphics / dvips.def < prev    next >
Encoding:
Text File  |  1995-01-24  |  4.4 KB  |  147 lines  |  [TEXT/MPS ]

  1. %% 
  2. %% This is file `dvips.def', generated on <1995/1/24> 
  3. %% with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% drivers.dtx  (with options: `dvips,color1,psrulesZ,dosrules')
  8. %% 
  9. %% IMPORTANT NOTICE:
  10. %% You are not allowed to distribute this file.
  11. %% For distribution of the original source see
  12. %% the copyright notice in the file drivers.dtx .
  13. %% 
  14. %% drivers.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz
  15. %%
  16. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  17. %%
  18. %% It should be distributed *unchanged* and together with all other
  19. %% files in the graphics bundle. The file 00readme.txt contains a list
  20. %% of all of these files.
  21. %%
  22. %% A modified version of this file may be distributed, but it should
  23. %% be distributed with a *different* name. Changed files must be
  24. %% distributed *together with a complete and unchanged* distribution
  25. %% of these files.
  26. %%
  27. \ProvidesFile{dvips.def}
  28.         [1994/12/12 v2.6 Driver-dependant file (DPC,SPQR)]
  29. \def\c@lor@arg#1{%
  30.   \dimen@#1\p@
  31.   \ifdim\dimen@<\z@\dimen@\maxdimen\fi
  32.   \ifdim\dimen@>\p@
  33.     \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
  34.   \fi}
  35. \def\color@gray#1#2{%
  36.   \c@lor@arg{#2}%
  37.   \def#1{gray #2}%
  38.   }
  39. \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
  40. \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
  41.   \c@lor@arg{#1}%
  42.   \c@lor@arg{#2}%
  43.   \c@lor@arg{#3}%
  44.   \c@lor@arg{#4}%
  45.   \def#5{cmyk #1 #2 #3 #4}%
  46.   }
  47. \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
  48. \def\c@lor@@rgb#1,#2,#3\@@#4{%
  49.   \c@lor@arg{#1}%
  50.   \c@lor@arg{#2}%
  51.   \c@lor@arg{#3}%
  52.   \def#4{rgb #1 #2 #3}%
  53.   }
  54. \def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
  55. \def\c@lor@@hsb#1,#2,#3\@@#4{%
  56.   \c@lor@arg{#1}%
  57.   \c@lor@arg{#2}%
  58.   \c@lor@arg{#3}%
  59.   \def#4{hsb #1 #2 #3}%
  60.   }
  61. \def\color@named#1#2{\c@lor@@named#2,,\@@#1}
  62. \def\c@lor@@named#1,#2,#3\@@#4{%
  63.   \@ifundefined{col@#1}%
  64.     {\PackageError{color}{Undefined color `#1'}\@ehd}%
  65.   {\def#4{ #1}}%
  66.   }
  67. \def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}
  68. \def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}
  69. \def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}
  70. \def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}
  71. \def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
  72. \def\c@lor@ps@gray#1\@@{#1 setgray}
  73. \def\current@color{ Black}
  74. \def\set@color{%
  75.   \special{color push \current@color}\aftergroup\reset@color}
  76. \def\reset@color{\special{color pop}}
  77. \def\set@page@color{\special{background \current@color}}
  78. \def\define@color@named#1#2{%
  79.   \expandafter\let\csname col@#1\endcsname\@nnil}
  80. \def\Gin@tobp#1{%
  81.   \divide#14111%
  82.   \multiply#14096%
  83.   \edef#1{\strip@pt#1\space}}
  84. \def\Ginclude@eps#1{%
  85.  \message{<#1>}%
  86.   \bgroup
  87.   \def\@tempa{!}%
  88.   \dimen@=10\Gin@req@width
  89.   \dimen@ii1bp%
  90.   \divide\dimen@\dimen@ii
  91.   \@tempdima=10\Gin@req@height
  92.   \divide\@tempdima\dimen@ii
  93.   \Gin@tobp\Gin@llx
  94.   \Gin@tobp\Gin@lly
  95.   \Gin@tobp\Gin@urx
  96.   \Gin@tobp\Gin@ury
  97.     \special{PSfile="#1"\space
  98.       llx=\Gin@llx
  99.       lly=\Gin@lly
  100.       urx=\Gin@urx
  101.       ury=\Gin@ury
  102.       \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
  103.       \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
  104.       \ifGin@clip clip\fi}%
  105.   \egroup}
  106. \def\Ginclude@bmp#1{%
  107.   \message{<#1>}%
  108.   \dimen@\Gin@req@height
  109.   \advance\dimen@ by-\Gin@lly
  110.   \kern-\Gin@llx\raise\Gin@req@height\hbox{%
  111.    \ifdim\Gin@urx=\z@
  112.      \ifdim\Gin@ury=\z@
  113.         \special{em: graph #1}%
  114.      \else
  115.         \special{em: graph #1,\the\Gin@urx}%
  116.      \fi
  117.   \else
  118.         \special{em: graph #1,\the\Gin@urx,\the\Gin@ury}%
  119.   \fi
  120.  }%
  121. }
  122. \def\Grot@start{%
  123.  \special{ps: gsave currentpoint
  124.  currentpoint translate \Grot@angle\space neg
  125.  rotate neg exch neg exch translate}}
  126. \def\Grot@end{\special{ps: currentpoint grestore moveto}}
  127. \def\Gscale@start{\special{ps:  currentpoint currentpoint translate
  128.   \Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}}
  129. \def\Gscale@end{\special{ps:  currentpoint currentpoint translate
  130.   1 \Gscale@x\space div 1 \Gscale@y\space div scale
  131.   neg exch neg exch translate}}
  132. \def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z}
  133. \@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
  134. \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
  135. \@namedef{Gin@rule@.pz}#1{{eps}{.bb}{`gunzip -c #1}}
  136. \@namedef{Gin@rule@.eps.Z}#1{{eps}{.eps.bb}{`gunzip -c #1}}
  137. \@namedef{Gin@rule@.ps.Z}#1{{eps}{.ps.bb}{`gunzip -c #1}}
  138. \@namedef{Gin@rule@.ps.gz}#1{{eps}{.ps.bb}{`gunzip -c #1}}
  139. \@namedef{Gin@rule@.eps.gz}#1{{eps}{.eps.bb}{`gunzip -c #1}}
  140. \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
  141. \@namedef{Gin@rule@.pcx}#1{{bmp}{}{#1}}
  142. \@namedef{Gin@rule@.bmp}#1{{bmp}{}{#1}}
  143. \@namedef{Gin@rule@.msp}#1{{bmp}{}{#1}}
  144. \endinput
  145. %% 
  146. %% End of file `dvips.def'.
  147.