1 \documentclass[a4paper]{book}
3 \usepackage[british]{babel}
5 \usepackage{makeidx} % Index
6 \usepackage{geometry} % Papersize
7 \usepackage[titletoc]{appendix} % Appendices
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
18 \usepackage{pgf-umlsd} % Connection diagrams
19 \usepackage{graphicx} % Graphics
20 \usepackage{epstopdf} % Eps graphics
22 \usetikzlibrary{arrows,shadows}
30 pdftitle={iTasks and the Internet of Things},
31 pdfauthor={Mart Lubbers},
32 pdfsubject={iTasks 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 \title{iTasks and the Internet of Things}
120 \author{Mart Lubbers BSc.\\
121 {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}