Statistics
| Branch: | Revision:

root / thesis / main.tex @ c6e2ce5a

History | View | Annotate | Download (3.6 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{emptypage}
8
\usepackage{float}             % For inserting figures side-by-side
9
\usepackage{subfig}
10

    
11
\usepackage{graphicx}              % to include figures
12
\graphicspath{ {report_images/ images/} }       % '/' is needed
13
\newcommand*{\LargerCdot}{\raisebox{-1.5ex}{\scalebox{3}{$\cdot$}}}
14
\usepackage{caption}
15
\usepackage{booktabs}              % for beautiful tables
16

    
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

    
26
\lstset{language=Java}
27
\renewcommand{\lstlistingname}{Code} % change "Listing 1.1" to "Code 1.1"
28

    
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
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
79
\usepackage{booktabs} % To thicken table lines
80

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

    
84
\usepackage[toc]{appendix}
85

    
86
% \usepackage[lofdepth,lotdepth]{subfig}
87

    
88
\usepackage[noabbrev,capitalise]{cleveref}
89

    
90
% Font for Unicode
91
\usepackage[utf8]{inputenc}
92
% \usepackage[vietnam,english]{babel}
93

    
94
\newcommand*{\blankpage}{%
95
\vspace*{\fill}
96
    \begin{center}
97
        % This page is intentionally left blank.
98
    \end{center}
99
\vspace{\fill}}
100

    
101
\begin{document}
102

    
103
\pagenumbering{gobble}
104
\include{titlepage}
105
\include{acknowledgements}
106
\blankpage
107

    
108
\pagenumbering{roman}
109
\include{toc}
110

    
111
\pagenumbering{arabic}
112
\include{ch1_introduction}
113
\blankpage
114
\include{ch2_centrality}
115
\blankpage
116
\include{ch3_computation_of_bc}
117
\include{ch4_experiment_setup}
118
\blankpage
119
\include{ch5_experiment_result}
120
\blankpage
121
\include{ch6_conclusion}
122
\include{appendix}
123

    
124
\addcontentsline{toc}{chapter}{\listfigurename}
125
\listoffigures
126
\addcontentsline{toc}{chapter}{\listtablename}
127
\listoftables
128

    
129
\bibliography{references}{}
130
% \bibliographystyle{IEEEtranSN}
131
\bibliographystyle{IEEEtranN}
132

    
133
\cleardoublepage
134
\end{document}