% Row margin 1.5 rows ---------------------------------------------------------- \onehalfspacing % Page margins ----------------------------------------------------------------- \setlength{\topskip}{\ht\strutbox} % Avoid warnings of geography \geometry{paper=a4paper,left=35mm,right=35mm,top=30mm} % Header and footer ------------------------------------------------------------ \pagestyle{scrheadings} % Header and footer also on first chapter page --------------------------------- \renewcommand*{\chapterpagestyle}{scrheadings} % Schriftform der Kopfzeile \renewcommand{\headfont}{\normalfont} % Header ----------------------------------------------------------------------- \ihead{\normalsize{\textsc{\fsTitle}}\\ \textit{\headmark}} \chead{} \ohead{\includegraphics[scale=0.08]{\logo}} \setlength{\headheight}{21mm} % Header height \setheadwidth[0pt]{textwithmarginpar} \setheadsepline[text]{0.4pt} % Separator line above header --------------------- % Footer \ifoot{}%\title} \cfoot{} \ofoot{\pagemark} % More space after dot \frenchspacing % Avoid orphans and widoww \clubpenalty = 10000 \widowpenalty = 10000 \displaywidowpenalty = 10000 % Source code formatting \lstset{ float=htbp, basicstyle=\ttfamily\color{black}\small\smaller, identifierstyle=\color{colIdentifier}, keywordstyle=\color{colKeys}, stringstyle=\color{colString}, commentstyle=\color{colComments}, columns=flexible, tabsize=2, xleftmargin=3.5pt, frame=single, rulecolor=\color{black}, extendedchars=true, showspaces=false, showstringspaces=false, numbers=left, numberstyle=\tiny, numbersep=5pt, breaklines=true, breakautoindent=true } \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{light-gray}{\parbox{\linewidth-2.5pt}{#1#2#3}}} \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, belowskip=5pt, position=t, aboveskip=10pt} % Progressice numbering of foot notes \counterwithout{footnote}{chapter}