Improve on default template with better colors and styles
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
% Elaborato della prova finale per il conseguimento della laurea triennale in Ingegneria Informatica presso il dipartimento di Ingegneria "Enzo Ferrari" dell'università di Modena e Reggio Emilia
|
||||
|
||||
% Carattere dimensione 12
|
||||
% font size
|
||||
\documentclass[12pt]{report}
|
||||
|
||||
% Margini (2.5cm su tutti i lati)
|
||||
@@ -8,91 +6,129 @@
|
||||
|
||||
% Interlinea
|
||||
\linespread{1.5}
|
||||
\usepackage[italian]{babel} % applicazione regole di scrittura per la lingua italiana
|
||||
\usepackage[utf8]{inputenc} % codifica UTF-8
|
||||
\usepackage{scrlayer-scrpage} % stili pagina per il frontespizio
|
||||
|
||||
% Lingua e codifica
|
||||
\usepackage[italian]{babel}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
|
||||
% Stile ClassicThesis
|
||||
\usepackage{newpxtext, newpxmath}
|
||||
\usepackage{microtype}
|
||||
\usepackage{parskip} % no indent
|
||||
|
||||
% Pagina e intestazioni
|
||||
\usepackage{scrlayer-scrpage}
|
||||
\ifoot[]{}
|
||||
\cfoot[]{}
|
||||
\ofoot[\pagemark]{\pagemark}
|
||||
\pagestyle{scrplain}
|
||||
\usepackage[hidelinks]{hyperref} % pacchetto per l'utilizzo dei link
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{inconsolata}
|
||||
\usepackage{newtxtext,newtxmath} % font Times New Roman (simile)
|
||||
\usepackage{graphicx} % inserimento di immagini
|
||||
\usepackage{csquotes} % per le citazioni "in blocco"
|
||||
\usepackage{booktabs}
|
||||
\usepackage{adjustbox}
|
||||
\usepackage{filehook}
|
||||
\usepackage{makecell}
|
||||
\usepackage{pifont}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[italian]{babel}
|
||||
\usepackage{graphicx} % inserimento di immagini
|
||||
\usepackage{subcaption} % per le sottofigure
|
||||
\usepackage[bottom]{footmisc}
|
||||
\usepackage[backend=biber, sorting=nty, defernumbers=true]{biblatex} % bibliografia con pacchetto biblatex
|
||||
\usepackage{verbatim} % per usare \begin{comment} \end{comment}
|
||||
\usepackage{multirow}
|
||||
\appto{\bibsetup}{\raggedright}
|
||||
\addbibresource{bibliography.bib} % Collega il file della bibliografia
|
||||
|
||||
\usepackage{titlesec} % per la formattazione dei titoli delle sezioni, capitoli etc.
|
||||
\usepackage{float} % per il posizionamento delle immagini
|
||||
% Colori generali
|
||||
\usepackage{xcolor}
|
||||
\definecolor{unimorered}{RGB}{237, 77, 45}
|
||||
\definecolor{unimoregrey}{RGB}{84, 84, 84}
|
||||
\definecolor{unimoreblack}{RGB}{0, 0, 0}
|
||||
\definecolor{unimorewhite}{RGB}{255, 255, 255}
|
||||
\definecolor{urlblue}{RGB}{0, 0, 238}
|
||||
|
||||
\usepackage{listings} % per il codice di programmazione
|
||||
\usepackage{color}
|
||||
\usepackage{xurl}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{calc}
|
||||
\usepackage{booktabs} % for \toprule, \midrule, \bottomrule in tables
|
||||
\usepackage{algorithm}
|
||||
\usepackage{algpseudocode}
|
||||
|
||||
% Definizione dei colori per il codice
|
||||
% Colori codice
|
||||
\definecolor{lightgray}{rgb}{.9,.9,.9}
|
||||
\definecolor{darkgray}{rgb}{.4,.4,.4}
|
||||
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
|
||||
\definecolor{mygreen}{rgb}{0,0.6,0}
|
||||
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
|
||||
\definecolor{mymauve}{rgb}{0.58,0,0.82}
|
||||
\definecolor{green}{rgb}{0,0.6,0}
|
||||
\definecolor{grey}{rgb}{0.5,0.5,0.5}
|
||||
\definecolor{mauve}{rgb}{0.58,0,0.82}
|
||||
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
||||
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
linkcolor=unimoreblack,
|
||||
filecolor=unimoreblack,
|
||||
citecolor=unimoreblack,
|
||||
urlcolor=urlblue,
|
||||
}
|
||||
|
||||
% Immagini e tabelle
|
||||
\usepackage{graphicx}
|
||||
\usepackage{subcaption}
|
||||
\usepackage{adjustbox}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{makecell}
|
||||
\usepackage{multirow}
|
||||
\usepackage{float}
|
||||
|
||||
% Formattazione titoli
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\chapter}[display]
|
||||
{\normalfont\huge\bfseries\color{unimoreblack}}
|
||||
{\chaptertitlename\ \thechapter}
|
||||
{20pt}
|
||||
{\Huge\color{unimoreblack}}
|
||||
\titlespacing*{\chapter}{0pt}{-20pt}{40pt}
|
||||
|
||||
\titleformat{\section}
|
||||
{\normalfont\Large\bfseries\color{unimoreblack}}
|
||||
{\thesection}
|
||||
{1em}
|
||||
{}
|
||||
\titlespacing*{\section}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
|
||||
|
||||
\titleformat{\subsection}
|
||||
{\normalfont\large\bfseries\color{unimoreblack}}
|
||||
{\thesubsection}
|
||||
{1em}
|
||||
{}
|
||||
\titlespacing*{\subsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
|
||||
|
||||
% Citazioni e bibliografia
|
||||
\usepackage{csquotes}
|
||||
\usepackage[backend=biber, sorting=nty, defernumbers=true]{biblatex}
|
||||
\appto{\bibsetup}{\raggedright}
|
||||
\addbibresource{bibliography.bib}
|
||||
|
||||
% Codice e algoritmi
|
||||
\usepackage{listings}
|
||||
\usepackage{inconsolata}
|
||||
\usepackage{algorithm}
|
||||
\usepackage{algpseudocode}
|
||||
\usepackage{xurl}
|
||||
|
||||
% Utility
|
||||
\usepackage{verbatim}
|
||||
\usepackage{filehook}
|
||||
\usepackage{pifont}
|
||||
\usepackage[bottom]{footmisc}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{calc}
|
||||
|
||||
% Stili per i linguaggi di programmazione
|
||||
\lstdefinelanguage{JavaScript}{
|
||||
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, let, const, if, in, while, do, else, case, break},
|
||||
keywordstyle=\color{blue}\bfseries,
|
||||
ndkeywords={class, export, boolean, throw, implements, import, this},
|
||||
ndkeywordstyle=\color{darkgray}\bfseries,
|
||||
identifierstyle=\color{black},
|
||||
sensitive=false,
|
||||
comment=[l]{//},
|
||||
morecomment=[s]{/*}{*/},
|
||||
morestring=[b]',
|
||||
morestring=[b]",
|
||||
commentstyle=\color{mygreen}\ttfamily,
|
||||
stringstyle=\color{mymauve}\ttfamily,
|
||||
\lstdefinelanguage{MyPython}{
|
||||
language=Python,
|
||||
morekeywords={with, as},
|
||||
keywordstyle=\bfseries\color{blue},
|
||||
commentstyle=\color{green},
|
||||
stringstyle=\color{mauve},
|
||||
backgroundcolor=\color{backcolour},
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
showstringspaces=false,
|
||||
extendedchars=true,
|
||||
showspaces=false,
|
||||
numbers=left,
|
||||
numberstyle=\footnotesize,
|
||||
numbersep=9pt,
|
||||
tabsize=2,
|
||||
breaklines=true,
|
||||
showtabs=false,
|
||||
captionpos=b
|
||||
captionpos=t
|
||||
}
|
||||
|
||||
\lstdefinelanguage{MyPython}{
|
||||
language=Python,
|
||||
\lstdefinelanguage{C}{
|
||||
language=C,
|
||||
morekeywords={with, as},
|
||||
keywordstyle=\bfseries\color{blue},
|
||||
commentstyle=\color{mygreen},
|
||||
stringstyle=\color{mymauve},
|
||||
commentstyle=\color{green},
|
||||
stringstyle=\color{mauve},
|
||||
backgroundcolor=\color{backcolour},
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
showstringspaces=false,
|
||||
@@ -137,47 +173,43 @@
|
||||
keepspaces=true,
|
||||
}
|
||||
|
||||
% Formato delle intestazioni
|
||||
\titleformat{\chapter}[block]
|
||||
{\normalfont\LARGE\bfseries}{\thechapter.}{0.5em}{\LARGE}
|
||||
\titlespacing*{\chapter}{0pt}{-20pt}{25pt}
|
||||
|
||||
|
||||
\usepackage{enumitem}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{titlepage}
|
||||
|
||||
% UniMore color accent line
|
||||
{\color{unimorered}\rule{\textwidth}{2pt}}
|
||||
|
||||
\begin{center}
|
||||
\includegraphics[width=8cm]{assets/images/unimore/Sigillo2015.png}
|
||||
\vspace{1cm}
|
||||
|
||||
{\LARGE{ UNIVERSITÀ DEGLI STUDI DI MODENA \\E REGGIO EMILIA \\}}
|
||||
{\large{ Dipartimento di Ingegneria "Enzo Ferrari" \\}}
|
||||
{\large{ Corso di Laurea Triennale in Ingegneria del Veicolo (L-??) \\}}
|
||||
{\LARGE\color{unimoregrey}{ UNIVERSITÀ DEGLI STUDI DI MODENA \\E REGGIO EMILIA \\}}
|
||||
{\large\color{unimoregrey}{ Dipartimento di Ingegneria "Enzo Ferrari" \\}}
|
||||
{\large\color{unimoregrey}{ Corso di Laurea Triennale in Ingegneria del Veicolo (L-??) \\}}
|
||||
\vspace{3cm}
|
||||
{\Large { \textbf{<Titolo dell'Elaborato>} }}\\
|
||||
{\Large\color{unimoreblack}{ \textbf{<Titolo dell'Elaborato>} }}\\
|
||||
\vspace{3cm}
|
||||
\end{center}
|
||||
|
||||
\begin{minipage}[t]{0.47\textwidth}
|
||||
{\large{\bf Tutor:}\\}
|
||||
{\large Prof. <Nome Cognome>}
|
||||
{\large\color{unimoregrey}{\bf Tutor:}\\}
|
||||
{\large\color{unimoreblack}{Prof. <Nome Cognome>}}
|
||||
\end{minipage}\hfill\begin{minipage}[t]{0.47\textwidth}\raggedleft
|
||||
{\large{\bf Candidato:}\\}
|
||||
{\large <Nome Cognome>}\\
|
||||
{\large Matricola <matricola>}
|
||||
{\large\color{unimoregrey}{\bf Candidato:}\\}
|
||||
{\large\color{unimoreblack}{<Nome Cognome>}\\}
|
||||
{\large\color{unimoreblack}{Matricola <matricola>}}
|
||||
\end{minipage}
|
||||
|
||||
\vfill
|
||||
{\color{unimorered}\rule{\textwidth}{1pt}}
|
||||
\hrulefill\\
|
||||
\centering{\large{\bf ANNO ACCADEMICO 20XX/20XX }}
|
||||
\centering{\large\color{unimoregrey}{\bf ANNO ACCADEMICO 20XX/20XX }}
|
||||
\end{titlepage}
|
||||
|
||||
\pagestyle{empty}
|
||||
\clearpage
|
||||
\pagenumbering{roman}
|
||||
|
||||
\tableofcontents % Genera l'Indice
|
||||
\renewcommand{\listfigurename}{Elenco delle Figure}
|
||||
@@ -188,8 +220,8 @@
|
||||
\lstlistoflistings % Genera la Lista dei Codici
|
||||
|
||||
\clearpage
|
||||
\pagestyle{scrplain} % Ripristina lo stile di pagina normale (con numero di pagina)
|
||||
\setcounter{page}{1} % Fa ripartire la numerazione da 1
|
||||
\pagestyle{scrplain}
|
||||
\pagenumbering{arabic}
|
||||
|
||||
% Aggiungi qui i capitoli
|
||||
\input{chapters/01_introduction.tex}
|
||||
@@ -209,4 +241,4 @@
|
||||
|
||||
\nocite{*}
|
||||
|
||||
\end{document}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user