CTAN Comprehensive TeX Archive Network

CTAN upload – listings 1.3

Date: September 7, 2004 5:56:26 PM CEST
On Tue, 7 Sep 2004, Carsten Heinz submitted an update to his package `listings'. It has been installed in: macros/latex/contrib/listings > Abstract > The listings package is a source code printer for LaTeX. You can > typeset stand alone files as well as listings with an environment > similar to verbatim as well as you can print code snippets using > a command similar to \verb. Many parameters control the output and > if your preferred programming language isn't already supported, > you can make your own definition. > > News > - LPPL 1.3 compliant > - new \output routine for improved compatibility > - new language definitions for Awk (Gnu and Posix), Gnuplot, > Handel-C, ByteCode Java (JVMIS), Plasm, Promella, and RSL; > improved definitions for AspectJ, HTML, and MetaPost > - small add-ons for keywordstyle, texcs, and texcsstyle > - bugfixes For the CTAN Team Rainer Schöpf

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