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{etoolbox} % Patch chapter command
20 \patchcmd{\chapter}{plain}{headings}{}{}
22 \usetikzlibrary{arrows,shadows}
28 pdftitle={Task Oriented Programming and the Internet of Things},
29 pdfauthor={Mart Lubbers},
30 pdfsubject={Task Oriented Programming and the Internet of Things},
31 pdfcreator={Mart Lubbers},
32 pdfproducer={Mart Lubbers},
33 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT},
37 \pdfstringdefDisableCommands{%
48 \lstdefinelanguage{Clean}{%
49 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
50 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
51 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::},
54 morecomment=[n]{/*}{*/},
63 % Basic Clean constructs
65 {A.}{{$\forall\;\,$}}1
66 {E.}{{$\exists\;\,$}}1
73 % {->}{{$\rightarrow$}}2
74 % {<-}{{$\leftarrow$}}1
83 % {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2
85 % {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3
87 % Basic iTask constructs
88 % {>||>}{{$\triangleright\triangleright$}}2
89 % {>>=}{{\texttt{>>=}}}3
90 % {>>|}{{\texttt{>>|}}}3
91 % {?>>}{{\texttt{?>>}}}3
92 % {!>>}{{\texttt{!>>}}}3
93 % {-||-}{{\texttt{-||-}}}4
94 % {.||.}{{\texttt{.||.}}}4
95 % {.&&.}{{\texttt{.\&\&.}}}4
98 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
101 breakatwhitespace=false,
105 basicstyle=\ttfamily\fontseries{l}\footnotesize,
106 commentstyle=\itshape\fontseries{m},
107 keywordstyle=\bfseries\fontseries{b},
108 stringstyle=\ttfamily,
110 showstringspaces=false,
117 \setcounter{secnumdepth}{3}
119 \title{Task Oriented Programming and the Internet of Things}
120 \author{Mart Lubbers BSc.\\
121 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}