From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Tue, 20 Dec 2005 21:58:41 +0200 Message-ID: References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A1B787.9040001@student.lu.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135110340 6394 80.91.229.2 (20 Dec 2005 20:25:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 20:25:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 21:25:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eoo2w-000229-DL for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 21:25:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eoo3q-0005yd-QN for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 15:26:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eone3-0007Dd-R7 for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 14:59:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eone1-0007Cm-VA for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 14:59:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eone1-0007Ch-K5 for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 14:59:33 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EonhC-0004ng-Ap for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 15:02:50 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-91-180.inter.net.il [80.230.91.180]) by romy.inter.net.il (MOS 3.7.2-GA) with ESMTP id DFE63446 (AUTH halo1); Tue, 20 Dec 2005 21:58:34 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Mathias Dahl on Tue, 20 Dec 2005 08:41:06 +0100) 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 Xref: news.gmane.org gmane.emacs.help:32117 Archived-At: > From: Mathias Dahl > Date: Tue, 20 Dec 2005 08:41:06 +0100 > > > If the printer is a Postscript printer, though, ps-print has a feature > > whereby you can remap faces to use color-less typefaces instead; for > > example, the face for comments could use bold-italic, keywords could > > come out underlined, etc. I attach below the mapping I use for a very > > long time. > > So, do I use the same technique? First set `printer-name' and then > execute some ps-command, like maybe `ps-print-buffer-with-faces'? There's a separate variable ps-printer-name, which defaults to printer-name's value. So if the same printer can serve as both PostScript and non-PostScript one, you need to set only printer-name and ps-print will work with that as well. > Maybe I can even redirect the printer output to a file ps-print will optionally write the output to a file, see the doc string. > and then use Ghostscript to make a PDF. Do you really need a PDF file? Because if you only want to print in color to a non-PostScript printer, and you have Ghostscript installed, you can do that directly. Here's an example of such a setup: (setq ps-printer-name t) (setq ps-lpr-command "d:/Aladdin/gs6.01/bin/gswin32c.exe") (setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2" "-sPAPERSIZE=a4" )) `mswinpr2' is the name used by Ghostscript to access the default printer, IIRC, and gswin32c.exe is the console version of Ghostscript.