-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesis.tex
130 lines (105 loc) · 3.47 KB
/
thesis.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
\documentclass[11pt]{report}
\usepackage{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{siunitx}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[all]{hypcap} % ref link aligned to float top (KEEP AFTER HYPERREF!)
\usepackage[font={sf,small}]{caption} % smaller sans font in captions
\usepackage{fancyhdr} % header/footer customization
\usepackage[style=alphabetic]{biblatex} % citations with style [Xyz12]
\usepackage{booktabs} % \*rule commands for tabular
\usepackage{lineno} % \linenumbers
\newlength\bindingoffset
\setlength\bindingoffset{1cm}
\geometry{%
a4paper,
asymmetric, % twoside, but marginpar are always to the right
centering,
textwidth=360pt, % default LaTeX textwidth with 11pt (345pt for 10pt)
top=1.8cm,
bottom=1.8cm,
marginparwidth=3.4cm,
headsep=10pt,
footskip=17pt,
bindingoffset=\bindingoffset,
% showframe,
}
\addtolength\marginparwidth{-0.5\bindingoffset}
% \linenumbers % print line numbers (for the draft)
\addbibresource{thesis.bib}
\graphicspath{{figures/}}
\sisetup{%
detect-all, % for units, use the font of the text where they appear
table-number-alignment=center, % the S columns of tabular are center-aligned
}
% small sans font for marginpar
\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\oldmarginpar{\sffamily\tiny #1}}
% commands for supervisors' comments
\newcommand\stracka[1]{\marginpar{\itshape #1}}
\newcommand\paoloni[1]{\marginpar{\ttfamily #1}}
% hides margin notes
\renewcommand\marginpar[1]\relax
% url prefix for file preview
\newcommand\repofileurl{https://github.com/Gattocrucco/sipmfilter/blob/master}
% scriptlink command. usage: \scriptlink{filename}
\newcommand\scriptlink[1]{\texttt{(\href{\repofileurl/figthesis/#1}{#1})}}
% scriptcaption command
% usage: \scriptcaption{label prefix}{script prefix}{label}{caption}
% the command will define the label and append a link to the python script
% on github
\newcommand\scriptcaption[4]{
\caption{
\label{#1:#3} #4
\scriptlink{#2#3.py}
}
}
\newcommand\figcaption[2]{\scriptcaption{fig}{fig}{#1}{#2}}
\newcommand\tabcaption[2]{\scriptcaption{tab}{fig}{#1}{#2}}
% widecenter command
% center the contents even if they are larger than the text width
\newcommand\widecenter[1]{\noindent\hspace{-\textwidth}\makebox[3\textwidth][c]{#1}}
% includempl command
% command to include a pdf generated by matplotlib, 0.78125 = 360pt / 6.4in
\newcommand\includempl[1]{\includegraphics[scale=0.78125]{#1}}
\newlength\pagenumbermargin
\setlength\pagenumbermargin{2.9cm}
\addtolength\pagenumbermargin{-0.5\bindingoffset}
\newcommand\hdrside{RO,LE}
\newcommand\sharedstyle{%
\renewcommand\headrulewidth{0pt}
\fancyhf{}
\fancyhfoffset\pagenumbermargin
\fancyfoot[\hdrside]\thepage
}
\fancypagestyle{plain}\sharedstyle
\pagestyle{fancy}
\sharedstyle
\newcommand\chapterhdr[1]{\clearpage\fancyhead[\hdrside]{\uppercase{#1}}}
\begin{document}
\include{title}
\chapterhdr{contents}
\tableofcontents
\chapterhdr{introduction}
\include{intro}
\chapterhdr{chapter~\thechapter}
\include{darkmat}
\include{darkside}
\include{data}
\include{snr}
\include{timeres}
\include{rate}
\include{anal}
\include{end}
\chapterhdr{appendix~\thechapter}
\appendix
\include{analplot}
\include{fit}
\include{code}
\chapterhdr{bibliography}
\printbibliography
\end{document}