From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kuddel@informatik.uni-siegen.de (Holger Schulz) Newsgroups: gmane.emacs.help Subject: Question on pretty printing Date: Mon, 26 Apr 2004 12:21:39 +0200 Organization: University of Siegen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1gcumhs.1de4jhe6umqvkN%kuddel@informatik.uni-siegen.de> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1082975763 2347 80.91.224.253 (26 Apr 2004 10:36:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2004 10:36:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 26 12:35:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BI3Ss-00008d-00 for ; Mon, 26 Apr 2004 12:35:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BI3PO-0005IU-Po for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Apr 2004 06:32:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!si-nic.hrz.uni-siegen.de!kuddel Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: si-nic.hrz.uni-siegen.de Original-X-Trace: ws-fra1.win-ip.dfn.de 1082974896 27622 141.99.2.2 (26 Apr 2004 10:21:36 GMT) Original-X-Complaints-To: abuse@dfn.de Original-NNTP-Posting-Date: Mon, 26 Apr 2004 10:21:36 +0000 (UTC) User-Agent: MacSOUP/D-2.5 (unregistered for 117 days) X-Original-NNTP-Posting-Host: 141.99.131.109 X-Original-Trace: 26 Apr 2004 12:21:36 +0200, 141.99.131.109 Original-Xref: shelby.stanford.edu gnu.emacs.help:122716 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:18004 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18004 Using xemacs on a Linux machine a tried to use pretty print method to create a postscript file of OCaml source code (I've installed the tuareg mode). A colleague set up the following function ---cut--- (defun my-pretty-ps () (interactive) (let ((f (buffer-name))) (ps-print-buffer-with-faces (concat f ".ps")))) ---cut--- That works to produce a pretty printed .ps file but we have the following problems 1. The header of the postscript page includes the path of the file. We want to get rid of that. 2. The .ps file contains to pages, but the second to totally empty. The header on the first says 1/1. 3. The file seems to contain corrupted PostScript code. We can produce a pdf file from it with ps2pdf but not with the Acrobat distiller on my MacOS X machine. The distiller produces a PDF but i containts complete rubbish. Versions: XEmacs 21.4 (patch 1) "Copyleft" [Lucid] (i386-debian-linux) of Tue May 22 2001 on eeyore Acrobat Distiller 6.0.1 I don't know how to determine the version of ps2pdf hs