281 lines
6.9 KiB
TeX
281 lines
6.9 KiB
TeX
% font size
|
|
\documentclass[11pt]{report}
|
|
|
|
% Margini
|
|
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm, head=21.75pt, centering]{geometry}
|
|
|
|
% Interlinea
|
|
\linespread{1.1}
|
|
|
|
% Lingua e codifica
|
|
\usepackage[italian]{babel}
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage[T1]{fontenc}
|
|
|
|
% Font TeX Gyre
|
|
\usepackage{tgpagella} % Serif
|
|
\usepackage{newpxmath} % Matematica
|
|
\usepackage[scale=0.9]{tgheros} % Sans-serif
|
|
\usepackage{tgcursor} % Monospace
|
|
\usepackage{microtype}
|
|
\usepackage{parskip} % no indent
|
|
|
|
% Penalties
|
|
\widowpenalty=10000
|
|
\clubpenalty=10000
|
|
\displaywidowpenalty=10000
|
|
|
|
\usepackage{newfloat}
|
|
\DeclareFloatingEnvironment[fileext=lof2, listname={Grafici}, name=Grafico]{graph}
|
|
|
|
% Acronimi
|
|
\usepackage{acro}
|
|
\DeclareAcronym{can}{short = CAN, long = Controller Area Network}
|
|
\DeclareAcronym{canh}{short = CANH, long = CAN High}
|
|
\DeclareAcronym{canl}{short = CANL, long = CAN Low}
|
|
\DeclareAcronym{lin}{short = LIN, long = Local Interconnect Network}
|
|
\DeclareAcronym{id}{short = ID, long = Identifier}
|
|
\DeclareAcronym{ecu}{short = ECU, long = Electronic Control Unit}
|
|
\DeclareAcronym{dtc}{short = DTC, long = Diagnostic Trouble Code}
|
|
\DeclareAcronym{pgn}{short = PGN, long = Parameter Group Number}
|
|
\DeclareAcronym{sae}{short = SAE, long = Society of Automotive Engineers}
|
|
\DeclareAcronym{emea}{short = EMEA, long = Europe Middle East and Africa}
|
|
\DeclareAcronym{hv}{short = HV, long = High Voltage}
|
|
\DeclareAcronym{lv}{short = LV, long = Low Voltage}
|
|
\DeclareAcronym{obd2}{short = OBDII, long = On-board Diagnostics 2}
|
|
|
|
|
|
|
|
% Pagina e intestazioni
|
|
\usepackage{scrlayer-scrpage}
|
|
\ifoot[]{}
|
|
\cfoot[]{}
|
|
\ofoot[\pagemark]{\pagemark}
|
|
\pagestyle{scrplain}
|
|
|
|
% Colori generali
|
|
\usepackage{xcolor}
|
|
\definecolor{komatsublue}{RGB}{20, 10, 154}
|
|
\definecolor{komatsuyellow}{RGB}{234, 170, 0}
|
|
\definecolor{unimoregrey}{RGB}{84, 84, 84}
|
|
\definecolor{black}{RGB}{0, 0, 0}
|
|
\definecolor{white}{RGB}{255, 255, 255}
|
|
\definecolor{urlblue}{RGB}{0, 0, 238}
|
|
|
|
% Colori codice
|
|
\definecolor{lightgray}{rgb}{.9,.9,.9}
|
|
\definecolor{darkgray}{rgb}{.4,.4,.4}
|
|
\definecolor{purple}{rgb}{0.65, 0.12, 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}
|
|
|
|
% Didascalie
|
|
\usepackage{caption}
|
|
\captionsetup{
|
|
font={small, it},
|
|
labelfont={bf, color=black},
|
|
labelsep=quad,
|
|
margin=10pt,
|
|
singlelinecheck=false,
|
|
justification=centering
|
|
}
|
|
\captionsetup[table]{font={small}, labelfont={bf, color=black}}
|
|
|
|
\usepackage[hidelinks]{hyperref}
|
|
\hypersetup{
|
|
colorlinks=true,
|
|
linkcolor=black,
|
|
filecolor=black,
|
|
citecolor=black,
|
|
urlcolor=unimoregrey,
|
|
pdfborder={0 0 0.5},
|
|
}
|
|
|
|
% Immagini e tabelle
|
|
\usepackage{graphicx}
|
|
\usepackage{subcaption}
|
|
\usepackage{adjustbox}
|
|
\usepackage{booktabs}
|
|
\usepackage{makecell}
|
|
\usepackage{multirow}
|
|
\usepackage{float}
|
|
\usepackage{array}
|
|
\usepackage{placeins}
|
|
|
|
|
|
% Formattazione titoli
|
|
\usepackage{titlesec}
|
|
\titleformat{\chapter}[display]
|
|
{\normalfont\sffamily\bfseries}
|
|
{\huge\chaptertitlename\ \thechapter}
|
|
{10pt}
|
|
{\Huge}
|
|
[\vspace{1ex}{\color{komatsublue}\titlerule[1.5pt]}]
|
|
|
|
\titleformat{\section}
|
|
{\normalfont\Large\bfseries\color{black}}
|
|
{\thesection}
|
|
{1em}
|
|
{}
|
|
\titlespacing*{\section}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
|
|
|
|
\titleformat{\subsection}
|
|
{\normalfont\large\bfseries\color{black}}
|
|
{\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{algorithm}
|
|
\usepackage{algpseudocode}
|
|
\usepackage{xurl}
|
|
|
|
% Utility
|
|
\usepackage{verbatim}
|
|
\usepackage{filehook}
|
|
\usepackage{pifont}
|
|
\usepackage[bottom]{footmisc}
|
|
\usepackage{tikz}
|
|
\usetikzlibrary{calc}
|
|
|
|
% Stili per i linguaggi di programmazione
|
|
\usepackage{minted}
|
|
\usepackage[most]{tcolorbox}
|
|
\tcbuselibrary{minted, skins}
|
|
|
|
\newtcblisting{codice}[1][]{
|
|
minted language=c,
|
|
minted options={
|
|
fontsize=\footnotesize,
|
|
breaklines,
|
|
autogobble,
|
|
linenos,
|
|
numbersep=5pt
|
|
},
|
|
colback=backcolour,
|
|
colframe=unimoregrey!30,
|
|
arc=4mm,
|
|
boxrule=0.5pt,
|
|
left=6pt, right=6pt, top=6pt, bottom=6pt,
|
|
#1
|
|
}
|
|
|
|
\usepackage{enumitem}
|
|
\setlist[itemize]{
|
|
label=\textcolor{black}{\textbullet},
|
|
leftmargin=*,
|
|
itemsep=0.5ex,
|
|
topsep=1ex
|
|
}
|
|
\setlist[enumerate]{
|
|
label=\textcolor{black}{\arabic*.},
|
|
leftmargin=*,
|
|
itemsep=0.5ex,
|
|
topsep=1ex
|
|
}
|
|
|
|
\begin{document}
|
|
|
|
\begin{titlepage}
|
|
\begin{center}
|
|
\includegraphics[width=8cm]{assets/images/unimore/Sigillo2015.png}
|
|
\vspace{1cm}
|
|
|
|
{\huge\color{black} 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-9) \\}
|
|
\vspace{3cm}
|
|
{\LARGE\color{black} \textbf{ Reverse engineering del protocollo CAN bus di un \\ escavatore idraulico cingolato Komatsu PC210 NLC-8 } }\\
|
|
\vspace{3cm}
|
|
\end{center}
|
|
|
|
\vspace{2cm}
|
|
|
|
\noindent
|
|
\begin{minipage}[t]{0.47\textwidth}
|
|
\raggedright
|
|
{\large\color{unimoregrey}\bfseries Relatore:}\\[0.3ex]
|
|
{\large\color{black}Prof. Carlo Augusto Grazia}
|
|
\end{minipage}\hfill
|
|
\begin{minipage}[t]{0.47\textwidth}
|
|
\raggedleft
|
|
{\large\color{unimoregrey}\bfseries Candidato:}\\[0.3ex]
|
|
{\large\color{black}Erick Ahmed}
|
|
\end{minipage}
|
|
|
|
\vfill
|
|
{\color{komatsublue}\rule{\textwidth}{1pt}}
|
|
\hrulefill\\
|
|
\centering{\large\color{unimoregrey}\bfseries ANNO ACCADEMICO 2025/2026 }
|
|
\end{titlepage}
|
|
|
|
\clearpage
|
|
\pagenumbering{roman}
|
|
|
|
% indice
|
|
\tableofcontents
|
|
|
|
% figure
|
|
\cleardoublepage
|
|
\phantomsection
|
|
\renewcommand{\listfigurename}{Figure}
|
|
\listoffigures
|
|
|
|
% grafici
|
|
\cleardoublepage
|
|
\phantomsection
|
|
\listofgraphs
|
|
|
|
% tabelle
|
|
\cleardoublepage
|
|
\phantomsection
|
|
\renewcommand{\listtablename}{Tabelle}
|
|
\listoftables
|
|
|
|
% codice
|
|
\cleardoublepage
|
|
\phantomsection
|
|
\renewcommand{\lstlistingname}{Codice}
|
|
\renewcommand{\lstlistlistingname}{Codice}
|
|
\lstlistoflistings
|
|
|
|
% acronimi
|
|
\cleardoublepage
|
|
\phantomsection
|
|
\chapter*{Acronimi}
|
|
\printacronyms[heading=none]
|
|
|
|
\clearpage
|
|
\pagestyle{scrplain}
|
|
\pagenumbering{arabic}
|
|
\clearpage
|
|
|
|
\pagestyle{scrplain}
|
|
\pagenumbering{arabic}
|
|
|
|
% Aggiungi qui i capitoli
|
|
\input{chapters/00_abstract.tex}
|
|
\input{chapters/01_introduction.tex}
|
|
\input{chapters/05_conclusions.tex}
|
|
|
|
\input{chapters/99_acknowledgments.tex}
|
|
\clearpage
|
|
|
|
\addcontentsline{toc}{chapter}{Bibliografia}
|
|
|
|
\printbibliography[heading=bibliography, title=Bibliografia]
|
|
|
|
\nocite{*}
|
|
|
|
\end{document}
|