1c60e5e7127bc32d6916847b2eac33259b32bab4
[thesis-skel.git] / thesis.tex
1 \documentclass[b5paper]{book}
2
3 \input{preamble}
4
5 % Document info
6 \title{Some title}
7 \author{Some author\\
8 {\small\href{mailto:mail@example.com}{mail@example.com}}}
9
10 % If you want to fix the date: \formatdate{10}{7}{2017}}
11 \date{\today}
12
13 \begin{document}
14 \frontmatter{}
15
16 %Titlepage
17 \input{titlepage}
18
19 %Abstract
20 \chapter*{\centering Abstract}%
21 \label{chp:abstract}
22 \addcontentsline{toc}{chapter}{Abstract}
23 \begin{quotation}
24 \centering\noindent
25 \input{abstract}
26 \end{quotation}
27
28 %Acknowledgements
29 \chapter*{\centering Acknowledgements}%
30 \label{chp:acknowledgements}
31 \addcontentsline{toc}{chapter}{Acknowledgements}
32 \begin{quotation}
33 \centering\it\noindent
34 \input{acknowledgements}
35 \end{quotation}
36
37 % Table of contents
38 \tableofcontents
39
40 % Reset glossary and thus the acronyms
41 \glsresetall{}
42
43 % The actual document
44 \mainmatter{}
45
46 \chapter{Example}%
47 \label{chp:example}
48 \input{example}
49
50 % Start appendix
51 \appendix%
52 \label{chp:appendix}
53
54 % Bibliography
55 \phantomsection{}%
56 \label{chp:bibliography}
57 \addcontentsline{toc}{chapter}{Bibliography}
58 \bibliographystyle{plain}
59 \bibliography{thesis}
60
61 % Glossary
62 \addcontentsline{toc}{chapter}{Glossary}%
63 \label{chp:glossaries}
64 \printglossaries%
65
66 % Index
67 \addcontentsline{toc}{chapter}{Index}%
68 \label{chp:index}
69 \printindex
70
71 % Lists of
72 \cleardoublepage{}
73 \phantomsection{}%
74 \label{chp:listsof...}
75 \addcontentsline{toc}{chapter}{Lists of \ldots}
76 \begingroup
77 \let\clearpage\relax
78 \let\cleardoublepage\relax
79 \listoffigures%
80 \listoftables%
81 \listofalgorithms%
82 \lstlistoflistings%
83 \endgroup
84
85 \end{document}