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
16 \usepackage{lmodern} % Better teletype fonts
17 \usepackage{textcomp} % Nice listings quotes
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},
32 \pdfstringdefDisableCommands{%
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,::},
48 morecomment=[n]{/*}{*/},
57 % Basic Clean constructs
59 {A.}{{$\forall\;\,$}}1
60 {E.}{{$\exists\;\,$}}1
66 % {->}{{$\rightarrow$}}2
67 % {<-}{{$\leftarrow$}}1
76 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
78 % {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
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
91 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
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
109 \title{iTasks and the Internet of Things}
110 \author{Mart Lubbers BSc.\\
111 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}