unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [printing] duplex doesn't work
@ 2011-10-06 17:52 Thorsten
  2011-10-08 19:05 ` [printing] duplex doesn't work (Thorsten) Steve Revilak
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten @ 2011-10-06 17:52 UTC (permalink / raw)
  To: help-gnu-emacs


Using a hp-laserjet under Ubuntu, duplex printing works just fine -
except using emacs. I installed the printing package, but activating the
duplex option does nothing. 
So I copy text from an emacs-buffer to gedit to get a nicely formatted
duplex print, what is kind of embarrassing, even if nobody looks.
How can I make the duplex option work in printing.el?
Cheers
-- 
Thorsten




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [printing] duplex doesn't work (Thorsten)
  2011-10-06 17:52 [printing] duplex doesn't work Thorsten
@ 2011-10-08 19:05 ` Steve Revilak
  2011-10-09 22:53   ` Thorsten
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Revilak @ 2011-10-08 19:05 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Thorsten

[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]

>Using a hp-laserjet under Ubuntu, duplex printing works just fine -
>except using emacs. I installed the printing package, but activating the
>duplex option does nothing.
>So I copy text from an emacs-buffer to gedit to get a nicely formatted
>duplex print, what is kind of embarrassing, even if nobody looks.
>How can I make the duplex option work in printing.el?
>Cheers

This could be a emacs, or it could be a factor of the printing
system.  

My linux distribution uses CUPS.  Via CUPS, I've configured duplex as
a default option for print jobs.  To see if CUPS is installed on your
system, visit <http://localhost:631/> in your web browser of choice.
If you see a page with the word "CUPS", then that is probably what
your system is using to print, and you use this web interface to
configure duplex as a default option.  Maybe this is all you need to
do.

I'm familiar with lpr.el (i.e., M-x print-region and friends), but not
printing.el.  AFAIK, lpr.el delegates work to the system lpr command.
If printing.el does something similar, then I'd start by getting lpr
to produce duplex.  In other words, go to a shell prompt and type

    lpr YOUR-FILE.txt

where YOUR-FILE.txt is a text file that's longer than one page in
length.  If your file prints as simplex, try

    lpr -o sides=two-sided-long-edge YOUR-FILE.txt

Once you've figured out how to produce two-sided output via lpr, you
can (a) use lpoptions to set the options permanently, or (b) figure
out how to get emacs to pass those options to lpr.

For lpr.el, I believe you can accomplish (b) by customizing the emacs
variable `lpr-switches'.

Sorry that's not a direct answer to your question, but hopefully it
helps you get a little further.

Steve

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [printing] duplex doesn't work (Thorsten)
  2011-10-08 19:05 ` [printing] duplex doesn't work (Thorsten) Steve Revilak
@ 2011-10-09 22:53   ` Thorsten
  0 siblings, 0 replies; 3+ messages in thread
From: Thorsten @ 2011-10-09 22:53 UTC (permalink / raw)
  To: help-gnu-emacs

Steve Revilak <steve@srevilak.net> writes:

> My linux distribution uses CUPS.  Via CUPS, I've configured duplex as
> a default option for print jobs.  To see if CUPS is installed on your
> system, visit <http://localhost:631/> in your web browser of choice.
> If you see a page with the word "CUPS", then that is probably what
> your system is using to print, and you use this web interface to
> configure duplex as a default option.  Maybe this is all you need to
> do.

Perfect, this did the job, now duplex printing works fine in Emacs too.
Thanks a lot for your long and informative answer - it helped me to get
rid of a problem that annoyed me for quite some time now. 

Cheers
-- 
Thorsten




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-09 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 17:52 [printing] duplex doesn't work Thorsten
2011-10-08 19:05 ` [printing] duplex doesn't work (Thorsten) Steve Revilak
2011-10-09 22:53   ` Thorsten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).