summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/pyluatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-30 21:54:46 +0000
committerKarl Berry <karl@freefriends.org>2022-12-30 21:54:46 +0000
commit3c2b5f7312ad17c7c18d201ebabec6e926aa9dce (patch)
treec10f0b733421457f4b20132f8e72abdd1501aac3 /Master/texmf-dist/doc/lualatex/pyluatex
parent132933452e4a26cf30e80f64e7bcab840090f764 (diff)
pyluatex (30dec22)
git-svn-id: svn://tug.org/texlive/trunk@65408 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/pyluatex')
-rw-r--r--Master/texmf-dist/doc/lualatex/pyluatex/README.md13
-rw-r--r--Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdfbin82658 -> 82203 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex17
3 files changed, 14 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/README.md b/Master/texmf-dist/doc/lualatex/pyluatex/README.md
index c93a3b8c8bf..06ae0a714d4 100644
--- a/Master/texmf-dist/doc/lualatex/pyluatex/README.md
+++ b/Master/texmf-dist/doc/lualatex/pyluatex/README.md
@@ -32,15 +32,17 @@ $\sqrt{371} = \py{math.sqrt(371)}$
\randint{2}{5}
\end{document}
```
-**Note:** PyLuaTeX starts Python 3 using the command `python3` by default.
-If `python3` does not start Python 3 on your system, find the correct command
-and replace `\usepackage{pyluatex}` with `\usepackage[executable=<your python command>]{pyluatex}`.
-For example, `\usepackage[executable=python.exe]{pyluatex}`.
2\. Compile using LuaLaTeX (shell escape is required)
```
lualatex -shell-escape example.tex
```
+
+**Note:** PyLuaTeX starts Python 3 using the command `python3` by default.
+If `python3` does not start Python 3 on your system, find the correct command
+and replace `\usepackage{pyluatex}` with `\usepackage[executable=<your python command>]{pyluatex}`.
+For example, `\usepackage[executable=python.exe]{pyluatex}`.
+
**Note:** Running LaTeX with the shell escape option enabled allows arbitrary code to be
executed. For this reason, it is recommended to compile trusted documents only.
@@ -49,9 +51,6 @@ executed. For this reason, it is recommended to compile trusted documents only.
* Python 3
* Linux, macOS or Windows
-The automated tests currently use TeX Live 2022 and Python 3.8+ on
-Ubuntu 20.04, macOS Big Sur 11 and Windows Server 2022.
-
## 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.
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf
index c7710f6f78c..5f5e096b876 100644
--- a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf
+++ b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex b/Master/texmf-dist/doc/lualatex/pyluatex/pyluatex.tex
index 366a7ae8dae..56782fcf193 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.5.0 (2022/06/05)}
+\date{v0.5.1 (2022/12/30)}
\begin{document}
\maketitle
\raggedright
@@ -54,18 +54,20 @@ $\sqrt{371} = \py{math.sqrt(371)}$
\randint{2}{5}
\end{document}
\end{tcblisting}
-\textbf{Note:} PyLuaTeX starts Python 3 using the command \inlcode|python3| by default.
-If \inlcode|python3| does not start Python 3 on your system, find the correct command
-and replace \inlcode|\usepackage{pyluatex}| with \inlcode|\usepackage[executable=<your python command>]{pyluatex}|.
-For example, \inlcode|\usepackage[executable=python.exe]{pyluatex}|.
\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
\end{tcblisting}
+\end{enumerate}
+\textbf{Note:} PyLuaTeX starts Python 3 using the command \inlcode|python3| by default.
+If \inlcode|python3| does not start Python 3 on your system, find the correct command
+and replace \inlcode|\usepackage{pyluatex}| with \inlcode|\usepackage[executable=<your python command>]{pyluatex}|.
+For example, \inlcode|\usepackage[executable=python.exe]{pyluatex}|.
+
\textbf{Note:} Running \LaTeX{} with the shell escape option enabled allows arbitrary code to be
executed. For this reason, it is recommended to compile trusted documents only.
-\end{enumerate}
+
\subsection{Further Examples}
The folder \inlcode|example| contains additional example documents:
\begin{itemize}
@@ -200,9 +202,6 @@ in your environment definition, e.g.
\item Python 3
\item Linux, macOS or Windows
\end{itemize}
-The automated tests currently use TeX Live 2022 and Python 3.8+ on
-Ubuntu 20.04, macOS Big Sur 11 and Windows Server 2022.
-
\section{Typesetting Code}
Sometimes, in addition to having Python code executed and the output written to your document, you also want to show the code itself in your document.
PyLuaTeX does not offer any macros or environments that directly typeset code.