CTAN Comprehensive TeX Archive Network

CTAN update: listings

Date: July 12, 2013 12:33:04 PM CEST
the daemon tells us: > Name of contribution: listings > Author's name: Jobst Hoffmann > Package version: 1.5 > Location on CTAN: macros/latex/contrib/listings/ > Summary description: Typeset programs within LaTeX. The source code > is read directly by TeX. Keywords, comments, strings and > more are distinguished. > License type: lppl > > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > 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. Six > years later Jobst Hoffmann took over the maintainership of the listings > package. > > This release, version 1.5, is a minor maintenance release and contains > updates to a programming language and support for a new program as well: > > * Fortran is updated to version Fortran 2003 and Fortran 2008 > > * Lua is a newly introduced language, the supported versions are Lua 5.0, > 5.1, and 5.2. > > ---------------------------------------------------------------------- > > 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/macros/latex/contrib/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).

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

Announcements

more

Guest Book Sitemap Contact Contact Author