diff options
Diffstat (limited to 'macros/luatex/latex/pyluatex/pyluatex.tex')
-rw-r--r-- | macros/luatex/latex/pyluatex/pyluatex.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/macros/luatex/latex/pyluatex/pyluatex.tex b/macros/luatex/latex/pyluatex/pyluatex.tex index 908fb04c77..5080c4b52f 100644 --- a/macros/luatex/latex/pyluatex/pyluatex.tex +++ b/macros/luatex/latex/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.6.1 (2023/02/15)} +\date{v0.6.2 (2024/01/07)} \begin{document} \maketitle \raggedright @@ -57,7 +57,7 @@ $\sqrt{371} = \py{math.sqrt(371)}$ \item Compile using Lua\LaTeX{} (shell escape is required) \begin{tcblisting}{breakable,listing only, size=fbox,colframe=black!8,boxrule=3pt,colback=black!8} -lualatex -shell-escape example.tex +lualatex --shell-escape example.tex \end{tcblisting} \end{enumerate} \textbf{Note:} PyLuaTeX starts Python 3 using the command \inlcode|python3| by default. @@ -122,7 +122,8 @@ For an example, see the Typesetting Code section. \item \inlcode|shutdown|\\[0.5ex] Specifies when the Python process is shut down. (default: \inlcode|veryveryend|)\\[0.5ex] \textit{Options:} \inlcode|veryveryend|, \inlcode|veryenddocument|, \inlcode|off|\\[0.5ex] - PyLuaTeX uses the hooks of the package \textit{atveryend} to shut down the Python interpreter when the compilation is done. With the option \inlcode|veryveryend|, Python is shut down in the \inlcode|\AtVeryVeryEnd| hook. With the option \inlcode|veryenddocument|, Python is shut down in the \inlcode|\AtVeryEndDocument| hook. With the option \inlcode|off|, Python is not shut down explicitly. However, the Python process will shut down when the LuaTeX process finishes even if \inlcode|off| is selected. Using \inlcode|off| on Windows might lead to problems with SyncTeX, though.\\[0.5ex] + PyLuaTeX shuts down the Python interpreter when the compilation is done. With the option \inlcode|veryveryend|, Python is shut down in the \inlcode|enddocument/end| hook. With the option \inlcode|veryenddocument|, Python is shut down in the \inlcode|enddocument/afteraux| hook. With the option \inlcode|off|, Python is not shut down explicitly. However, the Python process will shut down when the LuaTeX process finishes even if \inlcode|off| is selected. Using \inlcode|off| on Windows might lead to problems with SyncTeX, though.\\[0.5ex] + Before v0.6.2, PyLuaTeX used the hooks \inlcode|\AtVeryVeryEnd| and \inlcode|\AtVeryEndDocument| of the package \textit{atveryend}. The new hooks \inlcode|enddocument/end| and \inlcode|enddocument/afteraux| are equivalent to those of the \textit{atveryend} package.\\[0.5ex] \textit{Example:} \inlcode|\usepackage[shutdown=veryenddocument]{pyluatex}| \item \inlcode|verbose|\\[0.5ex] If this option is set, Python input and output is written to the \LaTeX{} log file.\\[0.5ex] @@ -285,5 +286,5 @@ No placeholders have to be inserted. \section{License} LPPL 1.3c\footnote{\url{http://www.latex-project.org/lppl.txt}} for \LaTeX{} code and -MIT license\footnote{\url{https://opensource.org/licenses/MIT}} for Python and Lua code. +MIT license\footnote{\url{https://opensource.org/licenses/MIT}} for Python and Lua code and other files. \end{document} |