summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/pyluatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-16 19:57:46 +0000
committerKarl Berry <karl@freefriends.org>2021-07-16 19:57:46 +0000
commit4c38ce6b85080cb3ec3aa689cd8bdea837b0732b (patch)
tree2661e6ea45896f79f01d5a06dfc29466dfd942fb /Master/texmf-dist/tex/lualatex/pyluatex
parent7dae219cffdd41f06364c53711ced32311b69733 (diff)
pyluatex (16jul21)
git-svn-id: svn://tug.org/texlive/trunk@59953 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/pyluatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty b/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty
index 752f19d0e76..b9ce3f97179 100644
--- a/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty
+++ b/Master/texmf-dist/tex/lualatex/pyluatex/pyluatex.sty
@@ -9,7 +9,7 @@
%% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pyluatex}[2021/07/14 v0.1.2 Execute Python code on the fly]
+\ProvidesPackage{pyluatex}[2021/07/15 v0.1.3 Execute Python code on the fly]
\RequirePackage{expl3}
\ExplSyntaxOn
@@ -30,7 +30,8 @@
\directlua{pyluatex.start([==[\pyluatex@executable]==])}
-\newenvironment{python}{\directlua{pyluatex.record_env()}}{}
+\newenvironment{python}{\directlua{pyluatex.record_env()}}%
+{\directlua{pyluatex.print_env()}}
\newcommand*{\py}[1]{%
\directlua{pyluatex.execute([==[print(str(#1), end='')]==], true)}%