Skip to content

Releases: tndrle/PyLuaTeX

PyLuaTeX v0.6.3

10 Jan 17:42
Compare
Choose a tag to compare

v0.6.2 added an unintended empty trailing new line to the code and output buffer. This bugfix release brings back the behavior of previous versions without the trailing new line.

PyLuaTeX v0.6.2

07 Jan 17:43
Compare
Choose a tag to compare
  • The implementation of the shutdown option has changed. Previous versions used the atveryend package. The new version uses the enddocument/end and enddocument/afteraux hooks. The behavior should not change.
  • The error handling has been improved. Specifically, commands and evironments like \pyq and pythonq did not always handle Python errors properly in previous versions.
  • Many internal implementation changes
  • Improved tests

PyLuaTeX v0.6.1

15 Feb 19:56
Compare
Choose a tag to compare

Fixed pythonrepl environment (#19)

Python errors inside a pythonrepl environment are now properly reported on the LaTeX side.

PyLuaTeX v0.6.0

14 Jan 18:02
Compare
Choose a tag to compare

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

03 Jan 09:19
Compare
Choose a tag to compare

Internal changes

  • Replaced json.lua library with LuaTeX's built-in JSON library
  • Made \pyoption command more robust

PyLuaTeX v0.5.1

30 Dec 09:29
Compare
Choose a tag to compare

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

05 Jun 10:23
Compare
Choose a tag to compare

Execute LaTeX code depending on Python conditions with the new \pyif command

PyLuaTeX v0.4.4

16 Mar 20:37
Compare
Choose a tag to compare

Improved detection of TeX file for localimports option

PyLuaTeX v0.4.3

10 Mar 19:47
Compare
Choose a tag to compare

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

13 Feb 09:10
Compare
Choose a tag to compare

Improved error messages when Python backend cannot be started