#

Search | Home | Alpha | Brief | Topical | Hierarchical

listings

Typeset source code listings using LaTeX.

Typeset programs (programming code) within LaTeX. The source code is read directly by TeX. Keywords, comments and strings can be typeset using different styles (default is bold for keywords, italic for comments and no special style for strings). Includes support for hyperref. To use, simply `\usepackage{listings}`, identify the language with `\lstset{language=Python}`, then employ the `\begin{lstlisting} ... \end{lstlisting}` environment or the `\lstinputlisting{filename.py}` command.

See also listing.

The authors are Brooks Moses and Carsten Heinz.

License: lppl Version: 1.3c Catalogued: 2006-12-08

- Visit
  - Visit a nearby CTAN:/macros/latex/contrib/listings. If this fails, try Cambridge.
  - Visit Cambridge:/macros/latex/contrib/listings
- Download
  - Download from a nearby CTAN (automatically identified).
  - Download from Cambridge.
- Documentation
  - Package Readme: README.
  - Package documentation: listings-1.3.pdf.
- Distributions
  - This package is included in TeX Live.
  - This package is included in MikTeX.