Announcements for listings
- 2024-09-24 CTAN update: listings
- 2024-03-13 CTAN update: listings
- 2024-02-22 CTAN update: listings
- 2023-02-28 CTAN update: listings
- 2020-03-26 CTAN Update: listings
- 2019-09-12 CTAN Update: listings
- 2019-02-28 CTAN update: listings
- 2018-09-04 CTAN update: listings
- 2015-06-05 CTAN update: listings
- 2014-09-07 CTAN update: listings
- 2014-03-07 CTAN update: listings
- 2013-09-03 ctan update: listings
- 2013-08-06 CTAN Update: listings
- 2013-07-12 CTAN update: listings
- 2007-02-28 CTAN package update: listings
- 2006-05-10 CTAN package update: listings
- 2004-09-07 CTAN upload -- listings 1.3
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) |
Atom Atom 1.0 feed with announcements for package listings.
RSS RSS 2.0 feed with announcements for package listings.