fix mangled page numbers
[msc-thesis1617.git] / thesis.pre
1 \documentclass[twoside,a4paper,titlepage]{book}
2
3
4 \usepackage{geometry} % Papersize
5 \usepackage[british]{babel} % Internationalization
6 \usepackage[titletoc]{appendix} % Appendices
7 \usepackage{hyperref} % Hyperlinks
8 \usepackage{booktabs} % Better looking tables
9 \usepackage{caption} % Captions
10 \usepackage{subcaption} % Subcaptions
11 \usepackage{listings} % source code
12 \usepackage{float} % floating images
13 \usepackage{lmodern} % Better teletype fonts
14 \usepackage{textcomp} % Nice listings quotes
15 \usepackage{pgf-umlsd} % Connection diagrams
16 \usepackage{graphicx} % Graphics
17 \usepackage{epstopdf} % Eps graphics
18 \usepackage{todonotes} % Todo notes
19 \usepackage{etoolbox} % Todo notes
20
21 \patchcmd{\chapter}{plain}{empty}{}{}
22
23 \usetikzlibrary{arrows,shadows}
24
25 \graphicspath{{img/}}
26
27 \urlstyle{tt}
28 \hypersetup{%
29 pdftitle={Task Oriented Programming and the Internet of Things},
30 pdfauthor={Mart Lubbers},
31 pdfsubject={Task Oriented Programming and the Internet of Things},
32 pdfcreator={Mart Lubbers},
33 pdfproducer={Mart Lubbers},
34 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT},
35 hidelinks=true
36 }
37
38 \pdfstringdefDisableCommands{%
39 \def\acrlong#1{}%
40 \def\acrlongpl#1{}%
41 \def\acrshort#1{}%
42 \def\acrfull#1{}%
43 \def\gls#1{}%
44 \def\glspl#1{}%
45 \def\Gls#1{}%
46 \def\Glspl#1{}%
47 }
48
49 \lstdefinelanguage{Clean}{%
50 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
51 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
52 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::},
53 sensitive=true,
54 morecomment=[l]{//},
55 morecomment=[n]{/*}{*/},
56 morestring=[b]",
57 morestring=[b]',
58 emptylines=1,
59 basewidth=0.45em,
60 columns=[c]fixed,
61 texcl=true,
62 upquote=true,
63 literate=%
64 % Basic Clean constructs
65 {\\}{{$\lambda\:$}}1
66 {A.}{{$\forall\;\,$}}1
67 {E.}{{$\exists\;\,$}}1
68 {*}{{$^*$}}1
69 % {>}{{$>$}}1
70 % {<}{{$<$}}1
71 % {<=}{{$\leq$}}1
72 % {>=}{{$\geq$}}1
73 % {<>}{{$\neq$}}1
74 % {->}{{$\rightarrow$}}2
75 % {<-}{{$\leftarrow$}}1
76 % {=}{{$=$}}1
77 % {~}{{$\sim$}}1
78 % {\#}{{$\sharp$}}1
79 % {\{|}{{$\{\!|\!$}}1
80 % {|\}}{{$\!|\!\}$}}1
81 % {:=}{{$:=$}}2
82 % {==}{{$==$}}2
83 % {++}{{$+\!\!+$}}2
84 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
85 % {:==}{{$:==$}}3
86 % {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
87 %
88 % Basic iTask constructs
89 % {>||>}{{$\triangleright\triangleright$}}2
90 % {>>=}{{\texttt{>>=}}}3
91 % {>>|}{{\texttt{>>|}}}3
92 % {?>>}{{\texttt{?>>}}}3
93 % {!>>}{{\texttt{!>>}}}3
94 % {-||-}{{\texttt{-||-}}}4
95 % {.||.}{{\texttt{.||.}}}4
96 % {.&&.}{{\texttt{.\&\&.}}}4
97 }
98
99 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
100
101 \lstset{%
102 breakatwhitespace=false,
103 breaklines=true,
104 captionpos=b,
105 keepspaces=true,
106 basicstyle=\ttfamily\fontseries{l}\footnotesize,
107 commentstyle=\itshape\fontseries{m},
108 keywordstyle=\bfseries\fontseries{b},
109 stringstyle=\ttfamily,
110 showspaces=false,
111 showstringspaces=false,
112 showtabs=false,
113 tabsize=4,
114 frame=L,
115 language=Clean
116 }
117
118 \title{Task Oriented Programming and the Internet of Things}
119 \author{Mart Lubbers BSc.\\
120 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}
121 \date{\today}