fix listings, process comments
[msc-thesis1617.git] / presentation.pre
1 \documentclass[handout]{beamer}
2
3 \usepackage{listings} % Source code
4 \usepackage{subcaption} % Subcaptions
5 \usepackage[nodayofweek]{datetime} % Use a fixed document date
6
7 % Beamer style
8 \usetheme{Singapore}
9 \usecolortheme{default}
10
11 % Images directory
12 \graphicspath{{img/}}
13
14 % Always have url in teletype
15 \urlstyle{tt}
16
17 % Setup pdf parameters
18 \hypersetup{%
19 pdftitle={Task Oriented Programming and the Internet of Things},
20 pdfauthor={Mart Lubbers},
21 pdfsubject={Task Oriented Programming and the Internet of Things},
22 pdfcreator={Mart Lubbers},
23 pdfproducer={Mart Lubbers},
24 pdfkeywords={TOP,iTasks,Clean,Function Programming,IoT}
25 }
26 % Clean language spec for listings
27 \lstdefinelanguage{Clean}{%
28 alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890},
29 alsoletter={~!@\#$\%^\&*-+=?<>:|\\.},
30 morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::},
31 sensitive=true,
32 morecomment=[l]{//},
33 morecomment=[n]{/*}{*/},
34 morestring=[b]",
35 morestring=[b]',
36 emptylines=1,
37 basewidth=0.45em,
38 columns=[c]fixed,
39 texcl=true,
40 upquote=true,
41 literate=%
42 % Basic Clean constructs
43 {\\}{{$\lambda\:$}}1
44 {->}{{$\rightarrow\:$}}1
45 {A.}{{$\forall\;\,$}}1
46 {E.}{{$\exists\;\,$}}1
47 {*}{{$^*$}}1
48 }
49
50 % Handy shortcut for inline Clean code
51 \newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|}
52
53 % General listings settings
54 \lstset{%
55 breakatwhitespace=false,
56 breaklines=true,
57 captionpos=b,
58 keepspaces=true,
59 basicstyle=\ttfamily\fontseries{l}\scriptsize,
60 commentstyle=\slshape\fontseries{m},
61 keywordstyle=\bfseries\fontseries{b},
62 stringstyle=\ttfamily,
63 showspaces=false,
64 showstringspaces=false,
65 showtabs=false,
66 tabsize=4,
67 frame=L
68 }
69
70 \author[M. Lubbers]{
71 Mart Lubbers BSc.\\[1em]
72 \small
73 \textit{Supervisor:}\\
74 prof.~dr.~dr.h.c.~ir.~M.J.~Plasmeijer\\[1em]
75 \textit{Second reader:}\\
76 dr.~P.W.M.~Koopman
77 }
78
79 \title{Task Oriented Programming and the Internet of Things}
80 \subtitle{\sc Master's Thesis: Computing Science}
81 \institute[Radboud University]{Radboud University Nijmegen}
82 \subject{Task Oriented Programming}
83 \date[2017]{\formatdate{10}{7}{2017}}