Index of /macros/latex2e/contrib/python
      Name                    Last modified       Size  Description

[DIR] Parent Directory 19-Sep-2020 22:34 - [TXT] python.sty 12-Jun-2012 03:24 3k

This package enables you to embed Python code ( in LaTeX and insert the output into your LaTeX document.

In you LaTeX document insert:


The file is included together with the code between \begin{python} and \end{python}. Hence, you can extract common code to a shared file.

Compile the document with the shell escape option and of course Python installed:

% latex -shell-escape document.tex

or insert/change "shell_escape = t" in your texmf.cnf

If you have any comments, suggestions, or patches please email them to me.

Please note that this material is subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See for the details of that license.

Martin R. Ehmsen