-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble_ai_project.sty
172 lines (160 loc) · 5.08 KB
/
preamble_ai_project.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
\usepackage[margin=1in,a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autolanguage]{numprint}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{enumitem,amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{pdfpages}
\usepackage{pgfplots}
\usepackage{fancyhdr}
\usepackage{pdfpages}
\usepackage{lastpage}
\usepackage{cleveref}
\usepackage{ragged2e}
\usepackage{listings}
\usepackage{graphicx}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{stmaryrd}
\newcommand{\stkout}[1]{\ifmmode\text{\sout{\ensuremath{#1}}}\else\sout{#1}\fi}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale res if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
%
%
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
%
\lstset{frame=tb,
language=Python,
aboveskip=3mm,
belowskip=3mm,
label={lst:code_direct}
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
%
%
%
\pagestyle{fancy}
\pgfplotsset{compat=newest}
\usetikzlibrary{calc}
\setlength{\headheight}{73.96703pt}
\addtolength{\topmargin}{-49.96703pt}
\setlength{\footskip}{45.81593pt}
\setlength{\parindent}{0cm}
\hypersetup{
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
colorlinks=true
}
\urlstyle{same}
%
\newcommand{\unilogo}[1]{\includegraphics[width=#1\linewidth]{../res/unige.pdf}}
\newcommand{\hypersetp}{
\hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, pdfauthor={Noah-Munz}}
\urlstyle{same}
}
%
\definecolor{light-gray}{gray}{0.95}
\newcommand{\code}[1]{$\mbox{\colorbox{light-gray}{\texttt{#1}}}$}
\newcommand{\quo}[1]{``{#1}''}
%
\newcommand{\iitv}[1]{\llbracket{#1}\rrbracket}
%
\newcommand{\Zs}{\mathcal{Z}}
\newcommand{\Ys}{\mathcal{Y}}
\newcommand{\Xs}{\mathcal{X}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\es}{\varnothing}
\DeclareMathOperator{\Ima}{Im}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\renewcommand{\and}{\wedge}
\newcommand{\ra}{\rightarrow}
\newcommand{\inv}[1]{{#1}^{-1}}
\newcommand{\br}[1]{\{{#1}\}}
\newcommand{\fa}{\forall}
\newcommand{\te}{\exists}
\newcommand{\lra}{\longrightarrow}
\newcommand{\Lra}{\Longrightarrow}
\newcommand{\lla}{\longleftarrow}
\newcommand{\Lla}{\Longleftarrow}
\newcommand{\llra}{\longleftrightarrow}
\newcommand{\summ}[5]{\sum_{#1}^{#2}{\sum_{#3}^{#4}{#5}}}
\newcommand{\Ex}[2]{\mathbb{E}_{#1}{\left[\,#2\,\right]}}
\newcommand{\Llra}{\Longleftrightarrow}
\newcommand{\dom}[1]{\mathcal{D}_{#1}}
%
\newcommand{\set}[2]{\{{#1}\ |\ {#2}\}}
\newcommand{\scalproduct}[2]{\langle #1, #2 \rangle}
\newcommand{\s}{\Sigma}
\newcommand{\X}{\mathcal{X}}
\newcommand{\Y}{\mathcal{Y}}
\newcommand{\Z}{\mathcal{Z}}
\DeclareMathSymbol{*}{\mathbin}{symbols}{"01}
\newcommand{\lastpage}{\pageref{LastPage}}
%
\newcommand{\xor}{\oplus}
% HACK: DEFINE HERE YOUR TP RELATED SETTINGS E.G. DATE, AUTHOR (ADDING STUDENT NUMBER OR NOT)
\newcommand{\nb}{0X }
\newcommand{\DATE}{Janvier 2024}
\newcommand{\coursecode}{13X005 }
\newcommand{\TITLE}{Intelligence Artificielle }
\newcommand{\tpTitle}{ Projet -- Regression Logistique / Naive Bayes }
\newcommand{\AUTHOR}{Gregory Sedykh, Leandre Catogni, Noah Peterschmitt, Noah Munz, Michel Donnet}
%
\title{\vspace{-2cm}
{\huge Université de Genève \\ -- \\ Sciences Informatiques} \\
\vspace{0.6cm}
\unilogo{0.70} \\
\vspace{1.1cm}
{\huge \coursecode \TITLE \\ \vspace{0.4cm} \href{https://github.com/David-Kyrat/13X005-AI-Project/blob/master/README.md}{\tpTitle} }
\vspace{0.4cm}
\href{https://github.com/David-Kyrat/13X005-AI-Project}{Repository Github: 13X005-AI-Project}
\vspace{0.1cm}
}
%
\lhead{Université de Genève \\ Sciences Informatiques}
\rhead{\TITLE \\ Regression Logistique / Naive Bayes}
\cfoot{} \lfoot{\hspace{-1.8cm} \unilogo{0.08}}
\rfoot{Page \thepage \hspace{0.5mm} / \lastpage \hspace{-1cm}}
\newcommand{\intro}{
% HINT: defining \author and \data in a macro to override the empty `\date{}` and `\author{}` that keep getting generated by pandoc in main .tex file. Idem for hypersetup
% \hypersetp
\setkeys{Gin}{width=\maxwidth*3,height=\maxheight*3,keepaspectratio}
% ^^ allow free sizing of image (even really big ones that might overflow)
\author{\AUTHOR}
\date{\DATE}
\maketitle \thispagestyle{empty} \newpage \tableofcontents \thispagestyle{empty} \clearpage
\setcounter{page}{1}
%
\begin{center} {\huge \tpTitle} \end{center}
\vspace{0.3cm}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
}