LaTeXing python programs
Alan G Isaac
aisaac at american.edu
Wed May 20 15:23:39 EDT 2009
> On Wednesday 20 May 2009 18:43:21 Edward Grefenstette
> wrote:
>> is there a LaTeX package out there that works well for
>> presenting python code?
José Matos wrote:
> Use the listings package.
> It has a python as one of defined languages and has lots of other options.
> http://www.ctan.org/tex-archive/macros/latex/contrib/listings/
The listings package is great and highly configurable.
Note that you can also input entire files of Python code
or pieces of them based on markers. Really quite great.
Cheers,
Alan Isaac
More information about the Python-list
mailing list