Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

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

LaTeX bundle 'lstaddons'
~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (c) 2011-2012 by Martin Scharrer <martin@scharrer-online.de>
CTAN: http://www.ctan.org/pkg/lstaddons
Code repository: https://bitbucket.org/martin_scharrer/lstaddons

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)


INSTALLATION
============
Run 'tex lstaddons.ins' to extract all package files.
Compile all .dtx files with pdflatex to produce the package manuals.
Copy the files to the following subdirectories of your TEXMF tree:

  *.sty         => tex/latex/lstaddons/
  *.dtx *.ins   => source/latex/lstaddons/
  *.pdf README  => doc/latex/lstaddons/

Finally update your TeX file list by running 'texhash' or similar tool.

Files

Name Size Date Notes
README 1710 2012-05-03 12:59
lstaddons.ins 262 2012-05-03 12:59
lstautogobble.dtx 10586 2012-05-03 12:59
lstautogobble.pdf 183234 2012-05-03 12:56
lstlinebgrd.dtx 9120 2012-05-03 12:59
lstlinebgrd.pdf 213449 2012-05-03 12:59

Down­load the con­tents of this pack­age in one zip archive (392.4k).

lstad­dons – Add-on pack­ages for list­ings: au­to­gob­ble and line back­ground

The bun­dle con­tains a small col­lec­tion of add-on pack­ages for the list­ings pack­age. Cur­rent pack­ages are:

  • lst­lineb­grd: colour the back­ground of some or all lines of a list­ing; and
  • lstau­to­gob­ble: set the stan­dard “gob­ble” op­tion to the in­dent of the first line of the code.

Pack­age De­tailslstad­dons
Home pagehttps://bit­bucket.org/mar­tin_schar­rer/lstad­dons
Ver­sion0.1
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2011-2012 Martin Schar­rer
Main­tainerMartin Schar­rer
TDS archivelstaddons.tds.zip
Con­tained inTeXlive as lstad­dons
MikTeX as lstad­dons
Topics com­puter code list­ing
Guest Book Sitemap Contact