summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/pyluatex/README.md
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-27 20:36:31 +0000
committerKarl Berry <karl@freefriends.org>2021-07-27 20:36:31 +0000
commitc5b5e3fd195d647f3107171ca73a29b83bf4d7b3 (patch)
tree01eb2e0fef4c2aea7fcd43dab80ee549d89851fb /Master/texmf-dist/doc/lualatex/pyluatex/README.md
parentd94a4be7eef3b68410940ceebbd4bd2401aebbce (diff)
pyluatex (27jul21)
git-svn-id: svn://tug.org/texlive/trunk@60095 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/pyluatex/README.md')
-rw-r--r--Master/texmf-dist/doc/lualatex/pyluatex/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/pyluatex/README.md b/Master/texmf-dist/doc/lualatex/pyluatex/README.md
index a555ec20086..6c8015dce92 100644
--- a/Master/texmf-dist/doc/lualatex/pyluatex/README.md
+++ b/Master/texmf-dist/doc/lualatex/pyluatex/README.md
@@ -7,6 +7,11 @@ LaTeX documents must be compiled with LuaLaTeX for this to work.
## Example
1\. LaTeX document `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}`.
```latex
\documentclass{article}
@@ -31,6 +36,7 @@ $\sqrt{371} = \py{math.sqrt(371)}$
\randint{2}{5}
\end{document}
```
+
2\. Compile using LuaLaTeX (shell escape is required)
```
lualatex -shell-escape example.tex