From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Re: [printing] duplex doesn't work (Thorsten) Date: Sat, 8 Oct 2011 15:05:25 -0400 Message-ID: <20111008190525.GB7078@srevilak.net> References: <86pqia57p6.fsf@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" X-Trace: dough.gmane.org 1318110275 24220 80.91.229.12 (8 Oct 2011 21:44:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2011 21:44:35 +0000 (UTC) Cc: Thorsten To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 23:44:29 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RCeh2-0008Qr-GP for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 23:44:28 +0200 Original-Received: from localhost ([::1]:58463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCeh2-0007Ei-27 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 17:44:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCegx-0007EY-Is for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 17:44:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCegw-0001gh-AE for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 17:44:23 -0400 Original-Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]:48423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCegw-0001gM-6e for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 17:44:22 -0400 Original-Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.52]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id CF4DAA711EE for ; Sat, 8 Oct 2011 17:44:00 -0400 (EDT) Original-Received: (qmail 2511 invoked from network); 8 Oct 2011 19:05:32 -0000 Original-Received: by simscan 1.4.0 ppid: 16962, pid: 18114, t: 4.4572s scanners: clamav: 0.88.2/m:52/d:13513 spam: 3.0.4 Original-Received: from pool-173-48-97-226.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[173.48.97.226]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Oct 2011 19:05:27 -0000 Content-Disposition: inline In-Reply-To: <86pqia57p6.fsf@googlemail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.145.128.243 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82508 Archived-At: --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >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. =20 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 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=3Dtwo-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 --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk6QnvUACgkQX7YJI4BuyDRauQCdF9jDCZC5zz6qzaz6TIzNRFkP p/cAn1hbE5XVeq6tNUdu/PkUN3LZoHwh =ccZa -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--