Directory macros/luatex/latex/piton
Readme for the package piton
Author: F. Pantigny (fpantigny@wanadoo.fr
).
CTAN page: https://ctan.org/pkg/piton
GitHub page: github.com/fpantigny/piton
License
The LaTeX extension piton
is distributed under the LPPL 1.3 license.
Presentation
The LaTeX package piton
provides a command \piton
and an environment {Piton}
to typeset Python, OCaml, SQL or C++ codes by using the Lua library LPEG. It requires the use of lualatex
. It won't work with xelatex
nor pdflatex
.
Installation
The package piton
is present in the distributions MiKTeX, TeXLive and MacTeX.
For a manual installation:
- put the files
piton.ins
andpiton.dtx
in the same directory; - run
latex piton.ins
in that directory.
The files piton.sty
and piton.lua
will be generated.
These files piton.sty
and piton.lua
are the only files necessary to use the extension piton
. You have to put them in the same directory as your document or (best) in a texmf
tree.
Download the contents of this package in one zip archive (931.8k).
piton – Typeset Python listings with LPEG
This package uses the Lua library LPEG to typeset and highlight informatic listings in several languages (Python, OCaml, SQL and C++).
It requires the use of LuaLaTeX. It won’t work with XeLaTeX, nor pdfLaTeX.
Package | piton |
Version | 2.2a 2023-09-17 |
Licenses | The LaTeX Project Public License 1.3 |
Copyright | 2022–2023 François Pantigny |
Maintainer | François Pantigny |
Contained in | TeX Live as piton MiKTeX as piton |
Topics | Syntax highlight Experimental LaTeX3 Listing LuaTeX |
See also | codehigh |
