CTAN package update: listings
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. NOTE: The original author of this package, Carsten Heinz, became inactive sometime in late 2004. Hendri Adriaens took over maintenance of the package in accordance with the LPPL's procedure for abandoned packages. He then passed the maintainership of the package to Brooks Moses, who had volunteered for the position while this procedure was going through. This release, version 1.3c, is not yet the long awaited bugfix release, as the new maintainer (Brooks Moses) has neither a list of reported bugs nor a good test suite to use to check to make sure that the fixes don't break other things. Thus, he asks that users email him reports of any outstanding bugs that they are aware of, as well as examples of "interesting" uses of listings that should go into the test suite. Thanks!
See this package at http://tug.ctan.org/tex-archive/macros/latex/contrib/listings/ . You may get a better network connection by using a CTAN mirror near to you; see http://tug.ctan.org/tex-archive/README.mirrors . Our service is supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
listings – Typeset source code listings using LaTeX
The package enables the user to typeset programs (programming code) within LaTeX; the source code is read directly by TeX—no front-end processor is needed. Keywords, comments and strings can be typeset using different styles (default is bold for keywords, italic for comments and no special style for strings). Support for hyperref is provided.
To use, \usepackage{listings}, identify the language of the object to typeset, using a construct like: \lstset{language=Python}, then use environment lstlisting for inline code. External files may be formatted using \lstinputlisting to process a given file in the form appropriate for the current language. Short (in-line) listings are also available, using either \lstinline|...| or |...| (after defining the | token with the \lstMakeShortInline command).
Package | listings |
Version | 1.10c |
Copyright | 1996–2004 Carsten Heinz 2006–2007 Brooks Moses 2013–2024 Jobst Hoffmann |
Maintainer | Jobst Hoffmann Carsten Heinz (inactive) Brooks Moses (inactive) |