From 39716eb000e94233660cbfec4da9957bb47859b8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Jan 2024 21:28:53 +0000 Subject: pyluatex (6jan24) git-svn-id: svn://tug.org/texlive/trunk@69341 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/lualatex/pyluatex/README.md | 4 ++-- .../doc/lualatex/pyluatex/example/beamer.tex | 2 +- .../pyluatex/example/data-visualization.tex | 2 +- .../pyluatex/example/matplotlib-external.tex | 2 +- .../lualatex/pyluatex/example/matplotlib-pgf.tex | 2 +- .../lualatex/pyluatex/example/readme-custom-env.tex | 2 +- .../lualatex/pyluatex/example/readme-example.tex | 2 +- .../doc/lualatex/pyluatex/example/repl.tex | 4 ++-- .../doc/lualatex/pyluatex/example/sessions.tex | 2 +- .../pyluatex/example/typesetting-example.tex | 2 +- .../pyluatex/example/typesetting-listings.tex | 2 +- .../pyluatex/example/typesetting-minted.tex | 2 +- .../texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf | Bin 83051 -> 83317 bytes .../texmf-dist/doc/lualatex/pyluatex/pyluatex.tex | 9 +++++---- 14 files changed, 19 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist/doc/lualatex') diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/README.md b/Master/texmf-dist/doc/lualatex/pyluatex/README.md index f753b5850d6..3f7f30ebcc8 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/README.md +++ b/Master/texmf-dist/doc/lualatex/pyluatex/README.md @@ -35,7 +35,7 @@ $\sqrt{371} = \py{math.sqrt(371)}$ 2\. Compile using LuaLaTeX (shell escape is required) ``` -lualatex -shell-escape example.tex +lualatex --shell-escape example.tex ``` **Note:** PyLuaTeX starts Python 3 using the command `python3` by default. @@ -53,7 +53,7 @@ executed. For this reason, it is recommended to compile trusted documents only. ## License [LPPL 1.3c](http://www.latex-project.org/lppl.txt) for LaTeX code and -[MIT license](https://opensource.org/licenses/MIT) for Python and Lua code. +[MIT license](https://opensource.org/licenses/MIT) for Python and Lua code and other files. ## Further Information Author: Tobias Enderle diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/beamer.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/beamer.tex index 3592a56922a..804721df852 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/beamer.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/beamer.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/data-visualization.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/data-visualization.tex index 2d43cb946bf..1a6869c8ad2 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/data-visualization.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/data-visualization.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-external.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-external.tex index 9289d1c6d7b..d4f4f2b1f5d 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-external.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-external.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-pgf.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-pgf.tex index 9172bbe0de2..990645aaf3f 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-pgf.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/matplotlib-pgf.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-custom-env.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-custom-env.tex index 115299264ee..d6dc87e4406 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-custom-env.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-custom-env.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-example.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-example.tex index 63ba160acea..130e553eee4 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-example.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/readme-example.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/repl.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/repl.tex index fd56dbc91a5..52aef0a358e 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/repl.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/repl.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c @@ -57,7 +57,7 @@ square(5) \maketitle PyLuaTeX allows you to run and typeset Python code in an interactive console -or read–eval–print loop (REPL) fashion. Very much like in an interactive python session, +or read–eval–print loop (REPL) fashion. Very much like in an interactive Python session, code is prefixed with \verb|>>>| (or \verb|...| in case of multi-line commands) and the results are added to the output buffer automatically. diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/sessions.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/sessions.tex index 49f49c4ddb0..e6b071c30c3 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/sessions.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/sessions.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-example.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-example.tex index 435c02973a8..ade107e5fed 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-example.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-example.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-listings.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-listings.tex index 116ebc2fc8e..e251fe86b21 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-listings.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-listings.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-minted.tex b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-minted.tex index 760d1a1355f..930f8018dd5 100644 --- a/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-minted.tex +++ b/Master/texmf-dist/doc/lualatex/pyluatex/example/typesetting-minted.tex @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 Tobias Enderle +%% Copyright 2021-2024 Tobias Enderle %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf index d357f153852..c3623287ddf 100644 Binary files a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf and b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex index 908fb04c772..5080c4b52f1 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.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} -- cgit v1.2.3