Medusa quotation-tools review-tools TeXlib
Email Us

[Sample py2tex Output] The py2tex package allows you to typeset Python programs with LaTeX. It consists of some Python code to translate Python source to LaTeX and a LaTeX style file that contains the necessary definitions. The image at right is an example of what py2tex output looks like.

Version 0.9 is the first release of py2tex in some years, and updates the packaging to match current Python conventions. The code still needs to be updated in various ways (to use the re module instead of the regex module, for example), and the packaging is still experimental and needs to be tried on more platforms.

py2tex was originally written by Jeroen van Maanen; I'm planning to just update it a bit for current versions of Python and then leave it alone.

Download the code

py2tex-0.91.tar.gz [20K] [Signature]