diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty b/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty index 6c247993a91..3413dba4c3e 100644 --- a/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty +++ b/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty @@ -1,15 +1,15 @@ %% Copyright 2021-2022 Tobias Enderle %% %% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX +%% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pyluatex}[2022/02/13 v0.4.2 Execute Python code on the fly] +\ProvidesPackage{pyluatex}[2022/03/10 v0.4.3 Execute Python code on the fly] \RequirePackage{expl3} \ExplSyntaxOn @@ -27,20 +27,16 @@ \DeclareStringOption[python3]{executable} \DeclareBoolOption{ignoreerrors} \DeclareBoolOption{verbose} +\DeclareBoolOption[true]{localimports} \DeclareStringOption[veryveryend]{shutdown} \ProcessKeyvalOptions* -\ifpyluatex@ignoreerrors - \directlua{pyluatex.ignore_errors = true} -\else - \directlua{pyluatex.ignore_errors = false} -\fi -\ifpyluatex@verbose - \directlua{pyluatex.verbose = true} -\else - \directlua{pyluatex.verbose = false} -\fi -\directlua{pyluatex.start([==[\pyluatex@executable]==])} +\directlua{pyluatex.ignore_errors = \ifpyluatex@ignoreerrors true\else false\fi} +\directlua{pyluatex.verbose = \ifpyluatex@verbose true\else false\fi} +\directlua{pyluatex.start( + [==[\pyluatex@executable]==], + \ifpyluatex@localimports true\else false\fi +)} \ExplSyntaxOn \cs_generate_variant:Nn \tl_if_eq:nnTF { V } |