| 1 |
LaTeX bundle 'lstaddons' |
| 2 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 3 |
Copyright (c) 2011-2022 by Martin Scharrer <[email protected]> |
| 4 |
CTAN: http://www.ctan.org/pkg/lstaddons |
| 5 |
Code repository: https://github.com/MartinScharrer/lstaddons/ |
| 6 |
|
| 7 |
This bundle contains a small collections of add-on packages for |
| 8 |
the 'listings' package. |
| 9 |
These packages patch internal macros to provide additional features |
| 10 |
to 'listings'. |
| 11 |
|
| 12 |
The add-ons are so far: |
| 13 |
|
| 14 |
|
| 15 |
lstlinebgrd |
| 16 |
~~~~~~~~~~~ |
| 17 |
Provides 'linebackground' options for 'lstlisting' which |
| 18 |
can be used to color the background of each line of the listing. |
| 19 |
The use of conditionals which depend on the line number is supported, |
| 20 |
which allows zebra-effects etc. |
| 21 |
|
| 22 |
This package was originally written in response to the question |
| 23 |
"Creating a zebra effect using listings" |
| 24 |
(http://tex.stackexchange.com/q/18969/2975). |
| 25 |
|
| 26 |
|
| 27 |
lstautogobble |
| 28 |
~~~~~~~~~~~~~ |
| 29 |
Provides an 'autogobble=true|false' option for 'listing' which will set the |
| 30 |
standard 'gobble' option to the indention of the first line. This allows |
| 31 |
people to indent their listings code in the source file without having to |
| 32 |
use a suitable value for 'gobble' themselves. |
| 33 |
|
| 34 |
This package was originally written in response to the question |
| 35 |
"How to automatically skip leading white spaces in listings" |
| 36 |
(http://tex.stackexchange.com/q/19953/2975) |
| 37 |
|
| 38 |
|
| 39 |
INSTALLATION |
| 40 |
============ |
| 41 |
Run 'tex lstaddons.ins' to extract all package files. |
| 42 |
Compile all .dtx files with pdflatex to produce the package manuals. |
| 43 |
Copy the files to the following subdirectories of your TEXMF tree: |
| 44 |
|
| 45 |
*.sty => tex/latex/lstaddons/ |
| 46 |
*.dtx *.ins => source/latex/lstaddons/ |
| 47 |
*.pdf README => doc/latex/lstaddons/ |
| 48 |
|
| 49 |
Finally update your TeX file list by running 'texhash' or similar tool. |
| 50 |
|