X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=thesis.pre;h=896e0c55b34973bce36d90a973777f93f22bb306;hb=d118ff9d857683084065145df45135ef6fa06711;hp=80c2932190ad3f7a401481e28cebb1d9ab04deb4;hpb=9c940edab2b3282dc658a629a24573e92964ae77;p=msc-thesis1617.git diff --git a/thesis.pre b/thesis.pre index 80c2932..896e0c5 100644 --- a/thesis.pre +++ b/thesis.pre @@ -11,8 +11,14 @@ \usepackage{caption} % Captions \usepackage{subcaption} % Subcaptions \usepackage{lipsum} % dummy text +\usepackage{listings} % source code +\usepackage{float} % floating images +\usepackage{lmodern} % Better teletype fonts +\usepackage{textcomp} % Nice listings quotes -\urlstyle{same} +\graphicspath{{img/}} + +\urlstyle{tt} \hypersetup{% pdftitle={iTasks and the Internet of Things}, pdfauthor={Mart Lubbers}, @@ -23,6 +29,84 @@ hidelinks=true } +\pdfstringdefDisableCommands{% + \def\acrlong#1{}% + \def\acrlongpl#1{}% + \def\acrshort#1{}% + \def\acrfull#1{}% + \def\gls#1{}% + \def\glspl#1{}% + \def\Gls#1{}% + \def\Glspl#1{}% +} + +\lstdefinelanguage{Clean}{% + alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890}, + alsoletter={~!@\#$\%^\&*-+=?<>:|\\.}, + morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive,::}, + sensitive=true, + morecomment=[l]{//}, + morecomment=[n]{/*}{*/}, + morestring=[b]", + morestring=[b]', + emptylines=1, + basewidth=0.45em, + columns=[c]fixed, + texcl=true, + upquote=true, + literate=% + % Basic Clean constructs + {\\}{{$\lambda\:$}}1 + {A.}{{$\forall\;\,$}}1 + {E.}{{$\exists\;\,$}}1 +% {>}{{$>$}}1 +% {<}{{$<$}}1 +% {<=}{{$\leq$}}1 +% {>=}{{$\geq$}}1 +% {<>}{{$\neq$}}1 +% {->}{{$\rightarrow$}}2 +% {<-}{{$\leftarrow$}}1 +% {=}{{$=$}}1 +% {~}{{$\sim$}}1 +% {\#}{{$\sharp$}}1 +% {\{|}{{$\{\!|\!$}}1 +% {|\}}{{$\!|\!\}$}}1 +% {:=}{{$:=$}}2 +% {==}{{$==$}}2 +% {++}{{$+\!\!+$}}2 +% {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2 +% {:==}{{$:==$}}3 +% {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3 + % + % Basic iTask constructs +% {>||>}{{$\triangleright\triangleright$}}2 +% {>>=}{{\texttt{>>=}}}3 +% {>>|}{{\texttt{>>|}}}3 +% {?>>}{{\texttt{?>>}}}3 +% {!>>}{{\texttt{!>>}}}3 +% {-||-}{{\texttt{-||-}}}4 +% {.||.}{{\texttt{.||.}}}4 +% {.&&.}{{\texttt{.\&\&.}}}4 +} + +\newcommand{\CI}[1]{\lstinline[language=Clean,basicstyle=\ttfamily\fontseries{l}\normalsize]|#1|} + +\lstset{% + breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace + breaklines=true, % sets automatic line breaking + captionpos=b, % sets the caption-position to bottom + keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible) + basicstyle=\ttfamily\fontseries{l}\footnotesize,% the size of the fonts that are used for the code + commentstyle=\itshape\fontseries{m}, % comment style + keywordstyle=\bfseries\fontseries{b}, % keyword style + stringstyle=\ttfamily, % string literal style + showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' + showstringspaces=false, % underline spaces within strings only + showtabs=false, % show tabs within strings adding particular underscores + tabsize=4, % sets default tabsize to 2 spaces + frame=L +} + \title{iTasks and the Internet of Things} \author{Mart Lubbers BSc.\\ {\small\href{mailto:mart@martlubbers.net}{mart@martlubbers.net}}}