From: Thaddeus L Olczyk
Subject: Lisp to latex/tex beautifier.
Date: 
Message-ID: <3c5601ea.52275125@nntp.interaccess.com>
OK. I know it seems wastefull. Why take a 2K file and translate into a
64K with a lot of auxillary junk, but I just can't read what comes out
of my printer when I send Lisp as Text to it.
Is there something like Lisp2Tex, so I can gererate pretty listings?

From: Nils Goesche
Subject: Re: Lisp to latex/tex beautifier.
Date: 
Message-ID: <a332m5$15gd2f$1@ID-125440.news.dfncis.de>
In article <·················@nntp.interaccess.com>, Thaddeus L Olczyk wrote:
> OK. I know it seems wastefull. Why take a 2K file and translate into a
> 64K with a lot of auxillary junk, but I just can't read what comes out
> of my printer when I send Lisp as Text to it.
> Is there something like Lisp2Tex, so I can gererate pretty listings?

I just use a2ps.

Regards,
-- 
Nils Goesche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x42B32FC9
From: Dr. Edmund Weitz
Subject: Re: Lisp to latex/tex beautifier.
Date: 
Message-ID: <m3ofjeq339.fsf@bird.agharta.de>
······@interaccess.com (Thaddeus L Olczyk) writes:

> OK. I know it seems wastefull. Why take a 2K file and translate into
> a 64K with a lot of auxillary junk, but I just can't read what comes
> out of my printer when I send Lisp as Text to it.  Is there
> something like Lisp2Tex, so I can gererate pretty listings?

Have you tried a2ps <http://www-inf.enst.fr/~demaille/a2ps/>? It has
pretty-printing facilities for Common Lisp source files thanks to
Juliusz Chroboczek. I'm fine with its output.

Edi.
From: Tim Bradshaw
Subject: Re: Lisp to latex/tex beautifier.
Date: 
Message-ID: <ey3pu3uwzsy.fsf@cley.com>
* Thaddeus L Olczyk wrote:
> OK. I know it seems wastefull. Why take a 2K file and translate into a
> 64K with a lot of auxillary junk, but I just can't read what comes out
> of my printer when I send Lisp as Text to it.
> Is there something like Lisp2Tex, so I can gererate pretty listings?

I use ps-print-buffer from emacs, and/or htmlize and then html2ps.

--tim
From: Brian P Templeton
Subject: Re: Lisp to latex/tex beautifier.
Date: 
Message-ID: <87it9gll2h.fsf@tunes.org>
Tim Bradshaw <···@cley.com> writes:

> * Thaddeus L Olczyk wrote:
>> OK. I know it seems wastefull. Why take a 2K file and translate into a
>> 64K with a lot of auxillary junk, but I just can't read what comes out
>> of my printer when I send Lisp as Text to it.
>> Is there something like Lisp2Tex, so I can gererate pretty listings?
> 
> I use ps-print-buffer from emacs, and/or htmlize and then html2ps.
> 
ps-print-buffer-with-faces will generate...um...*colorful* listings :).

> --tim

-- 
BPT <···@tunes.org>	    		/"\ ASCII Ribbon Campaign
backronym for Linux:			\ / No HTML or RTF in mail
	Linux Is Not Unix			 X  No MS-Word in mail
Meme plague ;)   --------->		/ \ Respect Open Standards
From: Petter Gustad
Subject: Re: Lisp to latex/tex beautifier.
Date: 
Message-ID: <87y9iiphdi.fsf@filestore.home.gustad.com>
······@interaccess.com (Thaddeus L Olczyk) writes:

> OK. I know it seems wastefull. Why take a 2K file and translate into a
> 64K with a lot of auxillary junk, but I just can't read what comes out
> of my printer when I send Lisp as Text to it.
> Is there something like Lisp2Tex, so I can gererate pretty listings?

I normally use a2ps (and have ghostscript converting the PS to PCL on
my print server), but I have used the LaTeX listings package to write
documents which includes CL snippets. So you could go:

\documentclass[10pt]{article}

\usepackage{listings}

\lstset{
  language=Lisp,
  basicstyle=\scriptsize\ttfamily,
  keywordstyle={},
  commentstyle={},
  stringstyle={}}


\begin{document}

\begin{figure}[hf]
\lstinputlisting[first=13,last=21]{dsp.cl}
\caption{\label{fig:brutefdft}Simple CL DFT implementation}
\end{figure}

\end{document}

The above example will extract line 13-21 from the file dsp.cl. Run
this through latex and then dvips (or dvilj) to produce PostScript (or
PCL) for your printer. As you see it's possible to customize the
keyword style etc. The the documentation for the listings package for
more information.


Petter

-- 
________________________________________________________________________
Petter Gustad   8'h2B | (~8'h2B) - Hamlet in Verilog   http://gustad.com