diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/listings-ext/listings.cfg')
-rw-r--r-- | Master/texmf-dist/doc/latex/listings-ext/listings.cfg | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings.cfg b/Master/texmf-dist/doc/latex/listings-ext/listings.cfg new file mode 100644 index 00000000000..e7ad820944f --- /dev/null +++ b/Master/texmf-dist/doc/latex/listings-ext/listings.cfg @@ -0,0 +1,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, +} |