CTAN Comprehensive TeX Archive Network

CTAN update: listings

Date: February 22, 2024 7:59:10 AM CET
Jobst Hoffmann submitted an update to the listings package. Version: 1.10 2024-02-21 License: lppl1.3c Summary description: Typeset source code listings using LaTeX Announcement text:
Version 1.10: first version of the 1.10 series: * added a tocbasic interface to make the scrhack.sty of Markus Kohm unnecessary * enhanced the documentation (upquote)
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/listings The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/listings/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

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