CTAN Comprehensive TeX Archive Network

New on CTAN: lstaddons

Date: May 3, 2012 4:03:36 PM CEST
ctan-upload at cl.cam.ac.uk wrote: quoth the daemon: > Name of contribution: lstaddons > Author's name: Martin Scharrer > Package version: lstlinebgrd.dtx- v0.1 > Location on CTAN: macros/latex/contrib/lstaddons/ > Summary description: Add-on packages for listings: autogobble and line > background colours > License type: lppl > > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > This bundle contains a small collections of add-on packages for > the 'listings' package. > These packages patch internal macros to provide additional features > to 'listings'. > > The add-ons are so far: > > > lstlinebgrd > ~~~~~~~~~~~ > Provides 'linebackground' options for 'lstlisting' which > can be used to color the background of each line of the listing. > The use of conditionals which depend on the line number is supported, > which allows zebra-effects etc. > > This package was originally written in response to the question > "Creating a zebra effect using listings" > (http://tex.stackexchange.com/q/18969/2975). > > > lstautogobble > ~~~~~~~~~~~~~ > Provides an 'autogobble=true|false' option for 'listing' which will set the > standard 'gobble' option to the indention of the first line. This allows > people to indent their listings code in the source file without having to > use a suitable value for 'gobble' themselves. > > This package was originally written in response to the question > "How to automatically skip leading white spaces in listings" > (http://tex.stackexchange.com/q/19953/2975) thanks for the upload; i've installed the new package, and made an entry for it in the catalogue repository. > Users may view the package catalogue entry at > http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/lstaddons.html > or they may browse the package directory at > http://www.tex.ac.uk/tex-archive/macros/latex/contrib/lstaddons/ The catalogue entry will have appeared on the web by tomorrow morning. Robin Fairbairns For the CTAN team

lstaddons – Add-on packages for listings: autogobble and line background

The bundle contains a small collection of add-on packages for the listings package. Current packages are:

  • lstlinebgrd: colour the background of some or all lines of a listing; and
  • lstautogobble: set the standard “gobble” option to the indent of the first line of the code.

Packagelstaddons
Version0.2 2024-08-18
Copyright2011–2024 Martin Scharrer
MaintainerMartin Scharrer

Announcements

more

Guest Book Sitemap Contact Contact Author