PyLuaTeX v0.5.1
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.