This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
233 lines (169 loc) · 4.94 KB
/
main.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
\documentclass[10pt,b5paper,twoside,openany]{memoir}
%%% Packages
\usepackage[utf8]{inputenc}
\usepackage[danish,english]{babel}
\usepackage{pdfpages}%include pdfs
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{float}
\usepackage{tikz}
\usepackage{blindtext}% dummy text
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage[font={small}]{caption}
\usepackage{enumitem}
\usepackage[backend=biber,sorting=none]{biblatex}
\usepackage{csquotes}
\addbibresource{disbib.bib}
\DeclareUnicodeCharacter{0308}{.}
\usepackage{listings}
\usepackage{xcolor}
%% Colors
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{dtured}{rgb}{0.60, 0.00, 0.00}
\colorlet{thecolor}{dtured!100!}
\definecolor{thechptclr}{gray}{0.6}
\definecolor{thecaptionclr}{gray}{0.6}
\definecolor{gray20}{gray}{0.20}
\definecolor{gray40}{gray}{0.40}
\lstdefinestyle{mystyle}{
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=true,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\pagenumbering{roman}
\title{The Title}
\author{First Last}
\date{22$^{th}$ October, 2022}
%%%%%%%%% WRITE THE SECTION NAME IN THE HEADER %%%%%
%\pagestyle{headings}
\chapterstyle{tandh}
% adjust caption formatting (memoir)
\captionnamefont{\bfseries}
\captiondelim{. }
\changecaptionwidth
\captionwidth{5in}
\captionsetup{belowskip=0pt}
%%%%%%%%%% customization: formatting for Figure, Table, Equation references
\usepackage{graphicx}
%running fraction with slash - requires math mode.
\newcommand*\rfrac[2]{{}^{#1}\!/_{#2}}
\newcommand{\fig}[2]{\textbf{Figure~\ref{#1}{#2}}}
\newcommand{\tab}[2]{\textbf{Table~\ref{#1}{#2}}}
\newcommand{\tabb}{\hspace*{2em}}
\newcommand{\sub}[1]{\mbox{(\textbf{#1})}} % formatting for subfigure label within a caption
\newcommand{\prog}[1]{\texttt{#1}}
\newcommand{\fixme}[1]{\textbf{\underline{#1}}}
%%%Font size on chapters, sections and subsections
\newcommand*{\justifyheading}{\raggedleft}
\titleformat*{\section}{\LARGE\bfseries}
\titleformat*{\subsection}{\Large\bfseries}
\titleformat*{\subsubsection}{\large\bfseries}
\titleformat*{\paragraph}{\large\bfseries}
\titleformat*{\subparagraph}{\large\bfseries}
%###########################
\begin{document}
%###########################
\setcounter{page}{0}
\include{front/titlepage}
\frontmatter
\include{front/preface}
\include{front/formal}
\include{front/acknowledgements}
%%%%% Table of Content
%\cleardoublepage
\renewcommand*\contentsname{Table of contents}
\tableofcontents*
%% Font stuff
\include{front/summary_english}
\include{front/summary_danish}
%\cleardoublepage
\include{front/publications}
\include{front/thesisoverview}
\clearpage
%%%%%%% PREFACE CHAPTERS INCLUDE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\setcounter{page}{1}
%%%%Put number on subsubsection:
\setcounter{secnumdepth}{3}
\newpage
%%%%%%%%%%% INTRODUCTIOn %%%%%%%%%%%%%%%
%\titlespacing\section{0pt}{0pt}{\parskip}{-\parskip}
%% Header
\makepagestyle{dtu}
\makeoddhead{dtu}{\leftmark}{}{\thepage}
\makeevenhead{dtu}{\thepage}{}{\leftmark}
\makeheadrule{dtu}{\textwidth}{0.3pt}
\pagestyle{dtu}
\aliaspagestyle{chapter}{dtu}
\cleardoublepage
\begingroup
\chapter{Background}
\include{introduction/metagenomics}
\endgroup
\begingroup
\chapter{Methods}
\include{methods/ML}
\endgroup
%%% Introduction of each Project
\begingroup
\chapter{Research objectives}
\include{middle/Research_objectives}
\chapter{Description of research projects}
\include{middle/description_research_projects}
\endgroup
%%% Summary and discussion of results
\begingroup
\chapter{Summary of results and discussion}
\include{middle/2_phamb_results}
\endgroup
%%% Conclusion and Ethics statement
\include{tail/Conclusion}
\include{tail/ethical}
%%%%% APPENDIX %%%%
%\thispagestyle{empty}
\newcommand{\beginsupplement}{%
\setcounter{table}{0}
\renewcommand{\thetable}{S\arabic{table}}%
\setcounter{figure}{0}
\renewcommand{\thefigure}{S\arabic{figure}}%
}
\beginsupplement
%%%%%%% Papers
\begingroup
% Set page layout for papers only
\makepagestyle{papers}
\makeoddhead{papers}{\thepage}{}{\leftmark}
\makeevenhead{papers}{\leftmark}{}{\thepage}
\makeheadrule{papers}{\textwidth}{0.3pt}
\pagestyle{papers}
\aliaspagestyle{chapter}{papers}
\chapter{Manuscripts}
\include{papers/phamb}
\endgroup
%%%%% APPENDIX %%%%
\begingroup
\makepagestyle{papers}
\makeoddhead{papers}{\thepage}{}{\leftmark}
\makeevenhead{papers}{\leftmark}{}{\thepage}
\makeheadrule{papers}{\textwidth}{0.3pt}
\pagestyle{papers}
\aliaspagestyle{chapter}{papers}
\chapter{Appendix}
\include{tail/appendix}
\endgroup
% Giv kapitel nummer.
\printbibliography[title={References}]
\end{document}