Debian Codegraph @

texmf-dist/doc/latex/skb/user-guide/repository/manual/listing.tex

raw
1 \opt{text}{\skbheading{Listings Styles and Support}}
2
3 The \skbacft{A3DS:SKB} comes with a few predefined styles for the listing package.
4 Most of them use type writer font in scriptsize, arrange a grey
5 box around the listing and set the keywords to Blue4.
6 \begin{skbnotelist}
7 \item generic -- for any generic listing without specifying a language and no line numbers.
8 \item genericLN -- same as generic, just with line number in the left side, which means allowing extra space left to the listing box.
9 \item gentab -- almost the same as generic, but without definitions for frame and numbers, which seem to collide with some table environments.
10 \item genericLNspecial -- same as genericLN, just with a lighter grey for the box.
11 \item beamer-example -- style designed for examples in beamer frames.
12 \item beamer-exampleLN -- same as beamer-example, just with line numbers on the left, which means allowing extra space left to the listing box.
13 \item javaCode -- generic style plus lanugage Java.
14 \end{skbnotelist}
15
16 \DescribeMacro{\lstdefinestyle}
17 There is also one macro supported, which sets the listing style back to normal, i.e. after changing it in the text. Some macros
18 in the \skbacft{A3DS:SKB} make use of this. All that \cmd{\lstdefinestyle} does is setting the basic style back to type writer font.