CTAN update: PyLuaTeX
Change ----------- In case a Python error occurs inside a python environment, the Python output (including the error message and stack trace) is now only written to the document if the package option ignoreerrors is enabled. Otherwise, the Python output is only shown in the LaTeX log file. Reason ----------- Since Python stack traces often contain "special" characters like _, writing the Python output to the document can lead to LaTeX errors (e.g. Missing $ inserted) that hide the original Python error.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/pyluatex The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/pyluatex/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
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.
Package | PyLuaTeX |
Version | 0.6.3 |
Copyright | 2021–2024 Tobias Enderle |
Maintainer | Tobias Enderle |