summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/dvips/dvipsconfig/config.tray2
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-08-13 23:51:12 +0000
committerKarl Berry <karl@freefriends.org>2006-08-13 23:51:12 +0000
commiteace4bae1f9818749d503e8859767821618a0220 (patch)
tree599f1deaea72208ba096df9d7d8d7118bd4338d9 /Master/texmf-dist/dvips/dvipsconfig/config.tray2
parentad1d09658f9af8b50c69d1c5bdf9b92623ebbba4 (diff)
new package dvipsconfig with many dvips config files
git-svn-id: svn://tug.org/texlive/trunk@1944 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/dvips/dvipsconfig/config.tray2')
-rw-r--r--Master/texmf-dist/dvips/dvipsconfig/config.tray265
1 files changed, 65 insertions, 0 deletions
diff --git a/Master/texmf-dist/dvips/dvipsconfig/config.tray2 b/Master/texmf-dist/dvips/dvipsconfig/config.tray2
new file mode 100644
index 00000000000..84d9561ad5d
--- /dev/null
+++ b/Master/texmf-dist/dvips/dvipsconfig/config.tray2
@@ -0,0 +1,65 @@
+%!
+% config.tray2
+% Configuration and header file for dvips. Load with: dvips -P tray2
+%
+% Selects paper from "tray 2"
+% - often this is the lower tray.
+% This should work with these HP LaserJet printers:
+% 4/4M Plus PS 300 + 600
+% 4V/4MV PostScript
+% 5/5M PostScript, 5P/5MP PostScript
+% 5Si/5Si MX PS, 5Si Mopier PS
+% This is very unlikely to work with these HP LaserJet printers because they
+% select trays via media type and not media position:
+% 4Si/4SiMX PS 300dpi + 600dpi
+% 4/4M PS 600 dpi
+% Tested with:
+% gs 5.10, ...
+% Will be silently ignored by a PS level 1 PostScript interpreter,
+% or any other which doesn't know /MediaPosition.
+%
+% This file is built so it can be used both as the header file for
+% PostScript and as the configuration file for dvips.
+% (Note that dvips ignores any lines beginning with a space or a "%".)
+%
+% Copyright (C) 1995-2006 by Volker Kuhlmann.
+% Released under the terms of the GNU General Public License (GPL) Version 2.
+% See http://www.gnu.org/ for details.
+%
+% Steffen Klupsch <steffen@klupsch.de>
+% 15 Mar 2000
+% Volker Kuhlmann <VolkerKuhlmann@gmx.de>
+% 21 Mar 2000
+%
+ /setpagedevice where
+ {
+ %dup { pstack flush pop pop } forall pstack flush
+ pop % remove dict name
+ % check whether pagedevice dict has /DeferredMediaSelection
+ % (gs 3.33 has setpagedevice, but error on /DeferredMediaSelection)
+ /hasDMS false def
+ currentpagedevice
+ {
+ /DeferredMediaSelection eq { /hasDMS true def } if
+ pop % throw value of key
+ } forall
+ hasDMS {
+ <<
+ /DeferredMediaSelection true % what exactly is this?
+ >>
+ setpagedevice
+ } if
+ % gs 5.10, 6.0: error on /MediaPosition
+ currentpagedevice /MediaPosition known {
+ <<
+ /MediaPosition 0 % select tray
+ >>
+ setpagedevice
+ } if
+ } if
+%
+ { % start a procedure so PostScript `ignores' the dvips configuration part.
+h config.tray2
+ } pop % PostScript cleanup
+%
+% EOF config.tray2