-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.tex
207 lines (170 loc) · 6.21 KB
/
report.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
\documentclass[a4paper, 12pt, notitlepage]{report}
%%==================================================================
%% PACKAGES
%%==================================================================
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancybox} % tools for boxes
\usepackage{verbatim} % Verbatim environments
\usepackage{multirow} % Fancy tables
\usepackage[table]{xcolor} % table option for fancy tables
\usepackage{parskip} % No indent paragraph
\usepackage{amsmath} % Math environments
\usepackage{url} % For URLs
\usepackage{tikz} % Custom figures
\usepackage{pgfplots} % Plots
\usepackage{float} % Force figure/table position
\usepackage{amssymb} % Mathematical symbols in text
\usepackage{csquotes} % \enquote environment
\usepackage{listings} % Source code listings
\usepackage{parcolumns} % Text/figures/tables side-by-side
\usepackage{array} % Programmable table formatting
\usepackage{booktabs} % Fancy tables
\usepackage{rotating} % sidewaystable
\usepackage{soul} % Highlight
\usepackage[export]{adjustbox} % \resizebox
\usepackage[acronym]{glossaries} % Glossary
\usepackage[linesnumbered, ruled]{algorithm2e} % Pseudo-code
\usepackage{enumitem} % custom itemize label
\usepackage{subcaption}
\usepackage{textcomp} % Text Companion Fonts
\usepackage{etoolbox}
\apptocmd{\sloppy}{\hbadness 10000\relax}{}{}
% Formating
\usepackage[margin=2.5cm]{geometry} % sets margin around text to 2.5
\newif\ifrelease
\newif\ifdebug
\releasetrue % Show appendix and figures
\debugtrue % Use sloppy
%%==================================================================
%% CUSTOM STYLES
%%==================================================================
\usepackage{styles/colors}
\usepackage{styles/c}
\usepackage{styles/assembler}
\usepackage{styles/tikz}
\usepackage{styles/pgfplots}
\lstset{%
commentstyle=\color{green},
keywordstyle=\color{blue},
morecomment=[l]{;}
}
\ifdebug
\sloppy
\fi
\loadglsentries{glossaries}
%%==================================================================
%% VARIABLES
%%==================================================================
\def\thesistitle{\LARGE Comparing Android Runtime with native:\\ Fast Fourier Transform on Android}
\def\swethesistitle{\Large Jämförelse av Android Runtime och native: Fast Fourier Transform på Android}
\def\theauthor{André Danielsson}
\def\theschool{KTH -- Royal Institute of Technology}
\def\thedegree{Master's Thesis in Computer Science}
\def\thesupervisors{%
\begin{tabular}{ll}
\textbf{KTH Supervisor:} & Erik Isaksson\\
\textbf{Bontouch Supervisor:} & Erik Westenius\\
\textbf{Examiner:} & Olle Bälter
\end{tabular}
}
\def\theabstract{\input{Abstract/abstract.tex}}
\def\thedate{\today}
\def\thepreface{\input{Preface/preface.tex}}
\def\thesweabstract{\input{SweAbstract/sweabstract.tex}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{14.5pt}
\fancyhead[L]{\theauthor}
\fancyhead[R]{\leftmark}
\fancyfoot[C]{\thepage}
% \fancyfoot[LE,RO]{\thepage}
\begin{document}
\pagenumbering{gobble} % Disable page numbering
%%==================================================================
%% PREAMBLES
%%==================================================================
% \maketitle
\begin{titlepage}
\centering
{\scshape\large\theschool\par}
\vspace{1cm}
{\scshape\normalsize\thedegree\par}
\vspace{1.5cm}
{\Large\bfseries\thesistitle\par}
\vspace{1.5cm}
{\large\itshape\theauthor\par}
\vspace{1cm}
{\large \today\par}
\vfill
{\large\thesupervisors\par}
\vspace{1cm}
\end{titlepage}
%%==================================================================
%% Abstracts
%%==================================================================
\thispagestyle{empty}
\begin{abstract}
\input{Abstract/abstract.tex}
\end{abstract}
\vspace{1cm}
\renewcommand{\abstractname}{Sammanfattning}
\begin{abstract}
\input{SweAbstract/sweabstract.tex}
\end{abstract}
%%==================================================================
%% Glossary
%%==================================================================
\newpage
\thispagestyle{empty}
\section*{Glossary}
\input{glossary-table}
%%==================================================================
%% TABLE OF CONTENTS/FIGURES/TABLES
%%==================================================================
\tableofcontents
\thispagestyle{empty}
\listoffigures
\listoftables
%%==================================================================
%% REPORT
%%==================================================================
\chapter{Introduction}\label{ch:introduction}
\pagenumbering{arabic} % Enable page numbering
\input{Chapters/introduction.tex}
\cleardoublepage
\chapter{Background}\label{ch:background}
\input{Chapters/background.tex}
\cleardoublepage
\chapter{Method}\label{ch:method}
\input{Chapters/method.tex}
\cleardoublepage
\chapter{Results}\label{ch:results}
\input{Chapters/results.tex}
\cleardoublepage
\chapter{Discussion}\label{ch:discussion}
\input{Chapters/discussion.tex}
\cleardoublepage
\chapter{Conclusion}\label{ch:conclusion}
\input{Chapters/conclusion.tex}
\cleardoublepage
%%==================================================================
%% BIBLIOGRAPHY
%%==================================================================
\bibliographystyle{ieeetr}
\bibliography{references}
%%==================================================================
%% APPENDIX
%%==================================================================
% Show appendix if release is true
\ifrelease
\appendix
\chapter{Source code}\label{appendix:code}
\input{Appendices/appendixA.tex}
\cleardoublepage
\chapter{Results}\label{appendix:results}
\input{Appendices/appendixB.tex}
\cleardoublepage
\fi
\end{document}