forked from StefanoGenettiUniTN/MachineLearning_Passerini
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprefix.tex
More file actions
53 lines (46 loc) · 3.18 KB
/
prefix.tex
File metadata and controls
53 lines (46 loc) · 3.18 KB
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
\usepackage[english]{babel} % Sets the document language to English
\usepackage{listings} % For including source code listings
\usepackage{hyperref} % For creating hyperlinks within the document
\usepackage[font=small, labelfont=bf]{caption} % Customizes captions for figures and tables
\usepackage{multicol} % Allows multicolumn layout
\usepackage[ruled, vlined, algo2e]{algorithm2e} % Typesets algorithms
\usepackage[toc, page]{appendix} % Adds appendices to the document
\usepackage{float} % Improves the interface for defining floating objects
\usepackage{amsfonts} % Provides additional fonts, especially mathematical symbols
\usepackage{algorithm} % Float environment for algorithms
\usepackage{algorithmic} % Typesets algorithms
\usepackage{amssymb} % Provides various mathematical symbols
\usepackage{derivative} % For typesetting derivatives
\usepackage[framemethod=tikz]{mdframed} % Creates framed boxes with shaded backgrounds
\usepackage{tikz} % Package for creating diagrams and drawings
\usetikzlibrary{shapes, arrows.meta, positioning} % Importing TikZ libraries for additional functionalities.
\usepackage{amsmath} % Enhanced math features
\usepackage{graphicx} % Loading the package for including graphics
\usepackage{amsmath} % Additional math features
\usepackage{mathtools} % Enhances mathematical typesetting
\usepackage[makeroom]{cancel} % Adds a cancellation bar in math mode
\usepackage{subcaption} % Provides support for subfigures and subcaptions
\usepackage{enumitem} % Customizes lists
\usepackage{bbold} % Provides the identity matrix symbol
\usepackage{multirow} % Allows table cells to span multiple rows
\graphicspath{images} % Sets the path for graphics files
\setcounter{secnumdepth}{5} % Sets the depth for section numbering
\lstset{
frame=tb, % Draws a frame at the top and bottom of code blocks
tabsize=4, % Sets tab space width
showstringspaces=false, % Does not mark spaces in strings
numbers=none, % Does not display line numbers
commentstyle=\color{green}, % Sets the comment color
keywordstyle=\color{red}, % Sets the keyword color
stringstyle=\color{blue}, % Sets the string color
breaklines=true, postbreak=\mbox{\textcolor{green}{$\hookrightarrow$}\space} % Enables line wrapping with a symbol at the end
}
\newcommand{\defi}[1]{\begin{mdframed} [nobreak=true,hidealllines=false,linecolor=blue!40,linewidth=2pt,backgroundcolor=blue!5,]{#1} \end{mdframed}}
% Defines a command for framed definitions with a blue background
\newcommand{\defib}[2]{\begin{mdframed} [hidealllines=false,linecolor=blue!40,linewidth=2pt,backgroundcolor=blue!5,] \begin{center} \textbf{{#1}} \end{center} \vspace{2mm} {#2} \end{mdframed}}
% Defines a command for framed definitions with a blue background and a title
\newcommand{\theo}[1]{\begin{mdframed} [hidealllines=false,linecolor=yellow!40,linewidth=2pt,backgroundcolor=yellow!5,]{#1} \end{mdframed}}
% Defines a command for framed theorems with a yellow background
\newcommand{\sumup}[1]{\begin{mdframed} [hidealllines=false,linecolor=red!40,linewidth=2pt,backgroundcolor=red!5,]{#1} \end{mdframed}}
% Defines a command for framed summaries with a red background
\newcommand{\tab}[1][0.5cm]{\hspace*{#1}} % Defines a command for adding horizontal space