Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%----------------------------------------
% 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
}