% A LaTeX template for MSc Thesis submissions to
% Politecnico di Milano (PoliMi) - School of Industrial and Information Engineering
%
% S. Bonetti, A. Gruttadauria, G. Mescolini, A. Zingaro
% e-mail: template-tesi-ingind@polimi.it
%
% Last Revision: October 2021
%
% Copyright 2021 Politecnico di Milano, Italy. NC-BY
\documentclass{Configuration_Files/PoliMi3i_thesis}
%------------------------------------------------------------------------------
% REQUIRED PACKAGES AND CONFIGURATIONS
%------------------------------------------------------------------------------
% CONFIGURATIONS
\usepackage{parskip} % For paragraph layout
\usepackage{setspace} % For using single or double spacing
\usepackage{emptypage} % To insert empty pages
\usepackage{multicol} % To write in multiple columns (executive summary)
\setlength\columnsep{15pt} % Column separation in executive summary
\setlength\parindent{10pt} % Indentation
\raggedbottom
% PACKAGES FOR TITLES
\usepackage{titlesec}
% \titlespacing{\section}{left spacing}{before spacing}{after spacing}
\titlespacing{\section}{0pt}{3.3ex}{2ex}
\titlespacing{\subsection}{0pt}{3.3ex}{1.65ex}
\titlespacing{\subsubsection}{0pt}{3.3ex}{1ex}
\usepackage{color}
% PACKAGES FOR LANGUAGE AND FONT
\usepackage[english]{babel} % The document is in English
\usepackage[utf8]{inputenc} % UTF8 encoding
\usepackage[T1]{fontenc} % Font encoding
\usepackage[11pt]{moresize} % Big fonts
% PACKAGES FOR IMAGES
\usepackage{graphicx}
\usepackage{svg}
\usepackage{transparent} % Enables transparent images
\usepackage{eso-pic} % For the background picture on the title page
%\usepackage{subfig} % Numbered and caption subfigures using \subfloat.
\usepackage[export]{adjustbox}
\usepackage{tikz} % A package for high-quality hand-made figures.
\usetikzlibrary{}
\graphicspath{{./Images/}} % Directory of the images
\usepackage{caption} % Coloured captions
\usepackage{subcaption}
\usepackage{xcolor} % Coloured captions
\usepackage{amsthm,thmtools,xcolor} % Coloured "Theorem"
\usepackage{float}
% STANDARD MATH PACKAGES
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{cancel}
\usepackage[overload]{empheq} % For braced-style systems of equations.
\usepackage{fix-cm} % To override original LaTeX restrictions on sizes
% PACKAGES FOR TABLES
\usepackage{tabularx}
\usepackage{longtable} % Tables that can span several pages
\usepackage{colortbl}
% PACKAGES FOR ALGORITHMS (PSEUDO-CODE)
\usepackage{algorithm}
\usepackage{algorithmic}
% PACKAGES FOR REFERENCES & BIBLIOGRAPHY
\usepackage[colorlinks=true,linkcolor=black,anchorcolor=black,citecolor=black,filecolor=black,menucolor=black,runcolor=black,urlcolor=black]{hyperref} % Adds clickable links at references
\usepackage{cleveref}
\usepackage[square, numbers, sort&compress]{natbib} % Square brackets, citing references with numbers, citations sorted by appearance in the text and compressed
\bibliographystyle{abbrvnat} % You may use a different style adapted to your field
% OTHER PACKAGES
\usepackage{pdfpages} % To include a pdf file
\usepackage{afterpage}
\usepackage{lipsum} % DUMMY PACKAGE
\usepackage{fancyhdr} % For the headers
\usepackage{fancyvrb}
\usepackage[acronym]{glossaries}
\usepackage{enumitem}
\fancyhf{}
% Input of configuration file. Do not change config.tex file unless you really know what you are doing.
\input{Configuration_Files/config}
%----------------------------------------------------------------------------
% NEW COMMANDS DEFINED
%----------------------------------------------------------------------------
% EXAMPLES OF NEW COMMANDS
\newcommand{\bea}{\begin{eqnarray}} % Shortcut for equation arrays
\newcommand{\eea}{\end{eqnarray}}
\newcommand{\e}[1]{\times 10^{#1}} % Powers of 10 notation
%----------------------------------------------------------------------------
% ADD YOUR PACKAGES (be careful of package interaction)
%----------------------------------------------------------------------------
%----------------------------------------------------------------------------
% ADD YOUR DEFINITIONS AND COMMANDS (be careful of existing commands)
%----------------------------------------------------------------------------
\input{Thesis_Acronyms}
%----------------------------------------------------------------------------
% BEGIN OF YOUR DOCUMENT
%----------------------------------------------------------------------------
\begin{document}
\fancypagestyle{plain}{%
\fancyhf{} % Clear all header and footer fields
\fancyhead[RO,RE]{\thepage} %RO=right odd, RE=right even
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
%----------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------
\pagestyle{empty} % No page numbers
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the preamble pages
\puttitle{
title=Title of the thesis, % Title of the thesis
name=Name Surname, % Author Name and Surname
course=Computer Science and Engineering \\Ingegneria Informatica, % Study Programme (in Italian)
ID = XXXXXX, % Student ID number (numero di matricola)
advisor= Prof. Name Surname, % Supervisor name
coadvisor={}, % Co-Supervisor name, remove this line if there is none
academicyear={20xx-xx}, % Academic Year
} % These info will be put into your Title page
%----------------------------------------------------------------------------
% PREAMBLE PAGES: ABSTRACT (inglese e italiano), EXECUTIVE SUMMARY
%----------------------------------------------------------------------------
\pagebreak
\pagestyle{empty}
\hspace{0pt}
\vfill
\textit{Dedicated to my family.}
\vfill
\hspace{0pt}
\pagebreak
\startpreamble
\setcounter{page}{1} % Set page counter to 1
% ABSTRACT IN ENGLISH
\chapter*{Abstract}
Here goes the abstract.
\\
\\
\textbf{Keywords:} key, words, go, here% Keywords
% ABSTRACT IN ITALIAN
\chapter*{Abstract in lingua italiana}
Qui va inserito l'abstract in italiano.
\\
\\
\textbf{Parole chiave:} qui, vanno, le, parole, chiave% Keywords (italian)
%----------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES/SYMBOLS
%----------------------------------------------------------------------------
% TABLE OF CONTENTS
\thispagestyle{empty}
\tableofcontents % Table of contents
\thispagestyle{empty}
\cleardoublepage
%-------------------------------------------------------------------------
% THESIS MAIN TEXT
%-------------------------------------------------------------------------
% In the main text of your thesis you can write the chapters in two different ways:
%
%(1) As presented in this template you can write:
% \chapter{Title of the chapter}
% *body of the chapter*
%
%(2) You can write your chapter in a separated .tex file and then include it in the main file with the following command:
% \chapter{Title of the chapter}
% \input{chapter_file.tex}
%
% Especially for long thesis, we recommend you the second option.
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\mainmatter % Begin numeric (1,2,3...) page numbering
% --------------------------------------------------------------------------
% NUMBERED CHAPTERS % Regular chapters following
% --------------------------------------------------------------------------
%-------------------------------------------------------------------------
% BIBLIOGRAPHY
%-------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\bibliography{Thesis_bibliography} % The references information are stored in the file named "Thesis_bibliography.bib"
%-------------------------------------------------------------------------
% APPENDICES
%-------------------------------------------------------------------------
\cleardoublepage
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
% \appendix
% \chapter{Appendix A}
% If you need to include an appendix to support the research in your thesis, you can place it at the end of the manuscript.
% An appendix contains supplementary material (figures, tables, data, codes, mathematical proofs, surveys, \dots)
% which supplement the main results contained in the previous chapters.
% \chapter{Appendix B}
% It may be necessary to include another appendix to better organize the presentation of supplementary material.
\printglossary[type=\acronymtype]
% LIST OF FIGURES
\listoffigures
% LIST OF TABLES
\listoftables
% % LIST OF SYMBOLS
% % Write out the List of Symbols in this page
% \chapter*{List of Symbols} % You have to include a chapter for your list of symbols (
% \begin{table}[H]
% \centering
% \begin{tabular}{lll}
% \textbf{Variable} & \textbf{Description} & \textbf{SI unit} \\\hline\\[-9px]
% $\bm{u}$ & solid displacement & m \\[2px]
% $\bm{u}_f$ & fluid displacement & m \\[2px]
% \end{tabular}
% \end{table}
% ACKNOWLEDGEMENTS
\chapter*{Acknowledgements}
Here you may want to acknowledge someone.
\cleardoublepage
\end{document}