Re: LaTeXing python programs

2009-05-24 Thread Sebastian Wiesner
> On May 20, 10:10 pm, John Reid wrote: >> Alan G Isaac wrote: >> > 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. >> >> I tried listings. I believe pygments makes

Re: LaTeXing python programs

2009-05-21 Thread John Reid
Edward Grefenstette wrote: I'm trying to figure out how to use pygments. Are there any good usage examples out there? The documentation worked for me: http://pygments.org/docs/cmdline/ There is also a LaTeX package to call pygments at latex compilation time I forget what that is called thou

Re: LaTeXing python programs

2009-05-20 Thread Tim Arnold
"John Reid" wrote in message news:mailman.458.1242842132.8015.python-l...@python.org... > Edward Grefenstette wrote: >> I'm typing up my master's thesis and will be including some of the >> code used for my project in an appendix. The question is thus: is >> there a LaTeX package out there that

Re: LaTeXing python programs

2009-05-20 Thread Edward Grefenstette
On May 20, 10:10 pm, John Reid wrote: > Alan G Isaac wrote: > > 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. > > I tried listings. I believe pygments makes better for

Re: LaTeXing python programs

2009-05-20 Thread John Reid
Alan G Isaac wrote: 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. I tried listings. I believe pygments makes better formatted output (at least out of the box). -- http:

Re: LaTeXing python programs

2009-05-20 Thread Alan G Isaac
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/

Re: LaTeXing python programs

2009-05-20 Thread José Matos
On Wednesday 20 May 2009 18:43:21 Edward Grefenstette wrote: > Yes, I am aware that this is more of a LaTeX question than a python > question, but I thought users here might be most likely to offer a > suitable recommendation. > > I'm typing up my master's thesis and will be including some of the

Re: LaTeXing python programs

2009-05-20 Thread John Reid
Edward Grefenstette wrote: I'm typing up my master's thesis and will be including some of the code used for my project in an appendix. The question is thus: is there a LaTeX package out there that works well for presenting python code? verbatim is a bit ugly and doesn't wrap code, and while the

LaTeXing python programs

2009-05-20 Thread Edward Grefenstette
Yes, I am aware that this is more of a LaTeX question than a python question, but I thought users here might be most likely to offer a suitable recommendation. I'm typing up my master's thesis and will be including some of the code used for my project in an appendix. The question is thus: is ther