293 lines
7.5 KiB
TeX
293 lines
7.5 KiB
TeX
\documentclass[12pt]{report}
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
%% Load Packages %%
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
\usepackage[
|
|
%top=2cm,
|
|
%bottom=2cm,
|
|
%left=2cm,
|
|
%right=2cm,
|
|
headheight=20pt,
|
|
centering
|
|
]{geometry}
|
|
\geometry{a4paper}
|
|
|
|
|
|
\usepackage[utf8]{inputenc} %% use UTF-8, maybe not needed since 2018
|
|
\usepackage[english]{babel} %% language
|
|
|
|
\pagestyle{headings}
|
|
|
|
\usepackage{scrlayer-scrpage}
|
|
|
|
\ifoot[]{}
|
|
\cfoot[]{}
|
|
\ofoot[\pagemark]{\pagemark}
|
|
\pagestyle{scrplain}
|
|
|
|
\usepackage[
|
|
backend=biber,
|
|
style=ieee,
|
|
sorting=ynt
|
|
]{biblatex} %% for citations
|
|
\addbibresource{document.bib}
|
|
|
|
\usepackage{import} %% specify path for import
|
|
|
|
%% math packages
|
|
\usepackage{graphicx} %% for pictures
|
|
\usepackage{float}
|
|
\usepackage{amssymb} %% math symbols
|
|
\usepackage{amsmath} %% math matrix etc
|
|
\usepackage{tabularray} %% better tables
|
|
\usepackage{booktabs} %% rules for tables
|
|
\usepackage{mathrsfs}
|
|
\usepackage{mathtools}
|
|
\usepackage{algpseudocode} %% loads algorithmicx
|
|
\usepackage{amsthm}
|
|
\usepackage{thmtools} %% theorems
|
|
|
|
%% plot packages
|
|
\usepackage{pgfplots} %% plots used with \begin{tikzpicture}
|
|
\usepackage{tikz} %% for pictures
|
|
\usetikzlibrary{trees}
|
|
\usetikzlibrary{matrix, positioning, fit}
|
|
\pgfplotsset{width=10cm,compat=newest}
|
|
|
|
%% design packages
|
|
\usepackage{enumitem} %% for lists and enumerating
|
|
\usepackage{color}
|
|
\usepackage{xcolor,colortbl} % xcolor for defining colors, colortbl for table colors
|
|
\usepackage{makecell} %% for multiple lines in cell of table
|
|
\usepackage{cancel}
|
|
\usepackage{pgfornament} %% ornaments
|
|
\usepackage{multicol}
|
|
\usepackage{subcaption}
|
|
\usepackage{bold-extra}
|
|
|
|
%% load last
|
|
\usepackage{csquotes} %% correct language also for citations
|
|
\usepackage[hidelinks]{hyperref} %% links for table of contents, load last
|
|
\usepackage{bookmark} %% for better table of contents
|
|
|
|
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
%% Configuration of the packages %%
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
|
|
\linespread{1}
|
|
\raggedbottom %% spaces if page is empty % chktex 1
|
|
|
|
%% set max table of contents recursion to subsection (3->subsubsecition)
|
|
\setcounter{tocdepth}{3}
|
|
\setcounter{secnumdepth}{3}
|
|
|
|
%% use bar instead of arrow for vectors
|
|
\renewcommand{\vec}[1]{\bar{#1}}
|
|
%% easy norm
|
|
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
|
|
|
|
\DeclareMathOperator{\Tr}{tr}
|
|
|
|
% argmin and argmax
|
|
\DeclareMathOperator*{\argmax}{argmax}
|
|
\DeclareMathOperator*{\argmin}{argmin}
|
|
\DeclareMathOperator{\diag}{diag}
|
|
|
|
%% itemize use less vertical space (use olditemize for default behaviour)
|
|
\let\olditemize=\itemize%% old itemize
|
|
\let\endolditemize=\enditemize%% old end itemize
|
|
\renewenvironment{itemize}{\olditemize\itemsep-0.2em}{\endolditemize}
|
|
|
|
%% items in itemize emph+box
|
|
%% usage: \ieb{Class:} for simple item
|
|
%% \ieb[4cm]{Class:} for specific size of box
|
|
\newcommand{\ieb}[2][2cm]{
|
|
\makebox[#1][l]{\emph{#2}}
|
|
} %% TODO: replace with description environment (? maybe)
|
|
|
|
% less vertical space around align & align*
|
|
\newcommand{\zerodisplayskips}{
|
|
\setlength{\abovedisplayskip}{0pt}
|
|
\setlength{\belowdisplayskip}{0pt}
|
|
\setlength{\abovedisplayshortskip}{0pt}
|
|
\setlength{\belowdisplayshortskip}{0pt}
|
|
}
|
|
|
|
% make dotfill use all the space available
|
|
\renewcommand{\dotfill}{
|
|
\leavevmode\cleaders\hbox to 1.00em{\hss .\hss }\hfill\kern0pt } % chktex 1 chktex 26
|
|
|
|
\setlength{\fboxsep}{-\fboxrule} % for debugging
|
|
|
|
|
|
%% PACKAGE algorithm
|
|
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
|
|
|
|
|
|
%% PACKAGE tabularray
|
|
\UseTblrLibrary{amsmath}
|
|
|
|
|
|
%% PACKAGE color
|
|
\definecolor{red}{rgb}{1, 0.1, 0.1}
|
|
\definecolor{lightgreen}{rgb}{0.55, 0.87, 0.47}
|
|
\definecolor{gray}{rgb}{0.3, 0.3, 0.3}
|
|
\newcommand{\lgt}{\cellcolor{lightgreen}} %% light green in tables
|
|
\newcommand{\gry}{\textcolor{gray}} %% gray text
|
|
\newcommand{\rd}{\textcolor{red}} %% red text
|
|
|
|
%% PACKAGE minipage
|
|
\newcommand{\thend}[1]{\begin{center}
|
|
\begin{minipage}[c][1em][c]{#1}
|
|
\dotfill{}
|
|
\end{minipage}
|
|
\end{center}}
|
|
|
|
|
|
%% PACKAGE thmtools
|
|
\declaretheoremstyle[
|
|
headfont=\normalfont\bfseries,
|
|
notefont=\mdseries,
|
|
bodyfont=\normalfont,
|
|
qed=\qedsymbol{}
|
|
]{steo}
|
|
\declaretheorem[name={Theorem}, numbered=no, style=steo]{mtheo}
|
|
|
|
\declaretheoremstyle[
|
|
headfont=\normalfont\bfseries,
|
|
notefont=\mdseries,
|
|
bodyfont=\normalfont,
|
|
qed=\qedsymbol{}
|
|
]{slemma}
|
|
\declaretheorem[name={Lemma}, numbered=yes, style=slemma]{mlemma}
|
|
|
|
\declaretheoremstyle[
|
|
headfont=\normalfont\bfseries,
|
|
notefont=\mdseries,
|
|
bodyfont=\normalfont,
|
|
]{sdef}
|
|
\declaretheorem[numbered=no, style=sdef]{mdef}
|
|
|
|
\declaretheoremstyle[
|
|
spaceabove=-6pt,
|
|
spacebelow=6pt,
|
|
headfont=\normalfont\bfseries,
|
|
bodyfont=\normalfont,
|
|
postheadspace=1em,
|
|
qed=$\blacksquare$,
|
|
headpunct={:}
|
|
]{sprf}
|
|
\declaretheorem[name={Proof}, style=sprf, numbered=no]{mproof}
|
|
|
|
% -------------------- Fancy style --------------------
|
|
|
|
% \usepackage{fancyhdr}
|
|
% \pagestyle{fancy}
|
|
% \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
|
% \setlength{\headheight}{22pt}
|
|
% \fancyhead[R]{\leftmark}
|
|
% \fancyhead[L]{\smallLogoA}
|
|
% \setlength{\parskip}{0.5em}
|
|
|
|
|
|
\usepackage{titlesec}
|
|
\titlespacing*{\chapter}{0pt}{-20pt}{20pt}
|
|
\titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Huge}
|
|
|
|
|
|
%% ......................................................................... %%
|
|
%% local changes
|
|
% \setcounter{secnumdepth}{0}
|
|
|
|
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
|
|
\title{Document}
|
|
\date{\today}
|
|
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
\newcommand{\logoA}{\includegraphics[height=4cm]{images/UniPi Logo.png}}
|
|
\newcommand{\smallLogoA}{\includegraphics[height=0.6cm]{images/UniPi Logo.png}}
|
|
\newcommand{\course}{Computational Mathematics for Learning and Data Analysis}
|
|
\newcommand{\assignment}{Project Track 19 --- Non-ML}
|
|
\newcommand{\authors}{
|
|
\begin{tblr}{colspec={c}, cells={cmd={\bf\textit}}}
|
|
De Castelli Fabrizio \\
|
|
Rossi Elvis
|
|
\end{tblr}
|
|
}
|
|
|
|
\newcommand{\emails}{
|
|
\begin{tblr}{colspec = {rr}, colsep={0pt}, cells={cmd={\textit}}, rowsep={4pt}}
|
|
f.decastelli&\gry{@studenti.unipi.it} \\
|
|
e.rossi46&\gry{@studenti.unipi.it}
|
|
\end{tblr}
|
|
}
|
|
\newcommand{\universityA}{Università di Pisa}
|
|
|
|
\newcommand{\academicYear}{Academic Year 2023--2024}
|
|
\newcommand{\department}{Department of Computer Science}
|
|
|
|
% Inter-word Spacing
|
|
\usepackage{setspace}
|
|
\setstretch{1.25}
|
|
|
|
\begin{document}
|
|
|
|
\begin{titlepage}
|
|
|
|
\centering
|
|
\logoA\par
|
|
\vspace{0.7cm}
|
|
{\scshape\LARGE \universityA\par}
|
|
|
|
\vspace{2cm}
|
|
{\scshape\Huge \textbf{\course} \par}
|
|
|
|
\vspace{1cm}
|
|
{\scshape\LARGE \assignment\par}
|
|
|
|
\vfill
|
|
|
|
{\scshape\LARGE \textbf{Team 16} \par}
|
|
\vspace{0.5cm}
|
|
\begin{tblr}{colspec = {Q[m,c]Q[m,c]}, colsep={6pt}}
|
|
{\Large \authors} & {\large \emails}
|
|
\end{tblr} \\
|
|
\vspace{1cm}
|
|
{\large \academicYear\par}
|
|
|
|
\end{titlepage}
|
|
|
|
\pagenumbering{roman}
|
|
\setcounter{page}{1}
|
|
|
|
% Table of contents
|
|
\tableofcontents
|
|
|
|
\clearpage
|
|
\pagenumbering{arabic}
|
|
\setcounter{page}{1}
|
|
|
|
|
|
\begin{sloppypar}
|
|
% Chapters
|
|
\include{(1) - introduction/introduction}
|
|
\include{(2) - problem definition/problem definition}
|
|
\include{(3) - algorithms/algorithms}
|
|
\include{(4) - experiments/experiments}
|
|
\include{(6) - conclusion/conclusion}
|
|
\include{(7) - proofs/proofs}
|
|
\end{sloppypar}
|
|
|
|
\printbibliography{}
|
|
|
|
\end{document}
|
|
|
|
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%
|
|
|
|
%%% Local Variables:
|
|
%%% TeX-command-extra-options: "-shell-escape"
|
|
%%% End:
|