1 \documentclass[a4paper]{book}
3 \usepackage[british]{babel}
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
21 pdftitle={iTasks and the Internet of Things},
22 pdfauthor={Mart Lubbers},
23 pdfsubject={iTasks and the Internet of Things},
24 pdfcreator={Mart Lubbers},
25 pdfproducer={Mart Lubbers},
26 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT},
30 \pdfstringdefDisableCommands{%
40 \lstdefinelanguage{Clean}{%
41 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
42 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
43 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive},
46 morecomment=[n]{/*}{*/},
54 % Basic Clean constructs
56 {A.}{{$\forall\;\,$}}1
57 {E.}{{$\exists\;\,$}}1
63 % {->}{{$\rightarrow$}}2
64 % {<-}{{$\leftarrow$}}1
73 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
75 {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
77 % Basic iTask constructs
78 {>||>}{{$\triangleright\triangleright$}}2
79 {>>=}{{\texttt{>>=}}}3
80 {>>|}{{\texttt{>>|}}}3
81 {?>>}{{\texttt{?>>}}}3
82 {!>>}{{\texttt{!>>}}}3
83 {-||-}{{\texttt{-||-}}}4
84 {.||.}{{\texttt{.||.}}}4
85 {.&&.}{{\texttt{.\&\&.}}}4
88 \newcommand{\CI}[1]{\lstinline[language=Clean]|#1|}
91 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
92 breaklines=true, % sets automatic line breaking
93 captionpos=b, % sets the caption-position to bottom
94 keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
95 basicstyle=\ttfamily\footnotesize, % the size of the fonts that are used for the code
96 commentstyle=\itshape, % comment style
97 keywordstyle=\bfseries, % keyword style
98 stringstyle=\ttfamily, % string literal style
99 showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
100 showstringspaces=false, % underline spaces within strings only
101 showtabs=false, % show tabs within strings adding particular underscores
102 tabsize=4, % sets default tabsize to 2 spaces
106 \title{iTasks and the Internet of Things}
107 \author{Mart Lubbers BSc.\\
108 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}