summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/graphics/drivers.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/graphics/drivers.dtx')
-rw-r--r--Master/texmf-dist/source/latex/graphics/drivers.dtx52
1 files changed, 29 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/graphics/drivers.dtx b/Master/texmf-dist/source/latex/graphics/drivers.dtx
index 81ef0afcaff..095e06920b1 100644
--- a/Master/texmf-dist/source/latex/graphics/drivers.dtx
+++ b/Master/texmf-dist/source/latex/graphics/drivers.dtx
@@ -36,7 +36,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{drivers.dtx}
%</driver>
- [1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)]
+ [2014/04/23 v3.0j Driver-dependant file (DPC,SPQR)]
%
%<*driver>
\documentclass{ltxdoc}
@@ -52,7 +52,7 @@
%</driver>
% \fi
%
-% \CheckSum{1541}
+% \CheckSum{1546}
%
%
% \providecommand\OzTeX{O\kern-.03em z\kern-.15em\TeX}
@@ -71,9 +71,9 @@
% access, so they are untested. Please send any corrections to the
% latexbugs address.
%
-%
%
-%
+%
+%
% \StopEventually{}
%
%
@@ -186,8 +186,8 @@
%
% \begin{macrocode}
\def\c@lor@@RGB#1,#2,#3\@@#4{%
-%<!color4> \c@lor@RGB@rgb{#1}\@tempa
-%<!color4> \c@lor@RGB@rgb{#2}\@tempb
+%<!color4> \c@lor@RGB@rgb{#1}\@tempa
+%<!color4> \c@lor@RGB@rgb{#2}\@tempb
%<!color4> \c@lor@RGB@rgb{#3}\@tempc
%<!color4> \c@lor@@rgb\@tempa,\@tempb,\@tempc\@@#4%
%<color4> \edef#4{#1 #2 #3}%
@@ -264,7 +264,7 @@
\def\c@lor@ps@rgb@#1. #2. #3. #4. #5\@@#6{#1 #2 #3 setrgbcolor}
\def\c@lor@ps@cmyk#1. #2. #3. #4. #5. #6\@@{#1 #2 #3 #4 setcmykcolor}
\def\c@lor@ps@cmyk@#1. #2. #3. #4. #5. #6\@@#7{%
- #1 #2 #3 #4 (#7) findcustomcmykcolor
+ #1 #2 #3 #4 (#7) findcustomcmykcolor
\if!\@firstofone#5!1 \else#5 \fi setcustomcolor}
%</color2>
% \end{macrocode}
@@ -277,6 +277,8 @@
%<color4>\def\current@color{0 0 0}
% \end{macrocode}
%
+% \changes{v3.0j}{2014/04/23}
+% {add \cs{nopagecolor} for dvips graphics/3873}
% \begin{macrocode}
%<*color1>
\def\set@color{%
@@ -293,6 +295,7 @@
\def\define@color@named#1#2{%
%<!dvipsone> \expandafter\let\csname col@#1\endcsname\@nnil}
%<dvipsone> \expandafter\edef\csname col@#1\endcsname{#2}}
+%<dvips> \def\no@page@color{\special{background \string"newpath clip}}
%</color1>
%<*color2>
\def\set@color{%
@@ -519,7 +522,7 @@
%
% \section{Literal Postscript}
%
-% Raw PostScript code, no save/restore.
+% Raw PostScript code, no save/restore.
% \begin{macrocode}
\def\Gin@PS@raw#1{\special{ps: #1}}
% \end{macrocode}
@@ -626,7 +629,7 @@
%
% \section{Literal Postscript}
%
-% Raw PostScript code, no save/restore.
+% Raw PostScript code, no save/restore.
% \begin{macrocode}
\def\Gin@PS@raw#1{\special{ps: #1}}
% \end{macrocode}
@@ -665,7 +668,7 @@
%
% \section{\OzTeX}
%
-% A \LaTeXe\ graphics driver file for \OzTeX\
+% A \LaTeXe\ graphics driver file for \OzTeX\
% (versions 1.42 and later),
% by Andrew Trevorrow.
% \begin{macrocode}
@@ -715,7 +718,7 @@
from textures.def.\MessageBreak\MessageBreak
The code for scaling/rotation and file inclusion\MessageBreak
in this file is still rudimentary, and does not\MessageBreak
- use textures' full capabilities.\MessageBreak\MessageBreak
+ use textures' full capabilities.\MessageBreak\MessageBreak
A new textures.def is currently being developed\@gobble}
% \end{macrocode}
%
@@ -786,7 +789,7 @@
\typeout{no clipping support in dvialw}%
\fi
\special{language "PS",
- literal "\Gin@scalex\space
+ literal "\Gin@scalex\space
\Gin@scaley\space scale",
position = "bottom left",
include "#1\space"}%
@@ -928,7 +931,7 @@
%
% \section{Literal Postscript}
%
-% Raw PostScript code, no save/restore.
+% Raw PostScript code, no save/restore.
% \begin{macrocode}
\def\Gin@PS@raw#1{\special{ps: #1}}
% \end{macrocode}
@@ -990,7 +993,7 @@
\ifGin@clip
\typeout{no clipping support in dvitops}%
\fi
-\special{import #1\space \the\Gin@req@width\space
+\special{import #1\space \the\Gin@req@width\space
\the\Gin@req@height\space fill}}
% \end{macrocode}
%
@@ -1043,7 +1046,7 @@
\fi
\Gin@req@width.03515\Gin@req@width
\Gin@req@height.03515\Gin@req@height
- \special{ps:#1\space x=\strip@pt\Gin@req@width cm,
+ \special{ps:#1\space x=\strip@pt\Gin@req@width cm,
y=\strip@pt\Gin@req@height cm}}
% \end{macrocode}
%
@@ -1072,7 +1075,7 @@ please rename the file to .eps file extension.^^J%
\def\Gin@PS@raw#1{\special{ps::#1}}
\def\Grot@start{%
\special{ps::gsave currentpoint
- currentpoint translate \Grot@angle\space
+ currentpoint translate \Grot@angle\space
rotate neg exch neg exch translate}}
\def\Grot@end{\special{ps:: currentpoint grestore moveto}}
% \end{macrocode}
@@ -1095,7 +1098,7 @@ please rename the file to .eps file extension.^^J%
%
% \subsection{Colour}
% Uses the generic `color1' code.
-%
+%
% \begin{macrocode}
%<*pctex32>
% \end{macrocode}
@@ -1201,7 +1204,7 @@ please rename the file to .eps file extension.^^J%
\fi
\Gin@req@width.03515\Gin@req@width
\Gin@req@height.03515\Gin@req@height
- \special{eps:#1\space x=\strip@pt\Gin@req@width cm,
+ \special{eps:#1\space x=\strip@pt\Gin@req@width cm,
y=\strip@pt\Gin@req@height cm}}
% \end{macrocode}
%
@@ -1229,7 +1232,7 @@ please rename the file to .eps file extension.^^J%
\fi
\Gin@req@width.03515\Gin@req@width
\Gin@req@height.03515\Gin@req@height
- \special{bmp:#1\space x=\strip@pt\Gin@req@width cm,
+ \special{bmp:#1\space x=\strip@pt\Gin@req@width cm,
y=\strip@pt\Gin@req@height cm}}
% \end{macrocode}
%
@@ -1241,7 +1244,7 @@ please rename the file to .eps file extension.^^J%
\fi
\Gin@req@width.03515\Gin@req@width
\Gin@req@height.03515\Gin@req@height
- \special{wmf:#1\space x=\strip@pt\Gin@req@width cm,
+ \special{wmf:#1\space x=\strip@pt\Gin@req@width cm,
y=\strip@pt\Gin@req@height cm}}
% \end{macrocode}
%
@@ -1528,7 +1531,7 @@ please rename the file to .eps file extension.^^J%
\def\Gin@extensions{}
% \end{macrocode}
%
-% .ps .PS .eps .EPS are (E)PS
+% .ps .PS .eps .EPS are (E)PS
% rest are `bmp' which is a catch all type for anything
% that the inport filter can handle.
% \begin{macrocode}
@@ -1552,7 +1555,7 @@ please rename the file to .eps file extension.^^J%
% output. However Non-PS drivers can not support this (and some PS
% one's can't either). The code here makes all these commands no ops.
% Individual driver sections may define the commands to do something
-% useful.
+% useful.
%
% \begin{macrocode}
%<*nops>
@@ -1610,13 +1613,16 @@ please rename the file to .eps file extension.^^J%
%<*psrulesZ>
% \end{macrocode}
%
+% \changes{v3.0j}{2014/04/23}
+% {add .mps for metapost generated postscript to match pdftex graphics/4050}
% \begin{macrocode}
-\def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z}
+\def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps}
% \end{macrocode}
%
% \begin{macrocode}
\@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
\@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
+\@namedef{Gin@rule@.mps}#1{{eps}{.mps}{#1}}
\@namedef{Gin@rule@.pz}#1{{eps}{.bb}{`gunzip -c #1}}
\@namedef{Gin@rule@.eps.Z}#1{{eps}{.eps.bb}{`gunzip -c #1}}
\@namedef{Gin@rule@.ps.Z}#1{{eps}{.ps.bb}{`gunzip -c #1}}