Typeset source code listings using LaTeX.
The package enable the user to 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).
See also listing.
The authors are Jobst Hoffmann, Brooks Moses and Carsten Heinz. The package is Copyright © 2006,2007,2013 Brooks Moses, Jobst Hoffmann.
License: lppl Version: 1.5b Catalogued: 2013-08-29
Visit
Visit Dante:/macros/latex/contrib/listings
Download
Documentation
Package documentation: listings.pdf.
Distributions
This package is included in MikTeX.