-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathociamthesismain.tex
243 lines (205 loc) · 7.03 KB
/
ociamthesismain.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
234
235
236
237
238
239
240
241
242
\documentclass[12pt]{ociamthesis} % UPC logo
%\documentclass[12pt,beltcrest]{ociamthesis} % use old belt crest logo
%\documentclass[12pt,shieldcrest]{ociamthesis} % use older shield crest logo
%load any additional packages
\usepackage{amssymb}
\usepackage{graphicx,pstricks}
\usepackage{graphics}
\usepackage{moreverb}
\usepackage{subfigure}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{lipsum}
\usepackage{ragged2e}
\usepackage{hangcaption}
%\usepackage{txfonts}
\usepackage{palatino}
%\usepackage[table]{xcolor}
\usepackage{color}
\usepackage{graphicx}
\usepackage{amsmath,amssymb} % define this before the line numbering.
%\usepackage{ruler}
\usepackage[noend]{algpseudocode}
\usepackage{amsmath,amssymb} % define this before the line numbering.
%\usepackage{ruler}
\usepackage{color}
\usepackage{comment}
\usepackage{bm,nicefrac} % bold math package
\usepackage{amsmath}
\usepackage{tikz}
\DeclareMathOperator*{\argmax}{argmax}
\usepackage{hyperref}
\usepackage{color}
\usepackage{threeparttable}
\usepackage[linesnumbered, ruled]{algorithm2e}
\SetKwRepeat{Do}{do}{while}
\usepackage{graphicx}
\usepackage{color,soul}
%\usepackage{fancyhdr}
%\setlength{\headheight}{15pt}
%\pagestyle{fancy}
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\definecolor{ao}{rgb}{0.0, 0.5, 0.0}
\usepackage{xcolor}
\usepackage{soul}
\newcommand{\hlc}[2][yellow]{{%
\colorlet{foo}{#1}%
\sethlcolor{foo}\hl{#2}}%
}
\usepackage{amsmath}
\DontPrintSemicolon
%\usepackage{algorithm}
%\usepackage[linesnumbered,ruled]{algorithm2e}
\usepackage[noend]{algpseudocode}
\usepackage{amsmath,amssymb} % define this before the line numbering.
%\usepackage{ruler}
\usepackage{color}
\usepackage{xcolor}
\definecolor{darkblue}{rgb}{0, 0, 0.5}
\usepackage{amsmath}
%\DeclareMathOperator*{\argmax}{argmax}
\definecolor{bluegray}{rgb}{0.4, 0.6, 0.8}
\usepackage{hyperref}
%%%%%%%%%%%%%%%%%% Gray box %%%%%%%%%%%%%%%
\usepackage[breakable, theorems, skins]{tcolorbox}
\DeclareRobustCommand{\mybox}[2][gray!20]{%
\begin{tcolorbox}[ %% Adjust the following parameters at will.
breakable,
left=0pt,
right=0pt,
top=0pt,
bottom=0pt,
colback=#1,
colframe=#1,
width=\dimexpr\textwidth\relax,
enlarge left by=0mm,
boxsep=5pt,
arc=0pt,outer arc=0pt,
]
#2
\end{tcolorbox}
}
%
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = black, %Colour for external hyperlinks
linkcolor = red, %Colour of internal links RoyalBlue
% linkcolor = violet, %Colour of internal links RoyalBlue
%linkcolor = bluegray, %Colour of internal links
%citecolor = red %Colour of citations
%citecolor = blue %black darkblue
citecolor = darkblue
}
%{ \hypersetup{hidelinks} \tableofcontents }
\hypersetup{linktoc = all}
\hypersetup{linktoc = page}
\usepackage{lineno,hyperref}
\usepackage{caption}
\captionsetup[table]{skip=10pt}
\usepackage{color}
\usepackage{graphicx}
\usepackage{amsmath,amssymb} % define this before the line numbering.
%\usepackage{ruler}
\usepackage{color}
\usepackage{threeparttable}
%\usepackage[linesnumbered, ruled]{algorithm2e}
\modulolinenumbers[4]
\usepackage[noend]{algpseudocode}
\usepackage{amsmath,amssymb} % define this before the line numbering.
%\usepackage{ruler}
\usepackage{color}
\usepackage{comment}
\usepackage{bm,nicefrac} % bold math package
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{CJKutf8}
\usepackage{natbib}
\bibpunct{(}{)}{,}{a}{}{;}
\bibliographystyle{abbrvnat}
\renewcommand{\citep}[1]{[\citealp{#1}]}
%\DeclareMathOperator*{\argmax}{argmax}
\usepackage{hyperref}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{comment}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{xcolor}
%\usepackage{soulpos}
%\ulposdef{\hlc}[xoffset=1pt]{\mbox{\color{cyan!30}\rule[-.8ex]{\ulwidth}{3ex}}}
%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\fancyhead[R]{}
\fancyhead[L]{\chaptername\ \thechapter\ --\ \leftmark}
\newcommand{\bert}{\ensuremath{%
\mathchoice{\includegraphics[height=2ex]{Figure-Ch5/Bert.png}}
{\includegraphics[height=2ex]{Figure-Ch5/Bert.png}}
{\includegraphics[height=1.5ex]{Figure-Ch5/Bert.png}}
{\includegraphics[height=1ex]{Figure-Ch5/Bert.png}}
}}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\rightmark}
\fancyhead[R]{\thepage}
%\renewcommand{\headrulewidth}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%% from CVPR %%%%%%%%%%%%%%%%%
\makeatletter
\DeclareRobustCommand\onedot{\futurelet\@let@token\@onedot}
\def\@onedot{\ifx\@let@token.\else.\null\fi\xspace}
\def\eg{\emph{e.g}\onedot} \def\Eg{\emph{E.g}\onedot}
\def\eg{\emph{e.g}\onedot} \def\Eg{\emph{E.g}\onedot}
\def\ie{\emph{i.e}\onedot} \def\Ie{\emph{I.e}\onedot}
\def\cf{\emph{c.f}\onedot} \def\Cf{\emph{C.f}\onedot}
\def\etc{\emph{etc}\onedot} \def\vs{\emph{vs}\onedot}
\def\wrt{w.r.t\onedot} \def\dof{d.o.f\onedot}
\def\etal{\emph{et al}\onedot}
%%%%%%%%%%%%%%%%%%%%%%%%%%CVPR %%%%%%%%%%%%%%%%%
%input macros (i.e. write your own macros file called mymacros.tex
%and uncomment the next line)
%\include{mymacros}
\title{title}
%\author{sasas }
%\college{Ci\`{e}ncies de la Computaci\'{o}} %your college
%\college{ {\larger \textit{By} \vspace{0.3cm} \\ your name} \\ \vspace{0.1cm} Departament de Ci\`{e}ncies de la Computaci\'{o} }
\college{ {\larger \textit{By} \vspace{0.3cm} \\ your name} }
%\renewcommand{\submittedtext}{change the default text here if needed}
\degree{Doctor of Philosophy} %the degree
\degreedate{Barcelona, February 2021}
%end the preamble and start the document
\begin{document}
%this baselineskip gives sufficient line spacing for an examiner to easily
%markup the thesis with comments
\baselineskip=18pt plus1pt
%set the number of sectioning levels that get number and appear in the contents
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\maketitle % create a title page from the preamble info
\include{dedication} % include a dedication.tex file
\include{acknowlegements} % include an acknowledgements.tex file
\include{abstract} % include the abstract
\begin{romanpages} % start roman page numbering
\tableofcontents % generate and include a table of contents
\listoffigures % generate and include a list of figures
\end{romanpages} % end roman page numbering
%now include the files of latex for each of the chapters etc
\include{chapter1}
\include{chapter2}
\include{Chapter3}
\include{Chapter4}
\include{Chapter5}
\include{Chapter6}
\include{conclusions}
%now enable appendix numbering format and include any appendices
\appendix
\include{appendix1}
\include{appendix2}
%next line adds the Bibliography to the contents page
\addcontentsline{toc}{chapter}{Bibliography}
%uncomment next line to change bibliography name to references
%\renewcommand{\bibname}{References}
\bibliography{refs} %use a bibtex bibliography file refs.bib
%\bibliographystyle{plain} %use the plain bibliography style
\end{document}