-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.sty
107 lines (95 loc) · 3.38 KB
/
style.sty
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
\ProvidesPackage{style}
% Packages
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{graphicx} % Inclusion d'images
\graphicspath{{images/}} % le chemin ou aller chercher les graphics
\usepackage{listings} % package for code listing
\usepackage{color} % package to use color
\usepackage{hyperref} % pour les liens cliquables
\usepackage{pifont} % http://ctan.org/pkg/pifont
\usepackage[titles]{tocloft} % Format table des matières
\usepackage{titlesec} % Pour de jolis titres de chapitre
\usepackage{amssymb}
% Couleurs
\definecolor{darkGreen}{RGB}{0,0.6,0}
\definecolor{gray}{RGB}{0.5,0.5,0.5}
\definecolor{mauve}{RGB}{0.58,0,0.82}
\definecolor{pblue}{rgb}{0.13,0.13,1}
\definecolor{pgreen}{rgb}{0,0.5,0}
\definecolor{pred}{rgb}{0.9,0,0}
\definecolor{pgrey}{rgb}{0.46,0.45,0.48}
\definecolor{red}{rgb}{1,0,0}
\definecolor{green}{rgb}{0,1,0}
% Setup pour les liens
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={Projet IOT 2018}, % title
pdfauthor={Classe IOT1-A}, % author
pdfnewwindow=true, % links in new PDF window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links (change box color with linkbordercolor)
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=blue, % color of external links
breaklinks=true
}
% Headers and footers
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\lhead{\includegraphics[width=50px]{logoheig2}}\chead{}\rhead{Projet IOT}
\lfoot{Classe IOT 2018}\cfoot{}\rfoot{\thepage}
% Options
\setlength\parindent{0pt}
% Format des titres
\titleformat{\chapter}[block]
{\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter~:}{20pt}{\LARGE}
\titlespacing*{\chapter}{0pt}{-20pt}{20pt}
\setcounter{secnumdepth}{2}
% Format des pages
\let\ps@plain\ps@fancy
% Macro pour ajouter une page vide
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
% Format de la page des matières
\renewcommand{\cftchapdotsep}{\cftdotsep}
\setcounter{tocdepth}{2}
% Nouvelles commandes
\newcommand{\cmark}{\textcolor{pgreen}{\ding{51}}}
\newcommand{\xmark}{\textcolor{pred}{\ding{55}}}
% Code
\lstdefinestyle{Java}
{
language=Java,
inputencoding=utf8,
frame=single,
showspaces=false,
showtabs=false,
breaklines=true,
showstringspaces=false,
breakatwhitespace=true,
commentstyle=\color{pgreen},
keywordstyle=\color{pblue},
stringstyle=\color{pred},
basicstyle=\fontsize{9}{11}\ttfamily,
numbers=left,
numbersep=5px,
numberstyle=\tiny\color{pgrey},
stepnumber=1,
tabsize=2,
}