summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/dvips/dvipsconfig/config.dupshort
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.dupshort
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.dupshort')
-rw-r--r--Master/texmf-dist/dvips/dvipsconfig/config.dupshort43
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/dvips/dvipsconfig/config.dupshort b/Master/texmf-dist/dvips/dvipsconfig/config.dupshort
new file mode 100644
index 00000000000..1924341dfc3
--- /dev/null
+++ b/Master/texmf-dist/dvips/dvipsconfig/config.dupshort
@@ -0,0 +1,43 @@
+%!
+% config.dupshort
+% Configuration and header file for dvips. Load with: dvips -P dupshort
+%
+% Prints in duplex mode with binding on the short edge if the printer
+% has a duplex unit, otherwise it will be ignored.
+% Works on: HP LaserJet IIISi, HP LJ 4m, 4m+, 4mv, 5, gs 3.33, 5.10, 6.0.
+%
+% 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.
+%
+% Volker Kuhlmann <VolkerKuhlmann@gmx.de>
+% 20 Feb 1995, 18 Jan 1998, 5 Feb 1998; 9, 22 Mar 2000
+%
+ %statusdict begin true setduplexmode true settumble end
+ /setpagedevice where {
+ pop % throw dict name
+ % gs 3.33 does not have /Duplex, /Tumble in pagedevice dict
+ currentpagedevice /Duplex known {
+ %<< /Duplex true >> % << >> are level 2 only
+ /tmpdict 1 dict def tmpdict /Duplex true put tmpdict
+ setpagedevice
+ } if
+ currentpagedevice /Tumble known {
+ /tmpdict 1 dict def tmpdict /Tumble true put tmpdict
+ setpagedevice
+ } if
+ }{
+ statusdict begin
+ true setduplexmode true settumble
+ end
+ } ifelse
+%
+ { % start a procedure so PostScript `ignores' the dvips configuration part.
+h config.dupshort
+ } pop % PostScript cleanup
+%
+% EOF config.dupshort