diff options
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex index 12c539d6609..4dc0c09e353 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex @@ -15,7 +15,7 @@ \usepackage{url} \title{The \emph{pyluatex} package} \author{Tobias Enderle\\\url{https://github.com/tndrle/PyLuaTeX}} -\date{v0.5.2 (2023/01/03)} +\date{v0.6.0 (2023/01/14)} \begin{document} \maketitle \raggedright @@ -196,6 +196,23 @@ in your environment definition, e.g. {\end{python}} \end{tcblisting} +\subsection{Logging from Python} +\begin{tcblisting}{breakable,listing only, + size=fbox,colframe=black!8,boxrule=3pt,colback=black!8} +tex.log(*objects, sep=' ', end='\n') +\end{tcblisting} +Writes \inlcode|objects| to the TeX log, separated by \inlcode|sep| and followed by \inlcode|end|. +All elements in \inlcode|objects| are converted to strings using \inlcode|str()|. +Both \inlcode|sep| and \inlcode|end| must be strings. + +\textit{Example:} +\begin{tcblisting}{breakable,listing only, + size=fbox,colframe=black!8,boxrule=3pt,colback=black!8} +\begin{python} +tex.log('This text goes to the TeX log.') +\end{python} +\end{tcblisting} + \section{Requirements} \begin{itemize} \item Lua\LaTeX{} |