From 45e52506a41870afa57389fe9741e6bfd57408e8 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Tue, 22 Nov 2016 23:56:49 +0100
Subject: More intro; draft mode

---
 thesis/thesis.tex | 49 +++++++++++++++++++++++++++++++++++--------------
 1 file changed, 35 insertions(+), 14 deletions(-)

(limited to 'thesis/thesis.tex')

diff --git a/thesis/thesis.tex b/thesis/thesis.tex
index d2f1e06..8760159 100644
--- a/thesis/thesis.tex
+++ b/thesis/thesis.tex
@@ -1,19 +1,25 @@
 %&thesis
 \begin{document}
 
-\maketitleru[
-	course={Bachelor Thesis\\[.4em]Computer Science},
-	authorstext={Author:},
-	authors={Camil Staps},
-	righttextheader={First supervisor:},
-	righttext={prof.~dr.~dr.h.c.~ir.~M.J.~Plasmeijer},
-	righttextBheader={Second supervisor:},
-	righttextB={drs.~J.H.G.~van~Groningen},
-	pagenr=1]
-
-\setcounter{page}{2}
+\ifdraft
+	\begin{center}
+		{\Large Bachelor Thesis}
 
-\cleardoublepage
+		\textcolor{red}{\emph{This is a draft version. The layout has been changed to save paper.}}
+	\end{center}
+\else
+	\maketitleru[
+		course={Bachelor Thesis\\[.4em]Computer Science},
+		authorstext={Author:},
+		authors={Camil Staps},
+		righttextheader={First supervisor:},
+		righttext={prof.~dr.~dr.h.c.~ir.~M.J.~Plasmeijer},
+		righttextBheader={Second supervisor:},
+		righttextB={drs.~J.H.G.~van~Groningen},
+		pagenr=1]
+	\setcounter{page}{2}
+	\cleardoublepage
+\fi
 
 \begin{abstract}
 The Thumb-2 instruction set combines the best features of the ARM and Thumb instruction sets (speed and small code size, respectively).
@@ -23,26 +29,41 @@ Specifically, we look at code generation for the purely functional programming l
 \todo{results, efficiency, etc.}
 \end{abstract}
 
+\ifdraft\else
 \cleardoublepage
+\fi
 
-\thispagestyle{empty}
-\tableofcontents
+\ifdraft
+	\begin{multicols}{2}
+		\tableofcontents
+	\end{multicols}
+\else
+	\thispagestyle{empty}
+	\tableofcontents
+\fi
 
+\ifdraft\else
 \cleardoublepage
+\fi
 
 \input{intro}
 \input{storing-pc}
 \input{two-bits}
 \input{results}
 
+\ifdraft\else
 \cleardoublepage
+\fi
 \appendix
 \input{abbr}
 
+\ifdraft\else
 \cleardoublepage
+\fi
 
 \let\oldurl\url
 \renewcommand{\url}[1]{{\small\oldurl{#1}}}
+\phantomsection\addcontentsline{toc}{section}{\bibname}
 \printbibliography
 
 \end{document}
-- 
cgit v1.2.3

