AZ logo

Package 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. Short (in-line) listings are also available, using either \lstinline|...| or | ... | (after defining the | token with the \lstMakeShortInline command).

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX listings
TeX Live listings

You can also visit listings's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Package Readme
Package documentation
Documentation off CTAN -none known-
Maintainers
Carsten Heinz (no longer active on this package)
Brooks Moses
Version 1.4
License LaTeX Project Public License
Related packages
listing:
Produce formatted program listings.
Keywords
computer code, verbatim text
Computer Science
Characterizations
primary:
Subject-specific typesetting > Computer science
secondary:
Page-focused > Verbatim

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.