python code into LaTeX...

Jim Hefferon jhefferon at smcvt.edu
Fri May 23 12:56:49 EDT 2003


Alessio Pace <puccio_13 at yahoo.it> wrote ...
> I need to put some python code into a
> latex document. Which is the preferable way to do it .. ?
Have you tried the listings package on CTAN?  It is at
  http://www.ctan.org/tex-archive/macros/latex/contrib/supported/listings
I believe (although one of these days the ``supported'' part will go away).
There is a good deal of documentation and it does a nice job.  

(I think there may be a more recent version on the author's home page, so you
might check that.)

Jim Hefferon




More information about the Python-list mailing list