-
Notifications
You must be signed in to change notification settings - Fork 2
/
thesis_a4.tex
315 lines (257 loc) · 10.7 KB
/
thesis_a4.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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
% CITA
%I don't care much about music. What I like is sounds.
% Dizzy Gillespie
\RequirePackage{fix-cm} % Technicalities
% -------------------------------------------------------------------------------------------------------------------------
%\documentclass[10pt,b5paper,twoside,showtrims,openright]{memoir}
%\documentclass[10pt,a4paper,twoside,showtrims,openright]{memoir}
\documentclass[11pt,a4paper,twoside,openright]{memoir}
% -------------------------------------------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % codificacio dels caracters
\usepackage[T1]{fontenc} % Nou esquema de codificacio (recomanat)
%\usepackage{ae,aecompl}
\usepackage[catalan,british,spanish]{babel} % localitzacio de l'estil
\usepackage[UKenglish]{isodate} % per les dates
\usepackage{url} % macro \url per introduir adreces
\usepackage{amssymb,amsmath} % macros per matematiques
\usepackage[pdftex]{graphicx} % suport per figures
\usepackage{epsfig}
\usepackage{url}
\usepackage{lscape} % per poder posar figures i/o taules en horitzontal
\usepackage{color} % per poder fer servir colors
\usepackage[colorlinks,bookmarks,pdftex,hyperfigures,breaklinks,%backref=page,
pdfpagemode=UseOutlines,
pdftitle=Knowledge~Extraction~and~Representation~Learning~for~Music~Recommendation~and~Classification,
pdfauthor=Sergio~Oramas~Martín,
pdfsubject=PhD~Thesis,
pdfkeywords=music~recommendation~knowledge~extraction~representation~learning~multimodal~deep~learning
]{hyperref} % produeix enllacos clicables
\usepackage[round,authoryear]{natbib} % per poder fer citacions Autor-any
%\usepackage{natbibspacing}
%\setlength{\bibspacing}{0.3\baselineskip}
% per les pagines a la bibliografia
% -> UN COMMENT A PARTIR D?AQUI
%\renewcommand*{\backref}[1]{}
%\renewcommand*{\backrefalt}[4]{%
% \ifcase #1 (Not cited.)%
% \or (Cited on page~#2.)%
% \else (Cited on pages~#2.)%
% \fi}
% Packages Sergio
\usepackage{xspace}
\usepackage{subcaption}
\usepackage{tikz-dependency}
\usepackage{csquotes}
\usepackage{bookmark}
\usepackage{textcomp}
\usepackage{fixltx2e} % Technicalities
\usepackage{latexsym}
\usepackage{rotating}
\usepackage{bm}
%\usepackage{bibentry}\nobibliography*
\usepackage{longtable}
%\usepackage{verbatim}
\newsubfloat{figure}
\usepackage{wrapfig}
% better tables
\usepackage[]{threeparttable}
\usepackage{booktabs}
\usepackage{arydshln}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{array}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{L}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{T}[1]{>{\raggedleft\arraybackslash}p{#1}}
% for footnotes in tables
\usepackage{footnote}
\usepackage{multirow}
\makesavenoteenv{tabular}
\makesavenoteenv{table}
\setlength{\cftpartnumwidth}{0.8cm}
\usepackage{ifthen} % per treure figures de apendix de la llista de figures, etc...
% poerque els footnotes no tornin a comencar a cada chapter
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
\maxsecnumdepth{subsection} % Per defecte la classe 'memoir' no numera les subseccions. Que les numeri:
\setsecnumdepth{subsection}
\maxtocdepth{subsection} % Tampoc no inclou les subseccions a l'index. Que les inclogui:
\settocdepth{subsection}
% Colors dels enllacos clickables (els que hi ha per defecte son molt kitsch)
\definecolor{NoColor}{rgb}{0,0,0}
\definecolor{LinkColor}{rgb}{0,0,0.25}
\definecolor{ExtLinkColor}{rgb}{0,0.3,0}
\hypersetup{citecolor=NoColor,linkcolor=NoColor,urlcolor=NoColor}
%% Format UPF, dues cares. Recordeu que les dimensions d'A4 i B5 son (210mm,297mm) i (176mm,250mm), respectivament.
\setstocksize{297mm}{210mm} % El suport original es A4
\settrimmedsize{250mm}{176mm}{*} % El suport final, despres de tallar, B5.
\setlength{\trimtop}{23mm} % Alcada de la franja superior a tallar.
\setlength{\trimtop}{24mm} % Alcada de la franja inferior a tallar.
\setlength{\trimedge}{17mm} % Amplada de la franja interior a tallar per cada costat.
%\setulmarginsandblock{*}{29mm}{1.1} % Marges verticals (3cm a dalt, 0.9*3cm a baix)
%\setlrmarginsandblock{30mm}{*}{0.75} % Marges laterals (3cm a la dreta, 0.75*3cm l'esquerra)
\setulmarginsandblock{23mm}{18mm}{*} % used to be {25mm}{16mm}
\setlrmarginsandblock{25mm}{*}{0.8}
\checkandfixthelayout
\trimLmarks % Marques de tall en forma de 'L'
% arreglar que floats al final de capitol no es centrin verticalment
%\makeatletter% Set distance from top of page to first float
%\setlength{\@fptop}{5pt}
%\makeatother
%%%%%% RECORTE SANKALP
\setstocksize{250mm}{176mm} % The size of the stock paper (support), A4
\settrimmedsize{\stockheight}{\stockwidth}{*} % B5, the size of the final copy, cut from the stock paper.
\setlength{\trimtop}{0mm} % Alcada de la franja inferior a tallar.
\setlength{\trimedge}{0mm} % Amplada de la franja interior a tallar per cada costat.
\setulmarginsandblock{23mm}{23mm}{*} % used to be {25mm}{16mm}
\setlrmarginsandblock{25mm}{*}{0.8}
\showtrimsoff
\checkandfixthelayout
%%%%%%%%%%%%
% perque no es posi espai blanc raro entre coses
%\raggedbottom
\flushbottom
% espai despres de floats
\setlength{\textfloatsep}{0.5cm}
% Estil de quan poso tags al text tags
\newcommand{\atag}[1]{\small{\texttt{#1}}\normalsize}
% Estil dels capitols (consulteu estils disponibles a http://www.imf.au.dk/system/latex/artikler/MemoirChapStyles/MemoirChapStyles.pdf)
%\chapterstyle{veelo}
%\chapterstyle{ell}
%\chapterstyle{bianchi}
\input{ch00/mychapterstyles}
%\chapterstyle{mycombined}
\chapterstyle{myveelo}
% Labels when enumerating
%\renewcommand{\labelenumi}{\alph{enumi})}
%\renewcommand{\labelenumii}{\alph{enumii})}
% ---- Some configs...
\usepackage[font=small,labelfont=bf]{caption}
%\renewcommand{\rmdefault}{put}
%\renewcommand{\sfdefault}{phv}
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\newcommand{\quotat}[2]{
\begin{flushright}
\textit{``#1'',\\
\vspace*{0.3cm}
#2.\\
\vspace*{0.3cm}
}
\end{flushright}
}
%\newcommand{\comentari}[1]{\textcolor{red}{\textbf{[#1]}}}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argsort}{\text{argsort}}
% Space between paragraphs and lines
\setlength{\parskip}{1.4mm} % space between paragraphs
%\setlength{\parskip}{1mm plus1mm minus1mm}
%\linespread{1.35}
\linespread{1}
% Bullet points index esquema
%\newcommand{\point}{\vspace{0.25cm}$\bullet$\hspace{0.25cm}}
\newcounter{points}
\definecolor{orange}{rgb}{1,0.5,0}
\newcommand*\point{%
\stepcounter{points}%
\vspace{0.25cm}
\textcolor{orange}{$\bullet^{\thepoints}$}
}
% pel tema git
%\usepackage{totcount}
%\regtotcounter{points}
%\usepackage{eso-pic}% http://ctan.org/pkg/eso-pic
%\input{gitHeadInfo}
%\newcommand{\gitInfo}{Commit info: \gitShortHash\gitDirty, \gitDate}
%\AddToShipoutPictureBG{% Add picture to background of every page
% \AtPageLowerLeft{%
% \raisebox{1.2\baselineskip}{\makebox[\paperwidth]{\begin{minipage}{21cm}\centering
% %\textcolor{orange}{\gitInfo \hspace{0.15cm}(\total{points} points)}
% \textcolor{orange}{\gitInfo}
% \end{minipage}}}%
% }
%}
% per definir mides de figures
\newcommand{\figSizeMax}{1.0\columnwidth}
\newcommand{\figSizeLarge}{0.8\columnwidth}
\newcommand{\figSizeMidLarge}{0.7\columnwidth}
\newcommand{\figSizeMid}{0.6\columnwidth}
\newcommand{\figSizeMidSmall}{0.5\columnwidth}
% Variables matematiques i altres
\usepackage{color}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\newcommand{\TODO}[1]{{\color{red}{[{TODO:} #1}]}}
\newcommand{\COMMENT}[1]{{\color{darkgreen}{[#1}]}}
\newcommand{\XXX}[3]{{\color{blue}{{[#1$\rightarrow$#2:} #3{]}}}}
% Uncomment next line to hide all comments
%\renewcommand{\XXX}[3]{}
%\renewcommand{\TODO}[1]{}
%\renewcommand{\COMMENT}[1]{}
% Necessari per una de les equacions (perquè es vegi bé)
\def\mathLarge#1{\mbox{\LARGE $#1$}}
%quote al final
\renewenvironment{quotation}
{\begin{trivlist} \setlength\leftskip{2cm} \setlength\rightskip{0pt}
\item\relax}
{\end{trivlist}}
%OJO PONER DE NUEVO
%\input{ch00/variables_matematiques}
% ************ Lines for draft mode ************
% \usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,bindingoffset=0.8cm,includeheadfoot,paper=a4paper]{geometry}
% \linespread{1.6}
% **********************************************
\hyphenation{Universitat Pompeu Fabra}
%------------------------------------------------------------------------------------------------
% -----------------------------------------------------------------------------------------------
%------------------------------------------------------------------------------------------------
%------------------------------------------------------------------------------------------------
\begin{document}
\parindent0ex
\selectlanguage{british}
\setlength\emergencystretch{\hsize}
\include{ch00/portada}
\frontmatter
\include{ch00/preliminarystuff}
%OJO PONER DE NUEVO
\cleartorecto\tableofcontents % presenta la taula de continguts
\renewcommand*\listfigurename{List of figures}
\cleartorecto\listoffigures % presenta la llista de figures
\renewcommand*\listtablename{List of tables}
\cleartorecto\listoftables % presenta la llista de taules
%Esto NO!!!
%\cleartorecto\include{ch00/matematiques}
\mainmatter
\cleartorecto\include{chapters/ch01_introduction}
\cleartorecto\include{chapters/ch02_soa}
\cleartorecto\include{chapters/ch03_linking}
\cleartorecto\include{chapters/ch04_kbconstruction}
\cleartorecto\include{chapters/ch05_musicology}
\cleartorecto\include{chapters/ch06_similarity}
\cleartorecto\include{chapters/ch07_graph-rec}
\cleartorecto\include{chapters/ch08_cold-rec}
\cleartorecto\include{chapters/ch09_multi-class}
\cleartorecto\include{chapters/ch98_conclusions}
\backmatter
\cleartorecto\include{ch99/finalpage}
%\bibliographystyle{plainnat}
%\bibliographystyle{apa}
%\bibliographystyle{apa_jserra}
\bibliographystyle{apa_jserra2}
\cleartorecto\bibliography{biblio_final}
%\cleartorecto\small\bibliography{ch99/jserra}\normalsize
%\cleartorecto\footnotesize\bibliography{ch99/jserra}\normalsize
\let\svaddcontentsline\addcontentsline
\renewcommand\addcontentsline[3]{%
\ifthenelse{\equal{#1}{lof}}{}%
{\ifthenelse{\equal{#1}{lot}}{}{\svaddcontentsline{#1}{#2}{#3}}}}
\appendix
\cleartorecto\include{ch99/pubs}
\cleartorecto\include{ch99/datasets}
%\cleartorecto\include{ch99/quotation}
\cleartorecto\newpage\thispagestyle{empty}\mbox{}
%\cleartorecto\newpage\thispagestyle{empty}\mbox{}
\end{document}
%------------------------------------------------------------------------------------------------
% -----------------------------------------------------------------------------------------------
%------------------------------------------------------------------------------------------------
%------------------------------------------------------------------------------------------------