%---------------------------------------- % pagesize and layout %---------------------------------------- \usepackage{geometry} \geometry{ a4paper, margin=12mm, top=40mm, bottom=40mm, headsep=10pt, headheight=123pt } \parskip=.55cm %---------------------------------------- % University Crest %---------------------------------------- \usepackage{ifthen,graphicx} \usepackage{fancyhdr} \rhead{\includegraphics[width=37mm]{images/strath_main.jpg}} \renewcommand{\headrulewidth}{0pt} \pagestyle{fancy} %---------------------------------------- % Font: Arial % helvet is similar to Arial and is part of TexLive. %---------------------------------------- \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} %---------------------------------------- % Generate hyperlinks in the PDF document. %---------------------------------------- \usepackage{hyperref} \hypersetup{ colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, pdflang={en-GB} } %---------------------------------------- % Source code formatting %---------------------------------------- \usepackage[dvipsnames,table,xcdraw]{xcolor} \definecolor{codebkgnd}{RGB}{230,230,200} \usepackage{listings} \lstset{xleftmargin = 2em} \lstset{framexleftmargin = 2em} \lstset{ basicstyle=\small\ttfamily, numbers=left, numberstyle=\small\color{blue}, stepnumber=1, numbersep=5pt, backgroundcolor=\color{codebkgnd}, showspaces=false, % do not show spaces adding particular underscores showstringspaces=false, % do not underline spaces within strings showtabs=false, % do not show tabs within strings adding particular underscores rulecolor=\color{black}, tabsize=4, % sets default tabsize to 4 spaces captionpos=t, % sets the caption-position to top breaklines=true, % sets automatic line breaking breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace keywordstyle=\color{Sepia}, % keyword style commentstyle=\color{MidnightBlue}, % comment style stringstyle=\color{OrangeRed} % string literal style }