Statistics
| Branch: | Revision:

root / latex / note.tex @ d1ed66aa

History | View | Annotate | Download (2.53 KB)

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

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

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

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

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

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

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

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

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

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

    
68
\begin{document}
69

    
70
\title{Thesis - Note Taking}
71
\nocite{*}
72

    
73
\author{166071 - Pham Xuan Quynh Nguyen \\
74
DISI - University of Trento}
75

    
76
\maketitle
77

    
78
\clearpage
79
    \include{note_w00}
80
    \include{note_w01}
81
    \include{note_w02}
82
    \include{note_w03}
83
    \include{note_w04}
84
    \include{note_w05}
85
    \include{note_w06}
86
    \include{note_w07}
87
    \include{note_w08}
88
    \include{tips}
89
    \include{important_commands}
90

    
91
\end{document}