PyLuaTeX – Execute Python code on the fly in your LaTeX documents
PyLuaTeX allows you to execute Python code and to include the resulting output in your LaTeX documents in a single compilation run. LaTeX documents must be compiled with LuaLaTeX for this to work.
PyLuaTeX runs a Python InteractiveInterpreter (actually several if you use different sessions) in the background for on-the-fly code execution. Python code from your LaTeX file is sent to the background interpreter through a TCP socket. This approach allows your Python code to be executed and the output to be integrated in your LaTeX file in a single compilation run. No additional processing steps are needed. No intermediate files have to be written. No placeholders have to be inserted.
Sources | /macros/luatex/latex/pyluatex |
Documentation | |
Bug tracker | https://github.com/tndrle/PyLuaTeX/issues |
Repository | https://github.com/tndrle/PyLuaTeX |
Version | 0.6.3 |
Licenses | MIT License The LaTeX Project Public License 1.3c |
Copyright | 2021–2024 Tobias Enderle |
Maintainer | Tobias Enderle |
Contained in | TeX Live as pyluatex MiKTeX as pyluatex |
Topics | Callback LuaTeX Experimental LaTeX3 |
Download the contents of this package in one zip archive (114.1k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments