Releases: tndrle/PyLuaTeX
PyLuaTeX v0.6.3
PyLuaTeX v0.6.2
- The implementation of the
shutdown
option has changed. Previous versions used the atveryend package. The new version uses theenddocument/end
andenddocument/afteraux
hooks. The behavior should not change. - The error handling has been improved. Specifically, commands and evironments like
\pyq
andpythonq
did not always handle Python errors properly in previous versions. - Many internal implementation changes
- Improved tests
PyLuaTeX v0.6.1
Fixed pythonrepl
environment (#19)
Python errors inside a pythonrepl
environment are now properly reported on the LaTeX side.
PyLuaTeX v0.6.0
Added support for logging from Python
The new function tex.log()
writes logging messages to the TeX log, e.g.
\begin{python}
tex.log('This text goes to the TeX log.')
\end{python}
PyLuaTeX v0.5.2
Internal changes
- Replaced json.lua library with LuaTeX's built-in JSON library
- Made
\pyoption
command more robust
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.
PyLuaTeX v0.5.0
Execute LaTeX code depending on Python conditions with the new \pyif
command
PyLuaTeX v0.4.4
Improved detection of TeX file for localimports
option
PyLuaTeX v0.4.3
The folder containing the LaTeX input file is now added to the Python path by default.
This allows local Python packages to be imported in the LaTeX document.
This behavior can be disabled with the package option localimports=false
.
PyLuaTeX v0.4.2
Improved error messages when Python backend cannot be started