diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-14 20:52:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-14 20:52:29 +0000 |
commit | b893980d60ad3f1a6dc513ca784a27941a9c55bd (patch) | |
tree | e1f3f48e5915997f972aeae2638c4c0c917d0f3c /Master/texmf-dist/doc/lualatex | |
parent | 38a85335a98b9ebd1d72dc8423ac1a4aa9061000 (diff) |
pyluatex (14jan23)
git-svn-id: svn://tug.org/texlive/trunk@65537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf | bin | 82073 -> 83049 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex | 19 |
2 files changed, 18 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf Binary files differindex 69fe67558e0..bc41fa99e41 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf +++ b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf 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{} |