87fd6a03383ec0d95d23530afae2b7bb81222c56
[msc-thesis1617.git] / thesis.pre
1 \documentclass[a4paper]{book}
2
3 \usepackage[british]{babel}
4
5 \usepackage{geometry} % Papersize
6 \usepackage[titletoc]{appendix} % Appendices
7 \usepackage{rutitlepage/rutitlepage} % Titlepage
8 \usepackage{hyperref} % Hyperlinks
9 \usepackage{booktabs} % Better looking tables
10 \usepackage{todonotes} % Todo's
11 \usepackage{caption} % Captions
12 \usepackage{subcaption} % Subcaptions
13 \usepackage{lipsum} % dummy text
14 \usepackage{listings} % source code
15 \usepackage{float} % floating images
16 \usepackage{lmodern} % Better teletype fonts
17 \usepackage{textcomp} % Nice listings quotes
18
19 \graphicspath{{img/}}
20
21 \urlstyle{same}
22 \hypersetup{%
23 pdftitle={iTasks and the Internet of Things},
24 pdfauthor={Mart Lubbers},
25 pdfsubject={iTasks and the Internet of Things},
26 pdfcreator={Mart Lubbers},
27 pdfproducer={Mart Lubbers},
28 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT},
29 hidelinks=true
30 }
31
32 \pdfstringdefDisableCommands{%
33 \def\acrlong#1{}%
34 \def\acrshort#1{}%
35 \def\acrfull#1{}%
36 \def\gls#1{}%
37 \def\glspl#1{}%
38 \def\Gls#1{}%
39 \def\Glspl#1{}%
40 }
41
42 \lstdefinelanguage{Clean}{%
43 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
44 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
45 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::},
46 sensitive=true,
47 morecomment=[l]{//},
48 morecomment=[n]{/*}{*/},
49 morestring=[b]",
50 morestring=[b]',
51 emptylines=1,
52 basewidth=0.45em,
53 columns=[c]fixed,
54 texcl=true,
55 upquote=true,
56 literate=%
57 % Basic Clean constructs
58 {\\}{{$\lambda\:$}}1
59 {A.}{{$\forall\;\,$}}1
60 {E.}{{$\exists\;\,$}}1
61 % {>}{{$>$}}1
62 % {<}{{$<$}}1
63 % {<=}{{$\leq$}}1
64 % {>=}{{$\geq$}}1
65 % {<>}{{$\neq$}}1
66 % {->}{{$\rightarrow$}}2
67 % {<-}{{$\leftarrow$}}1
68 % {=}{{$=$}}1
69 % {~}{{$\sim$}}1
70 % {\#}{{$\sharp$}}1
71 % {\{|}{{$\{\!|\!$}}1
72 % {|\}}{{$\!|\!\}$}}1
73 % {:=}{{$:=$}}2
74 % {==}{{$==$}}2
75 % {++}{{$+\!\!+$}}2
76 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
77 % {:==}{{$:==$}}3
78 % {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
79 %
80 % Basic iTask constructs
81 % {>||>}{{$\triangleright\triangleright$}}2
82 % {>>=}{{\texttt{>>=}}}3
83 % {>>|}{{\texttt{>>|}}}3
84 % {?>>}{{\texttt{?>>}}}3
85 % {!>>}{{\texttt{!>>}}}3
86 % {-||-}{{\texttt{-||-}}}4
87 % {.||.}{{\texttt{.||.}}}4
88 % {.&&.}{{\texttt{.\&\&.}}}4
89 }
90
91 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
92
93 \lstset{%
94 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
95 breaklines=true, % sets automatic line breaking
96 captionpos=b, % sets the caption-position to bottom
97 keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
98 basicstyle=\ttfamily\fontseries{l}\footnotesize,% the size of the fonts that are used for the code
99 commentstyle=\itshape\fontseries{m}, % comment style
100 keywordstyle=\bfseries\fontseries{b}, % keyword style
101 stringstyle=\ttfamily, % string literal style
102 showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
103 showstringspaces=false, % underline spaces within strings only
104 showtabs=false, % show tabs within strings adding particular underscores
105 tabsize=4, % sets default tabsize to 2 spaces
106 frame=L
107 }
108
109 \title{iTasks and the Internet of Things}
110 \author{Mart Lubbers BSc.\\
111 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}
112 \date{\today}