-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,531 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
147 changes: 147 additions & 0 deletions
147
...riale e dell'Informazione - Politecnico di Milano/Configuration_Files/PoliMi3i_thesis.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
% A LaTeX template for MSc Thesis submissions to | ||
% Politecnico di Milano (PoliMi) - School of Industrial and Information Engineering | ||
% | ||
% P. F. Antonietti, S. Bonetti, A. Gruttadauria, G. Mescolini, A. Zingaro | ||
% | ||
% Last Revision: October 2021 | ||
% | ||
% Copyright 2021 Politecnico di Milano, Italy. Inc. All rights reserved | ||
|
||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesClass{Configuration_Files/PoliMi3i_thesis}[2021/6/30 PoliMi3i thesis submission class] | ||
\ProcessOptions\relax | ||
|
||
%-------------------------------------------------------------------------- | ||
% HANDLING THE STYLE OF THE THESIS | ||
%-------------------------------------------------------------------------- | ||
\LoadClass[12pt, twoside]{book} % 12 pt font, two-sided book style | ||
\RequirePackage[a4paper, includehead, headheight=0.6cm, inner=3.0cm ,outer=2.0cm, top=2.5cm, bottom=2.5cm]{geometry} | ||
|
||
\RequirePackage[bf, font=onehalfspacing]{caption} % caption: FIG in bold, 1.5 line spacing in figure and table captions | ||
\newcommand{\thesisspacing}{\onehalfspacing} | ||
|
||
% Define new command: numbered and un-numbered chapter in Polimi style. | ||
|
||
\let\latexchapter\chapter | ||
\renewcommand{\chapter}{\@ifstar{\polimichapterstar}{\polimichapter}} | ||
|
||
\newcommand{\polimichapter}[1]{ | ||
\cleardoublepage % To make sure the previous headers are passed | ||
\phantomsection % To help hyperref link to the right page | ||
\latexchapter{#1} | ||
\renewcommand{\headrulewidth}{0pt} %removing the horizontal line in the header | ||
%\addcontentsline{toc}{chapter}{#1} % Also adds the chapter name to the Contents | ||
\fancyhead[LO, RE]{ \textbf{\textcolor{bluepoli}\thechapter\hsp\textcolor{bluepoli}{| }\hsp \leftmark}}% Header | ||
\fancyhead[LE, RO]{\thepage} | ||
\vspace{-1cm} | ||
} | ||
|
||
\newcommand{\polimichapterstar}[1]{ | ||
\cleardoublepage % To make sure the previous headers are passed | ||
\phantomsection % To help hyperref link to the right page | ||
\latexchapter*{#1} | ||
\renewcommand{\headrulewidth}{0pt} %removing the horizontal line in the header | ||
\addcontentsline{toc}{chapter}{#1} % Also adds the chapter name to the Contents | ||
\fancyhead[LO, RE]{ \bfseries \textcolor{bluepoli}{| } #1} % Header \textbf{\leftmark} \hspace{1mm}} | ||
\fancyhead[LE, RO]{\thepage} | ||
\vspace{-1cm} | ||
} | ||
|
||
% Define new command: start preamble | ||
\newcommand{\startpreamble}{ | ||
\pagestyle{fancy} % Change the header style | ||
\fancyhf{}% Clear header and footer | ||
\renewcommand{\chaptermark}[1]{\markboth{##1}{}} % Getting the chapter name right | ||
\rhead{\thepage} % Page number at the right of the header | ||
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the preamble pages | ||
\thesisspacing % Double or single spacing | ||
} | ||
|
||
%------------------------------------------------------------------------ | ||
% BUILDING THE TITLE PAGE | ||
%------------------------------------------------------------------------ | ||
|
||
% Define new command: adding background picture (halo) on bottom left (used for empty pages) | ||
\newcommand\BackgroundPic{ | ||
\put(-150,-200){% | ||
\parbox[b][\paperheight]{\paperwidth}{% | ||
\vfill | ||
\centering | ||
\transparent{0.4} | ||
\includegraphics[width=0.85\paperwidth]{./raggiera_polimi.eps} | ||
\vfill | ||
}}} | ||
|
||
% Define new command: adding background picture (halo) on top right (used for cover page) | ||
\newcommand\BackgroundPicTR{% Adding background picture on top right | ||
\put(200,330){% | ||
\parbox[b][\paperheight]{\paperwidth}{% | ||
\vfill | ||
\centering | ||
\transparent{0.4} | ||
\includegraphics[width=0.70\paperwidth]{./raggiera_polimi.eps} | ||
\vfill | ||
}}} | ||
|
||
\RequirePackage{xkeyval} % Handling keyword options. | ||
|
||
% Define keys for title pages | ||
\newif\if@cosupervisorexist\@cosupervisorexistfalse | ||
\define@key[OIST]{title}{title}{\def\thesistitle{#1}} | ||
\define@key[OIST]{title}{course}{\def\course{#1}} | ||
\define@key[OIST]{title}{name}{\def\name{#1}} | ||
\define@key[OIST]{title}{ID}{\def\ID{#1}} | ||
\define@key[OIST]{title}{advisor}{\def\advisor{#1}} | ||
\define@key[OIST]{title}{coadvisor}{\def\coadvisor{#1}\@cosupervisorexisttrue} | ||
\define@key[OIST]{title}{academicyear}{\def\academicyear{#1}} | ||
\define@key[OIST]{title}{course}{\def\course{#1}} | ||
|
||
\providecommand{\puttitle}{} | ||
\renewcommand{\puttitle}[1]{ | ||
\@puttitle{}{#1} | ||
} | ||
|
||
\providecommand{\@puttitle}{} | ||
\renewcommand{\@puttitle}[2]{% | ||
\setkeys[OIST]{title}{#2} | ||
|
||
\begin{titlepage} | ||
\AddToShipoutPicture*{\BackgroundPicTR} | ||
\vfill | ||
%\begin{minipage}{0.95\textwidth} | ||
\begin{minipage}{0.95\textwidth} | ||
\includegraphics[trim={1.2cm 0 0 0},clip, width=0.7\textwidth]{Images/02_ING_IND_INFORMAZIONE_COL_POSITIVO.eps} | ||
\hfill | ||
\\ | ||
\vspace{2.5cm} | ||
\\ | ||
{{\color{bluepoli} \singlespacing \huge \bfseries \thesistitle \par}} | ||
\vspace{1.5cm} | ||
{\color{bluepoli} \bfseries \large{\textsc{Tesi di Laurea Magistrale in\\ \course}}\par} | ||
\vspace{1.5 cm} | ||
{\color{black} \Large {Author:} \bfseries{\name}} | ||
\end{minipage} | ||
\\ | ||
\vspace*{\fill} | ||
\\ | ||
\begin{minipage}{0.85\textwidth} | ||
\normalsize{ | ||
Student ID: {\ID} | ||
\\ | ||
Advisor: {\advisor} | ||
\\ | ||
Co-advisors: {\coadvisor} | ||
\\ | ||
Academic Year: {\academicyear} | ||
} | ||
\end{minipage} | ||
\end{titlepage} | ||
} | ||
|
||
\newcommand\blankpage{% | ||
\null | ||
\AddToShipoutPicture*{\BackgroundPic} | ||
\thispagestyle{empty}% | ||
\addtocounter{page}{-1}% | ||
\newpage | ||
} |
71 changes: 71 additions & 0 deletions
71
...ia Industriale e dell'Informazione - Politecnico di Milano/Configuration_Files/config.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
% Define blue color typical of polimi | ||
\definecolor{bluepoli}{cmyk}{0.4,0.1,0,0.4} | ||
|
||
% Custom theorem environments | ||
\declaretheoremstyle[ | ||
headfont=\color{bluepoli}\normalfont\bfseries, | ||
bodyfont=\color{black}\normalfont\itshape, | ||
]{colored} | ||
|
||
% Set-up caption colors | ||
\captionsetup[figure]{labelfont={color=bluepoli}} % Set colour of the captions | ||
\captionsetup[table]{labelfont={color=bluepoli}} % Set colour of the captions | ||
\captionsetup[algorithm]{labelfont={color=bluepoli}} % Set colour of the captions | ||
|
||
\theoremstyle{colored} | ||
\newtheorem{theorem}{Theorem}[chapter] | ||
\newtheorem{proposition}{Proposition}[chapter] | ||
|
||
% Enhances the features of the standard "table" and "tabular" environments. | ||
\newcommand\T{\rule{0pt}{2.6ex}} | ||
\newcommand\B{\rule[-1.2ex]{0pt}{0pt}} | ||
|
||
% Pseudo-code algorithm descriptions. | ||
\newcounter{algsubstate} | ||
\renewcommand{\thealgsubstate}{\alph{algsubstate}} | ||
\newenvironment{algsubstates} | ||
{\setcounter{algsubstate}{0}% | ||
\renewcommand{\STATE}{% | ||
\stepcounter{algsubstate}% | ||
\Statex {\small\thealgsubstate:}\space}} | ||
{} | ||
|
||
% New font size | ||
\newcommand\numfontsize{\@setfontsize\Huge{200}{60}} | ||
|
||
% Title format: chapter | ||
\titleformat{\chapter}[hang]{ | ||
\fontsize{50}{20}\selectfont\bfseries\filright}{\textcolor{bluepoli} \thechapter\hsp\hspace{2mm}\textcolor{bluepoli}{| }\hsp}{0pt}{\huge\bfseries \textcolor{bluepoli} | ||
} | ||
|
||
% Title format: section | ||
\titleformat{\section} | ||
{\color{bluepoli}\normalfont\Large\bfseries} | ||
{\color{bluepoli}\thesection.}{1em}{} | ||
|
||
% Title format: subsection | ||
\titleformat{\subsection} | ||
{\color{bluepoli}\normalfont\large\bfseries} | ||
{\color{bluepoli}\thesubsection.}{1em}{} | ||
|
||
% Title format: subsubsection | ||
\titleformat{\subsubsection} | ||
{\color{bluepoli}\normalfont\large\bfseries} | ||
{\color{bluepoli}\thesubsubsection.}{1em}{} | ||
|
||
% Shortening for setting no horizontal-spacing | ||
\newcommand{\hsp}{\hspace{0pt}} | ||
|
||
\makeatletter | ||
% Renewcommand: cleardoublepage including the background pic | ||
\renewcommand*\cleardoublepage{% | ||
\clearpage\if@twoside\ifodd\c@page\else | ||
\null | ||
\AddToShipoutPicture*{\BackgroundPic} | ||
\thispagestyle{empty}% | ||
\newpage | ||
\if@twocolumn\hbox{}\newpage\fi\fi\fi} | ||
\makeatother | ||
|
||
%For correctly numbering algorithms | ||
\numberwithin{algorithm}{chapter} |
Binary file added
BIN
+993 KB
...dell'Informazione - Politecnico di Milano/Images/02_ING_IND_INFORMAZIONE_COL_POSITIVO.eps
Binary file not shown.
Binary file added
BIN
+831 KB
...ia Industriale e dell'Informazione - Politecnico di Milano/Images/logo_polimi_scritta.eps
Binary file not shown.
Binary file added
BIN
+737 KB
...a Industriale e dell'Informazione - Politecnico di Milano/Images/logo_polimi_scritta2.eps
Binary file not shown.
Binary file added
BIN
+1.73 MB
...gneria Industriale e dell'Informazione - Politecnico di Milano/Images/raggiera_polimi.eps
Binary file not shown.
Oops, something went wrong.