1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
\ProvidesFile{listings.cfg}%
[2009/08/23 v1.0 listings configuration of listings-ext]
\RequirePackage{xcolor}
\def\lstlanguagefiles{lstlang1.sty,lstlang2.sty,lstlang3.sty}
\lstset{defaultdialect=[ANSI]C,
defaultdialect=[ISO]C++,
defaultdialect=[95]Fortran,
defaultdialect=Java,
defaultdialect=[LaTeX]TeX,
frame=tlb,
resetmargins=false,
}
\lstdefinestyle{colored-code}{
backgroundcolor=\color{yellow!10},%
basicstyle=\footnotesize\ttfamily,%
identifierstyle=\color{black},%
keywordstyle=\color{blue},%
stringstyle=\color{teal},%
commentstyle=\itshape\color{orange},%
}
\lstdefinestyle{bw-code}{
basicstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{n}\selectfont,
% instead of lmtt one should use ul9 (luximono) for boldface characters
keywordstyle=\small\fontfamily{lmtt}\fontseries{b}\fontshape{n}\selectfont,
commentstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{sl}\selectfont,
stringstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{it}\selectfont,
}
|