Statistics
| Branch: | Revision:

root / thesis / main.tex @ df1b1a42

History | View | Annotate | Download (2.99 KB)

1
\documentclass[12pt]{report}
2
% This first part of the file is called the PREAMBLE. It includes
3
% customizations and command definitions. The preamble is everything
4
% between \documentclass and \begin{document}.
5

    
6
\usepackage[margin=1in]{geometry}  % set the margins to 1in on all sides
7
\usepackage{graphicx}              % to include figures
8
\graphicspath{ {report_images/ images/} }       % '/' is needed
9
\usepackage{caption}
10
\usepackage{subcaption}
11
\usepackage{booktabs}              % for beautiful tables
12

    
13
\usepackage{epstopdf}              % for the .ps image
14
\epstopdfsetup{update}
15
\DeclareGraphicsExtensions{.eps}
16
\epstopdfDeclareGraphicsRule{.eps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER #1 \OutputFile}
17
\usepackage{amsmath}               % great math stuff
18
\usepackage{amsfonts}              % for blackboard bold, etc
19

    
20
\usepackage{amsthm}                % better theorem environments
21
\theoremstyle{definition}
22
\newtheorem{definition}{Definition}[section]
23

    
24
\usepackage{listings}              % to add code
25
\lstset{language=Java}
26
\renewcommand{\lstlistingname}{Code} % change "Listing 1.1" to "Code 1.1"
27

    
28
\usepackage[utf8]{inputenc}
29
\usepackage{color}
30

    
31
\usepackage{cite}
32
\usepackage[sort&compress,square,numbers]{natbib}
33
% \usepackage[sort&compress,square,comma,authoryear]{natbib}
34

    
35
% \usepackage{hyperref}       % from http://tex.stackexchange.com/questions/3568/how-does-one-typeset-a-url
36
\usepackage[capitalise,noabbrev]{cleveref}         % Must be loaded after hyperref
37

    
38
\definecolor{codegreen}{rgb}{0,0.6,0}
39
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
40
\definecolor{codepurple}{rgb}{0.58,0,0.82}
41
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
42

    
43
\lstdefinestyle{mystyle}{
44
    backgroundcolor=\color{backcolour},
45
    commentstyle=\color{codegreen},
46
    keywordstyle=\color{magenta},
47
    numberstyle=\tiny\color{codegray},
48
    stringstyle=\color{codepurple},
49
    basicstyle=\footnotesize,
50
    breakatwhitespace=false,
51
    breaklines=true,
52
    captionpos=b,
53
    keepspaces=true,
54
    numbers=left,
55
    numbersep=5pt,
56
    showspaces=false,
57
    showstringspaces=false,
58
    showtabs=false,
59
    tabsize=2
60
}
61

    
62
\lstset{style=mystyle}
63
\DeclareMathOperator{\id}{id}
64

    
65
\newcommand{\bd}[1]{\mathbf{#1}}  % for bolding symbols
66
\newcommand{\RR}{\mathbb{R}}      % for Real numbers
67
\newcommand{\ZZ}{\mathbb{Z}}      % for Integers
68
\newcommand{\col}[1]{\left[\begin{matrix} #1 \end{matrix} \right]}
69
\newcommand{\comb}[2]{\binom{#1^2 + #2^2}{#1+#2}}
70

    
71
\usepackage[T1]{fontenc}
72
\AtBeginDocument{%
73
  \begingroup\lccode`~=`_%
74
  \lowercase{\endgroup\let~}_%
75
  \catcode`_=12
76
}
77

    
78
\usepackage{booktabs} % To thicken table lines
79

    
80
\usepackage{algorithm}
81
\usepackage[noend]{algpseudocode} % For pseudocode
82

    
83
\usepackage[noabbrev,capitalise]{cleveref}
84

    
85
\begin{document}
86

    
87
\include{titlepage}
88
\include{toc}
89

    
90
\pagenumbering{arabic}
91
\include{ch1_introduction}
92
\include{ch2_centrality}
93
\include{ch3_computation_of_bc}
94
\include{ch4_experiment_setup}
95
\include{ch5_experiment_result}
96

    
97

    
98
\clearpage
99
\bibliography{references}{}
100
% \bibliographystyle{IEEEtranSN}
101
\bibliographystyle{IEEEtranN}
102

    
103
\end{document}