%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% UNOFFICIAL UNIFG THESIS LATEX TEMPLATE %
% Author: Sbliz %
%PLEASE FORWARD ALL SUGGESTIONS AND COMPLAINTS TO THE FOLLOWING EMAIL%
% Contact: sblizlatex@proton.me %
% It is a simple and well-organized thesis template. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt, twoside, openany]{book}
\usepackage[subfigure]{tocloft}
\usepackage[titletoc]{appendix}
\usepackage[english]{babel} %replace "english" with "Italian" to set the Italian language.
\usepackage[utf8]{inputenc}
\usepackage[acronym]{glossaries}
\usepackage{mathptmx}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{tocbibind}
\usepackage{color}
\usepackage{blindtext}
\usepackage{float}
\usepackage{verbatim}
\usepackage{siunitx}
\usepackage{array}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{lettrine}
\usepackage{csquotes}
%Hyperlink
\usepackage{url}
\usepackage{hyperref}
\hypersetup{hidelinks,hypertexnames=false,colorlinks=false}
%Bibliography
\usepackage[style=numeric, backend=biber, defernumbers=true]{biblatex}
\addbibresource{C) BACK MATTER/mybib.bib}
\nocite{*}
%Pagestyle
\usepackage[myheadings]{fancyhdr}
\pagestyle{fancy}
\usepackage[top= 3 cm, bottom= 2.5 cm, left= 3 cm, right= 3 cm, centering, head=21.75 pt]{geometry}
\linespread{1.5}
%to extend the headline in the chapters
\newlength{\margintotal}
\setlength{\margintotal}{10 pt}
\fancyheadoffset[LE,RO]{\margintotal}
%Chapter Title
\usepackage{microtype}
\usepackage[svgnames, x11names]{xcolor}
\newcommand*\ftsize[1]{\fontsize{#1pt}{\numexpr 1.2*#1\relax pt}\selectfont}
\newcommand*\chapsubtitle[1]{{\LARGE #1}}
\newcommand\maketabular[1]{\begin{tabular}[b]{l}
#1
\end{tabular}}
\usepackage{colortbl}
\usepackage[explicit,newlinetospace]{titlesec}%
\titleformat{\chapter}[block]{\usefont{T1}{phv}{m}{n}}{%
\begin{tabular}[b]{c}{ \large\color{lightgray} \textls*{CHAPTER}}\\[4ex] \fontsize{72}{72}\selectfont\thechapter\end{tabular}}{1em}{\bfseries\fontsize{24}{30}\selectfont
\begin{tabular}[b]{!{\color{lightgray}\vline width1.2pt\ }l}
#1
\end{tabular}}
\titlespacing{\chapter}{0pt}{2\baselineskip}{2\baselineskip}
%---------------------------------Credit------------------------------------%
% https://tex.stackexchange.com/users/38908/bernard %
% https://tex.stackexchange.com/questions/163052/customizing-chapters-title %
%---------------------------------Credit------------------------------------%
%Acronyms
\usepackage[printonlyused]{acronym}
\nocite{*}
%--------------------------start---------------------------%
\begin{document}
%------------------------pre-------------------------%
%-avoid non-essential changes in this section-%
\include{A) FRONT MATTER/1 - Cover}
\thispagestyle{empty}
\cleardoublepage
\setcounter{page}{1}
\pagenumbering{Roman}
% \shipout\null % add a blank page
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\include{A) FRONT MATTER/2 - Acknowledgements}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\include{A) FRONT MATTER/3 - Abstract}
\clearpage
\tableofcontents
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Introduction}
\include{A) FRONT MATTER/4 - Introduction}
\clearpage
%------------------------core-----------------------%
\pagenumbering{arabic}
\include{B) CHAPTER/Cap - 1}
\cleardoublepage
% \*\*\*\ to insert new chapter */*/*/*/ %
%\include{Chapter/ *chapter name*}
%\cleardoublepage
%------------------------back-----------------------%
%-avoid non-essential changes in this section-%
\pagestyle{plain}
\phantomsection
\include{C) BACK MATTER/Conclusions}
\addcontentsline{toc}{chapter}{Conclusions}
\cleardoublepage
\phantomsection
\pagenumbering{Alph}
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography[nottype=online,
%heading=subbibliography, % if u want the same sitography heading
title=Bibliografia]
\printbibliography[type=online, heading=subbibliography, title=Sitografia]
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Acronyms}
\include{C) BACK MATTER/Acronym}
\end{document}
%--------------------------end---------------------------%