\documentclass[12pt,a4paper]{report}
\usepackage{styles/fct-ualg-thesis}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear,maxnames=99,minnames=99,giveninits=true,uniquename=init]{biblatex}
\addbibresource{bibliography/references.bib}
\input{metadata}
\begin{document}
\selectlanguage{portuguese}
\renewcommand{\ualgpagename}{P\'agina}
\pagenumbering{roman}
\input{frontmatter/cover}
\input{frontmatter/title-page-pt}
\input{frontmatter/declaration}
% Optional sections (uncomment if needed)
%\input{frontmatter/dedication-pt}
%\input{frontmatter/acknowledgements-pt}
\input{frontmatter/abstract-pt}
\input{frontmatter/abstract-en}
\renewcommand{\contentsname}{\'{I}NDICE GERAL}
\renewcommand{\listfigurename}{\'{I}NDICE DE FIGURAS}
\renewcommand{\listtablename}{\'{I}NDICE DE TABELAS}
\renewcommand{\bibname}{BIBLIOGRAFIA}
\ualgtableofcontents
\ifualghasfigures
\ualglistoffigures
\fi
\ifualghastables
\ualglistoftables
\fi
\input{frontmatter/abbreviations-pt}
% Optional errata (uncomment if needed)
%\input{frontmatter/errata-pt}
\clearpage
\pagenumbering{arabic}
\chapter{Introdu\c{c}\~{a}o}
\input{chapters/01-introduction-pt}
\chapter{Revis\~{a}o da Literatura}
\input{chapters/02-literature-pt}
\chapter{Metodologia}
\input{chapters/03-methodology-pt}
\chapter{Resultados}
\input{chapters/04-results-pt}
\chapter{Discuss\~{a}o}
\input{chapters/05-discussion-pt}
\chapter{Conclus\~{o}es}
\input{chapters/06-conclusions-pt}
\clearpage
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\defbibheading{ualgbib}{\chapter*{BIBLIOGRAFIA}\addcontentsline{toc}{chapter}{BIBLIOGRAFIA}}
\printbibliography[heading=ualgbib]
\end{spacing}
\ualgappendixsetuppt
\input{backmatter/appendices-pt}
\ualgannexsetuppt
\input{backmatter/annexes-pt}
\end{document}