Statistics
| Branch: | Revision:

root / latex / note.tex @ 4f432e4a

History | View | Annotate | Download (2.78 KB)

1
% http://www.ams.jhu.edu/~ers/learn-latex3
2
% http://www.ams.jhu.edu/~ers/learn-latex/
3

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

    
9
\usepackage[margin=1in]{geometry}  % set the margins to 1in on all sides
10
\usepackage{graphicx}              % to include figures
11
\graphicspath{ {note_images/} {images/} }       % '/' is needed
12
\usepackage[noabbrev,capitalise]{cleveref}
13
\usepackage{amsmath}               % great math stuff
14
\usepackage{amsfonts}              % for blackboard bold, etc
15
\usepackage{amsthm}                % better theorem environments
16
\usepackage{listings}              % to add code
17
\lstset{language=Java}
18
\renewcommand{\lstlistingname}{Code} % change "Listing 1.1" to "Code 1.1"
19

    
20
\usepackage[utf8]{inputenc}
21
\usepackage{color}
22

    
23
\usepackage[colorlinks]{hyperref}       % from http://tex.stackexchange.com/questions/3568/how-does-one-typeset-a-url
24
\hypersetup{citecolor=pink}
25
\hypersetup{linkcolor=red}
26
\hypersetup{urlcolor=blue}
27
\usepackage{cleveref}
28

    
29
\definecolor{codegreen}{rgb}{0,0.6,0}
30
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
31
\definecolor{codepurple}{rgb}{0.58,0,0.82}
32
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
33

    
34
\lstdefinestyle{mystyle}{
35
    backgroundcolor=\color{backcolour},
36
    commentstyle=\color{codegreen},
37
    keywordstyle=\color{magenta},
38
    numberstyle=\tiny\color{codegray},
39
    stringstyle=\color{codepurple},
40
    basicstyle=\footnotesize,
41
    breakatwhitespace=false,
42
    breaklines=true,
43
    captionpos=b,
44
    keepspaces=true,
45
    numbers=left,
46
    numbersep=5pt,
47
    showspaces=false,
48
    showstringspaces=false,
49
    showtabs=false,
50
    tabsize=2
51
}
52

    
53
\lstset{style=mystyle}
54
\DeclareMathOperator{\id}{id}
55

    
56
\newcommand{\bd}[1]{\mathbf{#1}}  % for bolding symbols
57
\newcommand{\RR}{\mathbb{R}}      % for Real numbers
58
\newcommand{\ZZ}{\mathbb{Z}}      % for Integers
59
\newcommand{\col}[1]{\left[\begin{matrix} #1 \end{matrix} \right]}
60
\newcommand{\comb}[2]{\binom{#1^2 + #2^2}{#1+#2}}
61

    
62
\usepackage[T1]{fontenc}
63
\AtBeginDocument{%
64
  \begingroup\lccode`~=`_%
65
  \lowercase{\endgroup\let~}_%
66
  \catcode`_=12
67
}
68

    
69
\usepackage{booktabs} % To thicken table lines
70

    
71
\begin{document}
72

    
73
\title{Thesis - Note Taking}
74
\nocite{*}
75

    
76
\author{166071 - Pham Xuan Quynh Nguyen \\
77
DISI - University of Trento}
78

    
79
\maketitle
80

    
81
\clearpage
82
    \include{note_w00}
83
    \include{note_w01}
84
    \include{note_w02}
85
    \include{note_w03}
86
    \include{note_w04}
87
    \include{note_w05}
88
    \include{note_w06}
89
    \include{note_w07}
90
    \include{note_w08}
91
    \include{note_w09}
92
    \include{note_w10}
93
    \include{note_w11}
94
    \include{note_w12}
95
    \include{note_w13}
96
    \include{note_w14}
97
    \include{note_w15}
98
    \include{tips}
99
    \include{important_commands}
100

    
101
\end{document}