default source listing

fontsize for default listing changed
This commit is contained in:
Thomas Klaehn 2017-01-05 17:29:23 +01:00
parent 00256c439d
commit 518ecab91d
2 changed files with 11 additions and 1 deletions

View File

@ -42,6 +42,7 @@ citecolor = black]{hyperref}%
\tableofcontents \tableofcontents
\input{config/headfoot.tex} \input{config/headfoot.tex}
\newpage \newpage
\lstsetdefault
\input{content.tex} \input{content.tex}
\lstsetdefault \lstsetdefault
\end{document} \end{document}

View File

@ -4,10 +4,13 @@
\newcommand{\lstsetdefault} \newcommand{\lstsetdefault}
{\lstset {\lstset
{ {
aboveskip=\baselineskip,
belowskip=\baselineskip,
language=bash, language=bash,
tabsize=4, tabsize=4,
frame=single, frame=single,
basicstyle=\ttfamily\small, %basicstyle=\ttfamily\small,
basicstyle=\ttfamily\scriptsize,
commentstyle=\color{black}, commentstyle=\color{black},
keywordstyle=\color{black} keywordstyle=\color{black}
} }
@ -16,6 +19,8 @@ keywordstyle=\color{black}
\newcommand{\lstsetc} \newcommand{\lstsetc}
{\lstset {\lstset
{ {
aboveskip=\baselineskip,
belowskip=\baselineskip,
language=[ANSI]C, language=[ANSI]C,
numbers=left, numbers=left,
tabsize=4, tabsize=4,
@ -29,6 +34,8 @@ keywordstyle=\color{blue}\textbf
\newcommand{\lstsetmake} \newcommand{\lstsetmake}
{\lstset {\lstset
{ {
aboveskip=\baselineskip,
belowskip=\baselineskip,
language=make, language=make,
numbers=left, numbers=left,
tabsize=4, tabsize=4,
@ -42,6 +49,8 @@ keywordstyle=\color{blue}\textbf
\newcommand{\lstsetbash} \newcommand{\lstsetbash}
{\lstset {\lstset
{ {
aboveskip=\baselineskip,
belowskip=\baselineskip,
language=bash, language=bash,
tabsize=4, tabsize=4,
frame=single, frame=single,