Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pretty printouts

2 views
Skip to first unread message

Mark Carroll

unread,
Oct 18, 1999, 3:00:00 AM10/18/99
to
Are there any freely-available programs I can use to print Common Lisp
source code nicely to a PostScript printer? e.g. rendering string and
symbol literals differently from function names, etc...

-- Mark

Pierre R. Mai

unread,
Oct 18, 1999, 3:00:00 AM10/18/99
to
Mark Carroll <ma...@chiark.greenend.org.uk> writes:

a) In (x)Emacs you can print buffers with the face information
(ps-print-buffer-with-faces). This doesn't look very good on
monochrome printers IMHO (at least without tweaking).

b) a2ps has a mode for fontifying (Common) Lisp, which IMHO produces
very ugly output, but this can be tweaked.

c) There are a couple of TeX/LaTeX modes/tools for outputting CL,
among them vgrind (IIRC), which should do a better job. Take a
look at www.alu.org, which does have references to some of them
IIRC.

All in all I don't believe in printing source code (whether fontified
or not) unless absolutely necessary and then in small quantities
(e.g. example code in books)...

Regs, Pierre.

--
Pierre Mai <pm...@acm.org> PGP and GPG keys at your nearest Keyserver
"One smaller motivation which, in part, stems from altruism is Microsoft-
bashing." [Microsoft memo, see http://www.opensource.org/halloween1.html]

Paolo Amoroso

unread,
Oct 21, 1999, 3:00:00 AM10/21/99
to
On 18 Oct 1999 14:25:24 +0100 (BST), Mark Carroll
<ma...@chiark.greenend.org.uk> wrote:

> Are there any freely-available programs I can use to print Common Lisp
> source code nicely to a PostScript printer? e.g. rendering string and
> symbol literals differently from function names, etc...

Try SLaTeX by Dorai Sitaram. It supports both Scheme and Common Lisp
formatting. You can generate PostScript from the DVI output. I don't have
the exact URL handy, but you can reach it from the Web site of the Rice
University PLT group:

http://www.cs.rice.edu/CS/PLT/packages/


Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/

0 new messages