unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Steve Revilak <steve@srevilak.net>
To: help-gnu-emacs@gnu.org
Cc: Thorsten <quintfall@googlemail.com>
Subject: Re: [printing] duplex doesn't work (Thorsten)
Date: Sat, 8 Oct 2011 15:05:25 -0400	[thread overview]
Message-ID: <20111008190525.GB7078@srevilak.net> (raw)
In-Reply-To: <86pqia57p6.fsf@googlemail.com>

[-- 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 --]

  reply	other threads:[~2011-10-08 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 17:52 [printing] duplex doesn't work Thorsten
2011-10-08 19:05 ` Steve Revilak [this message]
2011-10-09 22:53   ` [printing] duplex doesn't work (Thorsten) Thorsten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111008190525.GB7078@srevilak.net \
    --to=steve@srevilak.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=quintfall@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).