-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
232 lines (204 loc) · 9.07 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
%% LLT: Turn off some annoying warnings...
\RequirePackage{silence}
\WarningFilter{titlesec}{Non standard sectioning command}
\WarningFilter{scrreprt}{Usage of package}
\WarningFilter{scrreprt}{Activating an ugly workaround}
% *********************************************************
% CHOOSE THEME (ucph, sund, science, hum, samf, jura, teo)
% *********************************************************
\newcommand{\thesisTheme}{ucph} % to colortheme and titlepage image
\newcommand{\frontpageimage}{cover_image.png} % cover image
\newcommand{\defaultpagestyle}{plain} % empty: no page number on empty pages
\DeclareUnicodeCharacter{0308}{HERE!HERE!} % I had issues with this character ...
% *********************************************************
% DOCUMENT CLASS
% *********************************************************
\documentclass[%
paper=B5, % paper size
11pt, % font size
twoside=true, % two-sided printing
openright, % doublepage cleaning ends up right side
parskip=full, % spacing value / method for paragraphs, half*, half, half-
chapterprefix=true, % prefix for chapter marks
headings=normal, % size of headings
bibliography=totoc, % include bib in toc
listof=totoc, % include listof entries in toc
titlepage=on, % own page for each title page
captions=tableabove, % display table captions above the float env
draft=false, % value for draft version
abstract=on, % abstract title on/off
]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel} % adjust the language
% **************************************************
% COMMANDS FOR REUSE
% **************************************************
% Thesis
\newcommand{\thesisTitle}{YOUR TITLE}
\newcommand{\thesisSubtitle}{YOUR SUBTITILE}
\newcommand{\thesisName}{NAME SURNAME}
\newcommand{\thesisSubject}{PhD thesis}
\newcommand{\thesisDate}{\today}
\newcommand{\thesisVersion}{v240208}
% Supervisors & Collaborators
\newcommand{\thesisPrincipalSupervisor}{SUPERVISOR}
\newcommand{\thesisCoSupervisor}{COSUPERVISOR}
\newcommand{\thesisExternalSupervisor}{External Supervisor}
\newcommand{\thesisMainInstitut}{Novo Nordisk Foundation Center for Metabolic Research, University of Copenhagen}
% \newcommand{\thesisCollab}{If any?}
% University of Copenhagen
\newcommand{\thesisUniversity}{\protect{University of Copenhagen}}
\newcommand{\thesisFaculty}{Faculty of Health and Medical Sciences}
\newcommand{\thesisInstitute}{PhD}
\newcommand{\thesisCity}{Copenhagen N}
\newcommand{\thesisAddress}{Blegdamsvej 3B}
\newcommand{\thesisPostal}{2200}
% **************************************************
% MY COMMANDS and packages
% **************************************************
\newcommand{\doi}[1]{\href{https://doi.org/#1}{#1}} % Have dois as links
\newcommand{\https}[1]{\href{https://#1}{#1}} % make any https link
%\usepackage{enumitem} % Make item lists without numbers/bullets - already included in ucphthesis, therefore commented out here
\usepackage{dirtytalk} % In-line quotations using \say{}
% \usepackage{siunitx} % SI units
% \usepackage{textgreek} % Greek letters in text
\usepackage{multirow} % Multirow in table
\usepackage{graphicx} % More table stuff
\usepackage{makecell} % Get linebreak in table cell
\usepackage{tcolorbox} % Make a colored box
\definecolor{colorforbox}{RGB}{247,249,254} % color for colored box
%\renewcommand*{\bibfont}{\normalfont\footnotesize} % change size of bibliography. footnotesize can be used for a bit smaller size.
\usepackage{amsmath} % for making equations
\usepackage[symbol]{footmisc} % make symbols available for footnote
\renewcommand{\thefootnote}{\fnsymbol{footnote}} % change footnote to use symbols. Symbol numbers found here: https://tex.stackexchange.com/questions/826/symbols-instead-of-numbers-as-footnote-markers
\usepackage{wrapfig} % Have text wrap around figures (used for QR code in BALDR intro)
\usepackage{pdfpages} % Insert pdfs
\includepdfset{
pages = {1-}, % from page 1 to the final page
pagecommand = {}, % uses global document layout
frame = false, % draw discrete border around page
offset = 0mm 0mm, % outward/upward
scale = 1, %0.84
link=true, % allow pointing to inserted pages
height=\textheight,
%rotateoversize % rotates landscape pages
}
\newcommand{\includepdfsupp}{ % Insert supplementary pdf
\includepdf[
nup=1x2,
delta=0mm 2mm,
angle=-90,
]
}
\newtcolorbox[auto counter,number within=chapter]{bluebox}[2][]{ % Make blue boxes.
toptitle=3mm, colback=colorforbox, colframe=colorforbox, coltitle=black,
titlerule=1mm, fonttitle=\bfseries\sffamily, fontupper=\sffamily\small,
sharp corners, float, floatplacement=t,
title=Box~\thetcbcounter~#2, #1}
\newcommand\blankpagenumbered{%
\null
\thispagestyle{plain}%
\addtocounter{page}{-1}%
\newpage}
% *********************************************************
% PACKAGES
% *********************************************************
\usepackage[ % UCPH thesis style
figuresep=colon,
sansserif=false,
hangfigurecaption=false,
hangsection=true,
hangsubsection=true,
hangsubsubsection=true,
colorize=full,
colortheme={\thesisTheme}, % ucph, sund, science, hum, etc.?
bibsys=biber,
bibfile=references, % defines your .bib file
bibstyle=authoryear, % refer to https://da.overleaf.com/learn/latex/Biblatex_citation_styles
]{ucphthesis}
\hypersetup{ % setup the hyperref-package options
pdftitle={\thesisTitle}, % - title (PDF meta)
pdfsubject={\thesisSubject},% - subject (PDF meta)
pdfauthor={\thesisName}, % - author (PDF meta)
plainpages=false, % -
colorlinks=true, % - colorize links
citecolor=[RGB]{188 60 48},
linkcolor=[RGB]{188 60 48},
anchorcolor=.,
filecolor=.,
menucolor=.,
runcolor=.,
urlcolor=[RGB]{188 60 48},
pdfborder={0 0 0}, % -
breaklinks=true, % - allow line break inside links
bookmarksnumbered=true, %
bookmarksopen=true %
}
% Activate to count figures without chapter
% \counterwithout{figure}{chapter}
% *********************************************************
% Cover page content
% *********************************************************
%\subject{\vspace{4.5cm} \thesisSubject}
\title{\thesisTitle}
\author{\thesisName}
\date{\thesisDate}
% *********************************************************
% THESIS CONTENT
% *********************************************************
\begin{document}
\begingroup
\fontencoding{T1}\fontfamily{LinuxLibertineT-OsF}\selectfont
\makekutitle
\endgroup
% --------------------------
% Front matter
% --------------------------
\pagenumbering{roman}
%\pagestyle{empty} % no header or footers
%\AddToShipoutPicture*{\TitleBackground} % adding background picture
%\input{frontbackmatter/coverpage}
\input{frontbackmatter/0_titlepage.tex}
\pagestyle{plain}
%\input{frontbackmatter/quotes.tex} % INCLUDE Quotes
\input{frontbackmatter/1_preface.tex} % INCLUDE Preface
\input{frontbackmatter/2_acknowledgements.tex} % INCLUDE Acknowledgements
\input{frontbackmatter/3_summary.tex} % INCLUDE summary
\input{frontbackmatter/4_danish_summary.tex} % INCLUDE danish summary
\input{frontbackmatter/4_publications} % INCLUDE list of publications
\input{frontbackmatter/5_abbreviations.tex} % INCLUDE Rationale
\input{frontbackmatter/6_figures_tables.tex} % INCLUDE Rationale
\clearpage
\setcounter{tocdepth}{2} % define depth of toc
%\tableofcontents % display table of contents
{
\hypersetup{linkcolor=black}
\tableofcontents
}
\clearpage
% make sure there the frontmatter ends on an even page.
\input{mainmatter/0_content}
% --------------------------
% Main matter
% --------------------------
\pagenumbering{arabic} % arabic page numbering
\setcounter{page}{1} % set page counter
\pagestyle{maincontentstyle} % fancy header and footer
\input{mainmatter/1_background.tex} % INCLUDE Introduction
\input{mainmatter/2_methods.tex} % INCLUDE Methods
\input{mainmatter/3_objectives.tex} % INCLUDE Hypothesis
\input{mainmatter/4_description_projects.tex} % INCLUDE Rationale
\input{mainmatter/5_results.tex} % INCLUDE Results
\input{mainmatter/6_perspectives.tex} % INCLUDE Perspectives
\input{mainmatter/7_papers.tex}
%\input{mainmatter/discussion.tex} % INCLUDE Discussion
%\input{mainmatter/conclusion.tex} % INCLUDE Conclusion
% --------------------------
% Back matter
% --------------------------
\input{frontbackmatter/7_bibliography.tex}
%\input{frontbackmatter/appendix.tex}
% *********************************************************
% END OF THESIS
% *********************************************************
\end{document}