CTAN Comprehensive TeX Archive Network

CTAN package update: listings

Date: February 28, 2007 7:35:20 AM CET
The package below has been updated at tug.ctan.org and should soon be at your favorite mirror. Thanks, Jim Hefferon Saint Michael's College ....................................................................... The following information was provided by our fellow contributor: Name of contribution: listings Author's name: Brooks Moses Location on CTAN: /macros/latex/contrib/listings Summary description: Typeset source code listings using LaTeX License type: lppl Announcement text:
Typeset programs (programming code) within LaTeX. The source code is read directly by TeX. Keywords, comments and strings can be typeset using different styles. 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.4, is the first major bugfix release in nearly three years, and contains fixes for a number of minor bugs and package conflicts, as well as some new functionality: * Many small improvements to the documentation. * Short inline listings, like so: |i = 1 + 2;|. * A new flexible-column option which only stretches existing spaces. * A new string type with multi-character delimiters. * An option to turn off by-chapter numbering of listing captions. * Better integration with KOMAscript and AMS document classes. * Several new language definitions.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/listings . More information is at http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=listings (if the package is new it may take a day for that information to appear). We are 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

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.10c
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