From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Rodolfo Medina" Newsgroups: gmane.emacs.help Subject: Re: How to print only one page of a file? Date: Mon, 21 Feb 2005 12:55:46 +0100 Message-ID: References: <37ca0bF5b7291U1@individual.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108988199 12623 80.91.229.2 (21 Feb 2005 12:16:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 12:16:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 21 13:16:39 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3CUK-0004NF-Jr for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Feb 2005 13:16:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3ClH-0004rw-1F for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Feb 2005 07:34:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3Cc0-0000o9-9k for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 07:24:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3Cbw-0000nE-Vs for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 07:24:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3Cbw-0000OO-L9 for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 07:24:24 -0500 Original-Received: from [193.70.192.33] (helo=smtp0.libero.it) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3CDu-0002RW-IW for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 06:59:34 -0500 Original-Received: from localhost (172.16.1.80) by smtp0.libero.it (7.0.027-DD01) id 41BDA86900EED9FC for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 12:59:34 +0100 Original-Received: from a3i3g5 (151.26.102.177) by smtp2.libero.it (7.0.027-DD01) id 41BF65E40469C3AB for help-gnu-emacs@gnu.org; Mon, 21 Feb 2005 12:54:56 +0100 Original-Received: from 127.0.0.1 (AVG SMTP 7.0.306 [265.8.9]); Mon, 21 Feb 2005 12:55:46 +0100 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <37ca0bF5b7291U1@individual.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Scanned: by amavisd-new at libero.it serv2 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24212 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24212 Rodolfo Medina wrote: > Excuse such a basic question: > is it possible, and how?, when printing a file, > to tell Emacs to print just a desired page? > I searched all over the Gnu Emacs Manual but didn't find any answer. Drew Adams wrote: > Use library printing.el for the most convenient interface to printing in > Emacs. You can select a page as the region, then print the region (selected > text). The library is available in Emacs 21 or here: > http://www.cpqd.com.br/~vinicius/emacs/#printing.el. Thanks, Drew, I'll have a look at it in the next days. Kevin Rodgers wrote: > C-x n p ; narrow-to-page > C-x h ; mark-whole-buffer > M-x lpr-buffer ; or print-buffer, ps-print-buffer, > ps-print-buffer-with-faces > C-x n w ; widen Thanks, Kevin: the only problem is that in the buffer I can't scroll the page I want to print because when I scroll point moves and so the page itself goes on changing. Any hint about this? An alternative way is to perform a posctscript print preview (from the file menu) and then print the desired page from the .ps file. But now one more printing problem: I'll start a new topic for it. Thanks, cheers, Rodolfo