help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] ps-print duplex printing?


From: Brown, Stephen D
Subject: RE: [h-e-w] ps-print duplex printing?
Date: Mon, 18 Nov 2002 18:20:15 -0500

I finally found something that works for me, maybe it will be of some help
to others as well.

I set the following two variables in my _emacs file:

(setq ps-spool-duplex t)
(setq ps-print-prologue-header "%%BeginFeature: *Duplex
DuplexNoTumble\n<</Duplex true /Tumble false>> setpagedevice\n%%EndFeature")

The PS statement used may be dependent on our network printer, but you can
find the proper statement by having a MS app print to a file with the
printer driver settings set to print duplex. You can then read the print
file created and search for the proper PS statement for you.


If someone knows if this is an improper use of the ps-print-prologue-header
variable, please let me know before I find out the hard way.



-----Original Message-----
From: Brown, Stephen D [mailto:address@hidden
Sent: Thursday, November 07, 2002 9:22 AM
To: 'Sprenger, Karel'; emacs
Subject: RE: [h-e-w] ps-print duplex printing?


I tried setting the ps_spool-duplex variable, but it did not help.  An
additional comment in the ps-print.el source says:

;; Don't forget to set `ps-lpr-switches' to select duplex printing
;; for your printer.

I've tried setting the ps_lpr_switches variable but I get the error 
'Wrong type argument: listp, "&l1S"'

The value I'm trying to set the switch to is "<ESC>&l1S", but I'm not sure
how to put the escape character in the value.  I'm not even sure that would
work, but I would at least like to give it a try.

-----Original Message-----
From: Sprenger, Karel [mailto:address@hidden
Sent: Thursday, November 07, 2002 5:08 AM
To: Brown, Stephen D; emacs
Subject: RE: [h-e-w] ps-print duplex printing?


Hi,

Have you tried setting ps-spool-duplex to t?  Here's what the documentation
says:

-----8<-----
*Non-nil generates PostScript for a two-sided printer.
For a duplex printer, the `ps-spool-*' and `ps-print-*' commands will insert
blank pages as needed between print jobs so that the next buffer printed
will
start on the right page.  Also, if headers are turned on, the headers will
be
reversed on duplex printers so that the page numbers fall to the left on
even-numbered pages.

See also `ps-spool-tumble'.

You can customize this variable.

Defined in `ps-print'.
-----8<-----

For me this works on Postscript printers (currently a Xerox Document Centre
230) from ntemacs 21.2.1 ("GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) of
2002-03-19 on buffy" according to emacs-version) under W2K.  You could also
try letting ghostscript handle the printing.  I haven't tried that (except
by
opening the postscript file in gsview and print from there).

Hope this helps.

Cheers,
Karel
-----Original Message-----
From: Brown, Stephen D [mailto:address@hidden
Sent: woensdag 6 november 2002 23:39
To: 'emacs'
Subject: [h-e-w] ps-print duplex printing?


I'm using NT Emacs 20.7.1 on Win2K, and I'm trying to use the duplex
printing option for my printer.

At first I tried to just set up the printer driver to default to printing
both sides, but that did not work when I printed from emacs.
I then found the PCL Printer Command escape sequence for duplex printing on
my printer, but I don't know how to pass those parameters using Emacs. 

Can someone tell how to pass these esacpe sequences using Emacs, or am I
going about this the wrong way? 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]