pythontex – Run Python from within a document, typesetting the results
The package allows you to enter Python code within a LaTeX document, execute the code, and access its output in the original document.
Python code is only executed when it has been modified, or when it meets user-specified criteria. Code may be divided into user-defined sessions, which automatically run in parallel.
Errors and warnings are synchronized with the LaTeX document, so that they refer to the document's line numbers. External dependencies can be tracked, so that code is re-executed when the data it depends on is modified. PythonTeX also provides syntax highlighting for code in LaTeX documents via the Pygments syntax highlighter.
The package provides a depythontex utility, that creates a copy of the document in which all Python code has been replaced by its output. This is useful for journal submissions, sharing documents, and conversion to other formats.
|Licenses||The LaTeX Project Public License 1.3|
|Copyright||2012–2017 Geoffrey M. Poore|
|Contained in||TeX Live as pythontex|
MiKTeX as pythontex
Download the contents of this package in one zip archive (1.7M).
- 2017-07-22 CTAN update: pythontex
- 2016-07-22 CTAN Update: pythontex
- 2014-07-15 CTAN Update: pythontex
Maybe you are interested in the following packages as well.
- python: Embed Python code in LaTeX
- nucleardata: Provides data about atomic nuclides for documents
- epstopdf-pkg: Call epstopdf "on the fly"
- fixmath: Make maths comply with ISO 31-0:1992 to ISO 31-13:1992