CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/piton


Readme for the package piton

Author: F. Pantigny (fpantigny@wanadoo.fr).

CTAN page: https://ctan.org/pkg/piton


The extension piton is distributed under the LPPL 1.3 license.


The package piton provides a command \piton and an environment {Piton} to typeset Python codes by using the Lua library LPEG. It requires the use of lualatex. It won't work with xelatex nor pdflatex.


The package piton is present in the distributions MiK, Live and Mac.

For a manual installation:

  • put the files piton.ins and piton.dtx in the same directory;
  • run latex piton.ins in that directory.

The file piton.sty will be generated.

The file piton.sty is the only file necessary to use the extension piton. You have to put it in the same directory as your document or (best) in a texmf tree.

Download the contents of this package in one zip archive (598.8k).

piton – Typeset Python listings with LPEG

This package uses the Lua library LPEG to typeset and highlight Python listings.

Version0.99 2022-11-29
LicensesThe Project Public License 1.3
Copyright2022 Fran├žois Pantigny
MaintainerFran├žois Pantigny
Contained inTeX Live as piton
MiKTeX as piton
TopicsSyntax highlight
See alsocodehigh
Guest Book Sitemap Contact Contact Author