summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/pyluatex/example/readme-custom-env.tex
blob: 115299264eecf2f94793fff0156c0272b07ffa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%% 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
%% 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.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.

\documentclass{article}

\usepackage{pyluatex}

\newenvironment{custompy}
{\PyLTVerbatimEnv\begin{python}}
{\end{python}}

\begin{document}

\begin{custompy}
print('Hello PyLuaTeX')
\end{custompy}

\end{document}