%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                 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, oneside]{book}  %\documentclass[12pt, twoside, openany]{book} FOR TWO SIDE THESIS
    \usepackage[subfigure]{tocloft}
    \usepackage[titletoc]{appendix}
    \usepackage[italian]{babel}
    \usepackage[utf8]{inputenc}
    \usepackage{mathptmx}
    \usepackage{graphicx}
    \usepackage{multicol}
    \usepackage{anyfontsize}
    \usepackage{tocbibind}
    \usepackage{csquotes}
    \usepackage{color}
    \usepackage{float}
    \usepackage{verbatim}
    \usepackage{siunitx}
    \usepackage{array}
    \usepackage{subfigure}
    \usepackage{amsmath}
    \usepackage{booktabs}
    \usepackage{caption}
    \usepackage{amssymb}
    \usepackage{multirow}
    \usepackage{setspace}
    \usepackage{lettrine}
    \usepackage{makecell}  %thickness table
%BlindText
\usepackage{lipsum}
    
%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} % per twoside
    \fancyheadoffset[LO,RO]{\margintotal}  %  per oneside
%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
    
    \include{A) FRONT MATTER/5 - Signed 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
    \phantomsection
    \tableofcontents
    \clearpage
    \phantomsection
    \addcontentsline{toc}{chapter}{Introduction}
    \include{A) FRONT MATTER/4 - Introduction}
    \clearpage
    
    
    %------------------------core-----------------------%
    
    \pagenumbering{arabic}
    \phantomsection    
    \include{B) CHAPTER/Cap - 1}
    \clearpage
    
        % \*\*\*\ to insert new chapter */*/*/*/ %
        
    %\phantomsection   
    %\include{Chapter/ *chapter name*}
    %\clearpage
    
    %------------------------back-----------------------%
                
        %-avoid non-essential changes in this section-%
               
    \phantomsection
    \addcontentsline{toc}{chapter}{Conclusions}
    \include{C) BACK MATTER/Conclusions}
    \clearpage
    
    
    
    \pagenumbering{Alph}
    
    \phantomsection
    \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---------------------------%