CTAN Comprehensive TeX Archive Network

CTAN update: listings

Date: March 7, 2014 11:43:49 AM CET
the daemon reported: > Name of contribution: listings > Author's name: Jobst Hoffmann > Package version: 1.5c > Location on CTAN: listings/ > Summary description: Typeset source code listings using LATEX > License type: lppl > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > another minor maintenance release with two features: > > * corrected some errors (numbering of code lines, > allowing \lstinline{} in tabular environments, ...) > > * rewrote Fortran support (splitted morekeywords into > groups), added fortran preferences file > > * added hansl/gretl support > > ---------------------------------------------------------------------- > > Announcement required: Yes > Users may view the package catalogue entry at > http://www.ctan.org/pkg/listings > or they may browse the package directory at > http://mirror.ctan.org/listings/ thanks for the upload; i've installed the new version, and updated the catalogue repository. Robin Fairbairns For the CTAN team

listings – Typeset source code listings using

The package enables the user to typeset programs (programming code) within ; the source code is read directly by —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).

Version1.10 2024-02-21
Copyright1996–2004 Carsten Heinz
2006–2007 Brooks Moses
2013–2024 Jobst Hoffmann
MaintainerJobst Hoffmann
Carsten Heinz (inactive)
Brooks Moses (inactive)



Guest Book Sitemap Contact Contact Author