1 \documentclass[twoside,a4paper,titlepage]{book}
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
21 %\patchcmd{\chapter}{plain}{headings}{}{}
22 \patchcmd{\chapter}{plain}{headings}{}{}
24 \usetikzlibrary{arrows,shadows}
30 pdftitle={Task Oriented Programming and the Internet of Things},
31 pdfauthor={Mart Lubbers},
32 pdfsubject={Task Oriented Programming and the Internet of Things},
33 pdfcreator={Mart Lubbers},
34 pdfproducer={Mart Lubbers},
35 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT},
39 \pdfstringdefDisableCommands{%
50 \lstdefinelanguage{Clean}{%
51 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
52 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
53 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::},
56 morecomment=[n]{/*}{*/},
65 % Basic Clean constructs
67 {A.}{{$\forall\;\,$}}1
68 {E.}{{$\exists\;\,$}}1
75 % {->}{{$\rightarrow$}}2
76 % {<-}{{$\leftarrow$}}1
85 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
87 % {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
89 % Basic iTask constructs
90 % {>||>}{{$\triangleright\triangleright$}}2
91 % {>>=}{{\texttt{>>=}}}3
92 % {>>|}{{\texttt{>>|}}}3
93 % {?>>}{{\texttt{?>>}}}3
94 % {!>>}{{\texttt{!>>}}}3
95 % {-||-}{{\texttt{-||-}}}4
96 % {.||.}{{\texttt{.||.}}}4
97 % {.&&.}{{\texttt{.\&\&.}}}4
100 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
103 breakatwhitespace=false,
107 basicstyle=\ttfamily\fontseries{l}\footnotesize,
108 commentstyle=\itshape\fontseries{m},
109 keywordstyle=\bfseries\fontseries{b},
110 stringstyle=\ttfamily,
112 showstringspaces=false,
119 \setcounter{secnumdepth}{4}
121 \title{Task Oriented Programming and the Internet of Things}
122 \author{Mart Lubbers BSc.\\
123 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}