CTAN Comprehensive TeX Archive Network

CTAN up­date: list­ings

Date: July 12, 2013 12:33:04 PM CEST
the dae­mon tells us: > Name of con­tri­bu­tion: list­ings > Author's name: Jobst Hoff­mann > Pack­age ver­sion: 1.5 > Lo­ca­tion on CTAN: macros/la­tex/con­trib/list­ings/ > Sum­mary de­scrip­tion: Type­set pro­grams within LaTeX. The source code > is read di­rectly by TeX. Key­words, com­ments, strings and > more are dis­tin­guished. > Li­cense type: lppl > > > An­nounce­ment text given by the pack­age's con­trib­u­tor: > ---------------------------------------------------------------------- > 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. > > NOTE: The orig­i­nal au­thor of this pack­age, Carsten Heinz, be­came in­ac­tive > some­time in late 2004. Hen­dri Adri­aens took over main­te­nance of the > pack­age in ac­cor­dance with the LPPL's pro­ce­dure for aban­doned pack­age's. He > then passed the main­tain­er­ship of the pack­age to Brooks Moses, who had > vol­un­teered for the po­si­tion while this pro­ce­dure was go­ing through. Six > years later Jobst Hoff­mann took over the main­tain­er­ship of the list­ings > pack­age. > > This re­lease, ver­sion 1.5, is a mi­nor main­te­nance re­lease and con­tains > up­dates to a pro­gram­ming lan­guage and sup­port for a new pro­gram as well: > > * For­tran is up­dated to ver­sion For­tran 2003 and For­tran 2008 > > * Lua is a newly in­tro­duced lan­guage, the sup­ported ver­sions are Lua 5.0, > 5.1, and 5.2. > > ---------------------------------------------------------------------- > > An­nounce­ment re­quired: Yes > > Users may view the pack­age cat­a­logue en­try at > http://www.ctan.org/pkg/list­ings > or they may browse the pack­age di­rec­tory at > http://mir­ror.ctan.org/macros/la­tex/con­trib/list­ings/ thanks for the up­load; i've in­stalled the new ver­sion, and up­dated the cat­a­logue repos­i­tory. Robin Fair­bairns For the CTAN team

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

The pack­age en­ables the user to type­set pro­grams (pro­gram­ming code) within ; the source code is read di­rectly by —no front-end pro­ces­sor is needed. 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). Sup­port for hy­per­ref is pro­vided.

To use, \usep­a­ck­age{list­ings}, iden­tify the lan­guage of the ob­ject to type­set, us­ing a con­struct like: \lst­set{lan­guage=Python}, then use en­vi­ron­ment lstlist­ing for in­line code. Ex­ter­nal files may be for­mat­ted us­ing \lstin­put­list­ing to pro­cess a given file in the form ap­pro­pri­ate for the cur­rent lan­guage. 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).

Pack­agelist­ings
Ver­sion1.7
Copy­right2006, 2007, 2013 Brooks Moses, Jobst Hoff­mann
Main­tainerJobst Hoff­mann
Carsten Heinz (in­ac­tive)
Brooks Moses (in­ac­tive)

An­nounce­ments

more

Guest Book Sitemap Contact Contact Author