diff --git a/Bachelorarbeit.tex b/Bachelorarbeit.tex index b81aea25f402e5443eb9e80a6b79df70fb489b7b..8918fb63ee92f321597c8e5ee4ca16a7bf2300eb 100644 --- a/Bachelorarbeit.tex +++ b/Bachelorarbeit.tex @@ -59,4 +59,5 @@ \printbibliography \listoffigures \listoftables + \lstlistoflistings \end{document} diff --git a/src/HsH-report.cls b/src/HsH-report.cls index c82b4abd83f5032025987858daefe8cfe4c55ed2..86c56d3bc2f853603afb94a0b9dea9ced7ae0c87 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -103,6 +103,7 @@ \RequirePackage{csquotes} \MakeOuterQuote{"} \if@todos + \PassOptionsToPackage{svgnames}{xcolor} \PassOptionsToPackage{ textwidth=4.5cm, textsize=small, diff --git a/src/config.tex b/src/config.tex index 1db5614e6e8f77a3a5402edaf526b6e86a96955e..b18be3f7ec9c060900a533f2759fd00a08a403db 100644 --- a/src/config.tex +++ b/src/config.tex @@ -51,6 +51,23 @@ literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, escapeinside={(*@}{@*)}, } + + % listings styling: + \renewcommand{\lstlistingname}{Code} % listings name + \renewcommand{\lstlistlistingname}{Codeverzeichniss} % list of listings + \lstdefinestyle{example}{ + backgroundcolor=\color{lightgray!20!white}, + breakatwhitespace=true, + breaklines=true, + captionpos=t, + float=h!tbp, + framexleftmargin=2px, + framextopmargin=5px, + framexbottommargin=5px, + numbers=left, + numberstyle=\scriptsize\ttfamily\color{gray}, + numbersep=5pt, + } }{} \@ifpackageloaded{enumitem}{ \RequirePackage{amssymb}