summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/pyluatex/pyluatex.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-04 03:02:24 +0000
committerNorbert Preining <norbert@preining.info>2023-01-04 03:02:24 +0000
commitb2ede2da5ece936a9be421f2b6fbdb6c65cb225a (patch)
tree52e56df44d458efa71d7de971f576d61dbdb2123 /macros/luatex/latex/pyluatex/pyluatex.sty
parent660cf44d2a0aee74bd6e69615fedfc57c966a260 (diff)
CTAN sync 202301040302
Diffstat (limited to 'macros/luatex/latex/pyluatex/pyluatex.sty')
-rw-r--r--macros/luatex/latex/pyluatex/pyluatex.sty28
1 files changed, 14 insertions, 14 deletions
diff --git a/macros/luatex/latex/pyluatex/pyluatex.sty b/macros/luatex/latex/pyluatex/pyluatex.sty
index 02ac9d5f6c..a5adf62973 100644
--- a/macros/luatex/latex/pyluatex/pyluatex.sty
+++ b/macros/luatex/latex/pyluatex/pyluatex.sty
@@ -1,4 +1,4 @@
-%% Copyright 2021-2022 Tobias Enderle
+%% Copyright 2021-2023 Tobias Enderle
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -9,15 +9,15 @@
%% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pyluatex}[2022/12/30 v0.5.1 Execute Python code on the fly]
+\ProvidesPackage{pyluatex}[2023/01/03 v0.5.2 Execute Python code on the fly]
\RequirePackage{expl3}
\ExplSyntaxOn
-\sys_if_engine_luatex:TF{}{%
- \PackageError{PyLuaTeX}{LuaTeX~is~required}{}%
+\sys_if_engine_luatex:TF{}{
+ \PackageError{PyLuaTeX}{LuaTeX~is~required}{}
}
-\sys_if_shell_unrestricted:TF{}{%
- \PackageError{PyLuaTeX}{Shell~escape~required~(add~-shell-escape~option)}{}%
+\sys_if_shell_unrestricted:TF{}{
+ \PackageError{PyLuaTeX}{Shell~escape~required~(add~-shell-escape~option)}{}
}
\ExplSyntaxOff
@@ -40,18 +40,18 @@
\ExplSyntaxOn
\cs_generate_variant:Nn \tl_if_eq:nnTF { V }
-\tl_if_eq:VnTF{\pyluatex@shutdown}{veryveryend}{%
+\tl_if_eq:VnTF{\pyluatex@shutdown}{veryveryend}{
\RequirePackage{atveryend}
\AtVeryVeryEnd{\directlua{pyluatex.shutdown()}}
-}{%
- \tl_if_eq:VnTF{\pyluatex@shutdown}{veryenddocument}{%
+}{
+ \tl_if_eq:VnTF{\pyluatex@shutdown}{veryenddocument}{
\RequirePackage{atveryend}
\AtVeryEndDocument{\directlua{pyluatex.shutdown()}}
- }{%
- \tl_if_eq:VnTF{\pyluatex@shutdown}{off}{}{%
- \PackageError{PyLuaTeX}{%
+ }{
+ \tl_if_eq:VnTF{\pyluatex@shutdown}{off}{}{
+ \PackageError{PyLuaTeX}{
Invalid~value~for~package~option~"shutdown":~\pyluatex@shutdown
- }{}%
+ }{}
}
}
}
@@ -59,7 +59,7 @@
\newcommand*{\PyLTVerbatimEnv}{\directlua{pyluatex.set_parent_env([==[\@currenvir]==])}}
-\newenvironment{python}{\directlua{pyluatex.record_env("python", false)}}%
+\newenvironment{python}{\directlua{pyluatex.record_env("python", false)}}
{\directlua{pyluatex.print_env()}}
\newenvironment{pythonq}{\directlua{pyluatex.record_env("pythonq", false)}}{}