% !TeX program = XeLaTeX
% !TeX encoding = UTF-8
% !TeX spellcheck = pt_PT
% !TeX root = main
\documentclass[10pt,a4paper,final]{report}
\usepackage[portuguese]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{newtxtext,newtxmath} %TimesNewRoman
\usepackage[backend=biber,citestyle=numeric,sorting=none,style=ieee]{biblatex}
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=2cm]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[svgnames]{xcolor}
\usepackage{listings}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage[colorlinks=true,allcolors=ipbbrown]{hyperref}
\usepackage{adjustbox}
\usepackage[pagestyles]{titlesec}
\usepackage[final]{pdfpages}
\usepackage{placeins}
\addbibresource{main.bib}
\titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Huge}
\newpagestyle{mystyle}
{\sethead[\thepage][][\chaptertitle]{}{}{\thepage}}
\pagestyle{mystyle}
% school colours
\definecolor{ipbgreen}{RGB}{166,204,59}
\definecolor{ipbbrown}{RGB}{153,80,42}
\definecolor{estigred}{RGB}{150,0,24}
\title{
\includegraphics[scale=0.5]{resources/ipbeja_logo.png}\\[0.5cm]
Exemplo de Relatório
} % Doc name
\author{Gonçalo Amaro -- 17440} % Doc's author/s
\date{15 de Fevereiro, 2022} % Doc date
\def\blankpage{%
\clearpage%
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\null%
\clearpage
}
\begin{document}
\maketitle
\blankpage{}
{
\hypersetup{linkcolor=black}
\tableofcontents
}
% \newpage
%
% {
% \hypersetup{linkcolor=black}
% \listoffigures
% \listoftables
% }
\newpage
\input{pages/sample.tex}
\input{pages/webgraphy.tex}
\end{document}