diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..a50df3b --- /dev/null +++ b/main.tex @@ -0,0 +1,128 @@ +% --------------------------- +% Lab1 - Algoritmi Avanzati +% ---------------------- +% (2021) +% Mariano Sciacco +% Enrico Buratto +% --------------------------- + + +% --------------------------- +% Package e configurazione +% --------------------------- + +\documentclass[12pt]{article} + + \usepackage{graphicx} + \usepackage[utf8]{inputenc} + \usepackage[italian]{babel} + \usepackage{float} + \usepackage{subcaption} + \usepackage{wrapfig} + \usepackage[toc,page]{appendix} + + % INDICE - spaziatura del ToC + \usepackage{tocloft} + \renewcommand\cftsecafterpnum{\vskip18pt} + + + % DOCUMENTO - margini + \usepackage[ + top=2.5cm, + bottom=2.5cm, + left=1.75cm, + right=1.75cm, + headheight=14.5pt, + ]{geometry} + + % DOCUMENTO - stile e pagina finale + \usepackage{fancyhdr} + \usepackage{lastpage} + + \pagestyle{fancy} + \fancyhead[L]{ } + % \fancyhf{} + \fancyfoot{} + \fancyfoot[L]{ \textit{Laboratorio 1} - Algoritmi Avanzati} + \renewcommand{\headrulewidth}{0.1pt} + \renewcommand{\footrulewidth}{0.1pt} + \rfoot{ Pagina \thepage \hspace{1pt} di \pageref*{LastPage}} + + \usepackage{xcolor} + + \setlength{\parindent}{2.2em} + \setlength{\parskip}{1em} + \renewcommand{\baselinestretch}{1.075} + + + % LINK - colori degli url interni ed esterni + \usepackage{hyperref} + \hypersetup{ + colorlinks, + linkcolor={red!50!black}, + citecolor={blue!50!black}, + urlcolor={blue!80!black} + } + \PassOptionsToPackage{hyphens}{url}\usepackage{hyperref} + + % EXTRA - linea dritta + \newcommand{\hr}{\par\vspace{-.1\ht\strutbox}\noindent\hrulefill\par} + + % EXTRA - Paginazione e appendice + \pagenumbering{Roman} % first pages + \renewcommand{\appendixname}{Appendice} + \renewcommand\appendixpagename{Appendice} + \renewcommand\appendixtocname{Appendice} + + % EXTRA - TOC e LOF empty page numbering + \usepackage{tocloft} + \tocloftpagestyle{empty}%<- sets the page style on the first page of ToC, LoF and LoT + \usepackage[nottoc]{tocbibind}%<- add an ToC entry for LoF and LoT + + +% --------------------------- +% Intestazione +% --------------------------- + +\title{ \huge\textsc{Laboratorio 1} \\ + \large\textsc{Algoritmi Avanzati}} +\author{\textit{Enrico Buratto} (69696969)\\ + \textit{Mariano Sciacco} (2007692)} +\date{\small Aprile 2021} + + +% --------------------------- +% Corpo del documento +% --------------------------- + +\begin{document} + +\begin{figure}[t!] + \centering + \includegraphics[height=18em]{res/images/logo.png} +\end{figure} + +\maketitle +\thispagestyle{empty} + +\begin{center} + \vspace{12em} + \hr + \textit{Corso di Laurea Magistrale in Informatica, Dipartimento di Matematica, UniPD} +\end{center} + +\newpage +\renewcommand{\baselinestretch}{0.95}\normalsize +\tableofcontents +\renewcommand{\baselinestretch}{1.075}\normalsize + +\newpage +\input{res/sections_list} + + +\end{document} + + +% EOF + + diff --git a/res/images/logo.png b/res/images/logo.png new file mode 100644 index 0000000..e0cdc4e Binary files /dev/null and b/res/images/logo.png differ diff --git a/res/sections/appendice.tex b/res/sections/appendice.tex new file mode 100644 index 0000000..18f7ba4 --- /dev/null +++ b/res/sections/appendice.tex @@ -0,0 +1,3 @@ +\section{Appendice} + +ehw \ No newline at end of file diff --git a/res/sections/conclusione.tex b/res/sections/conclusione.tex new file mode 100644 index 0000000..76216a9 --- /dev/null +++ b/res/sections/conclusione.tex @@ -0,0 +1,2 @@ +\section{Conclusione} + diff --git a/res/sections/introduzione.tex b/res/sections/introduzione.tex new file mode 100644 index 0000000..e4caea9 --- /dev/null +++ b/res/sections/introduzione.tex @@ -0,0 +1,22 @@ +\section{Introduzione} + +\subsection{Abstract} + +Hello world + + + + + + + + + + + + + + + + + diff --git a/res/sections_list.tex b/res/sections_list.tex new file mode 100644 index 0000000..199dcdb --- /dev/null +++ b/res/sections_list.tex @@ -0,0 +1,29 @@ + +% --------------------------- +% Lista delle sezioni +% --------------------------- + +% Figure e link +\newpage +\input{res/sections/figures} + +% Start counting pages +\pagenumbering{arabic} +\clearpage +\setcounter{page}{1} + +% Introduzione +\newpage +\input{res/sections/introduzione} + + +% Conclusione e sviluppi futuri +\input{res/sections/conclusione} + +% Appendice +\newpage +\begin{appendices} + + \input{res/sections/appendice} + +\end{appendices} \ No newline at end of file