Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

Direc­tory tex-archive/macros/latex/contrib/listings

Listings package
Copyright 1996--2004 Carsten Heinz (the package)
Copyright 1996--2007 individual authors (language drivers)
Copyright 2006--2007 Brooks Moses (continued maintenance)
Released under the LaTeX Project Public License 1.3 or later

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.

Files

Name Size Date Notes
Makefile 965 2007-03-12 05:43:00
README 611 2007-02-28 02:39:00
listings.dtx 629222 2007-03-01 10:24:00
listings.ind 14410 2007-02-28 02:39:00
listings.ins 1131 2007-02-28 02:39:00
listings.pdf 715954 2007-02-28 02:39:00
lstdrvrs.dtx 297664 2007-03-01 10:26:00

DOWNLOAD Down­load the com­plete con­tents of this di­rec­tory in one zip archive (760.6k).

list­ings – Type­set source code list­ings us­ing LaTeX

Type­set pro­grams (pro­gram­ming code) within LaTeX. The source code is read di­rectly by TeX. Key­words, com­ments and strings can be type­set us­ing dif­fer­ent styles (de­fault is bold for key­words, italic for com­ments and no spe­cial style for strings). In­cludes sup­port for hy­per­ref. To use, sim­ply \usep­a­ck­age{list­ings}, iden­tify the lan­guage with \lst­set{lan­guage=Python}, then em­ploy the \be­gin{lstlist­ing} ... \end{lstlist­ing} en­vi­ron­ment or the \lstin­put­list­ing{file­name.py} com­mand. Short (in-line) list­ings are also avail­able, us­ing ei­ther \lstin­line|...| or | ... | (af­ter defin­ing the | to­ken with the \lstMakeShortIn­line com­mand).

Doc­u­men­ta­tion Pack­age Readme
Pack­age doc­u­men­ta­tion
Ver­sion1.4
Li­censeThe LaTeX Project Public Li­cense
Copy­right2006,2007 Brooks Moses
Main­tainerBrooks Moses
Carsten Heinz (in­ac­tive)
Con­tained inTeXLive as list­ings
MiKTeX as list­ings
Topics code list­ing, syn­tax high­light­ing
high­light syn­tax of com­puter code, etc.
See also list­ing
Guest Book Sitemap Contact 2013-04-08 12:53