Comprehensive TeX Archive Network

CTAN up­date: list­ings

Date: Septem­ber 7, 2014 3:29:51 PM CEST
Jobst Hoff­mann sub­mit­ted an up­date to the list­ings pack­age. Ver­sion num­ber: 1.5e Li­cense type: lp­pl1.3 Sum­mary de­scrip­tion: Type­set source code list­ings us­ing LaTeX. An­nounce­ment text:
Ver­sion 1.5e: one more mi­nor main­te­nance re­lease with some cor­rec­tions and sev­eral new fea­tures: * added miss­ing key­words for shell pro­grams * added ad­di­tional key­words for C++11, based on ISO C++ * added key­words for Scala
This pack­age is lo­cated at http://mir­ror.ctan.org/macros/la­tex/con­trib/list­ings More in­for­ma­tion is at http://www.ctan.org/pkg/list­ings We are sup­ported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/user­groups.html .
Thanks for the up­load. For the CTAN Team Man­fred Lotz

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).

Main­tainerBrooks Moses (in­ac­tive)
Jobst Hoff­mann
Carsten Heinz (in­ac­tive)



Guest Book Sitemap Contact Contact Author