-
Notifications
You must be signed in to change notification settings - Fork 1
/
thesis.tex
134 lines (112 loc) · 3.55 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
131
132
133
134
\documentclass[inscr,ack,dvipsnames]{dithesis}
%\usepackage{graphicx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% User-specific package inclusions %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{import}
\PassOptionsToPackage{hyphens}{url}\usepackage[hidelinks]{hyperref}
\usepackage{tcolorbox}
\usepackage{graphicx}
\usepackage{float}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{setspace}
% \usepackage[ruled,vlined,linesnumbered,noresetcount]{algorithm2e}
\usepackage{pgfplots}
\usepackage{textcomp}
\usepackage{tabularx}
\usepackage{listings}
\usepackage[font=footnotesize, labelfont=bf, textfont=bf, justification=centering]{caption}
\usepackage[bottom]{footmisc}
\usepackage{hyperref}
\usepackage{hyphenat}
\usepackage{chngcntr}
\usepackage[titles]{tocloft} % needed for making chapter titles upper case
\usepackage{subfig}
\usepackage[cache=false, newfloat]{minted}
\usepackage{cite}
\usepackage{epigraph}
\usepackage{pdfpages}
\usepackage{dirtree}
\usepackage{epigraph,varwidth}
% Reduce space between bib items
\let\OLDthebibliography\thebibliography
\renewcommand\thebibliography[1]{
\OLDthebibliography{#1}
\setlength{\parskip}{0pt}
\setlength{\itemsep}{0pt plus 0.3ex}
}
\renewcommand{\epigraphsize}{\small}
\setlength{\epigraphwidth}{0.6\textwidth}
\renewcommand{\textflush}{flushright}
\renewcommand{\sourceflush}{flushright}
% A useful addition
\newcommand{\epitextfont}{\itshape}
\newcommand{\episourcefont}{\scshape}
\makeatletter
\newsavebox{\epi@textbox}
\newsavebox{\epi@sourcebox}
\newlength\epi@finalwidth
\renewcommand{\epigraph}[2]{%
\vspace{\beforeepigraphskip}
{\epigraphsize\begin{\epigraphflush}
\epi@finalwidth=\z@
\sbox\epi@textbox{%
\varwidth{\epigraphwidth}
\begin{\textflush}\epitextfont#1\end{\textflush}
\endvarwidth
}%
\epi@finalwidth=\wd\epi@textbox
\sbox\epi@sourcebox{%
\varwidth{\epigraphwidth}
\begin{\sourceflush}\episourcefont#2\end{\sourceflush}%
\endvarwidth
}%
\ifdim\wd\epi@sourcebox>\epi@finalwidth
\epi@finalwidth=\wd\epi@sourcebox
\fi
\leavevmode\vbox{
\hb@xt@\epi@finalwidth{\hfil\box\epi@textbox}
\vskip1.75ex
\hrule height \epigraphrule
\vskip.75ex
\hb@xt@\epi@finalwidth{\hfil\box\epi@sourcebox}
}%
\end{\epigraphflush}
\vspace{\afterepigraphskip}}}
\makeatother
\makeatletter
\AtBeginEnvironment{minted}{\dontdofcolorbox}
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}} % Hack to disable red boxes around syntax errors in JSON code snippets
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% User-specific package inclusions %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\import{./}{configuration.tex}
\import{./}{authors.tex}
\begin{document}
% counting
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{lstlisting}{chapter}
\frontmatter
\mainmatter
% add main chapters/should have capital letters
\import{./}{introduction.tex}
\import{./}{preliminaries.tex}
\import{./}{relatedwork.tex}
\import{./}{sharemind.tex}
\import{./}{medical-study.tex}
\import{./}{pp-algorithms.tex}
\import{./}{implementation.tex}
\import{./}{datasets.tex}
\import{./}{evaluations.tex}
\import{./}{conclusions.tex}
\backmatter
\end{document}