Add template latex

This commit is contained in:
Mariano Sciacco
2021-04-13 10:24:41 +02:00
parent 495d5a6172
commit 4b76e1a899
6 changed files with 184 additions and 0 deletions

128
main.tex Normal file
View File

@@ -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

BIN
res/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -0,0 +1,3 @@
\section{Appendice}
ehw

View File

@@ -0,0 +1,2 @@
\section{Conclusione}

View File

@@ -0,0 +1,22 @@
\section{Introduzione}
\subsection{Abstract}
Hello world

29
res/sections_list.tex Normal file
View File

@@ -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}