\documentclass[11pt,twoside]{template-ubi/Styling}
\setmainfont{Georgia}
\usepackage{listings}
\lstset{
	language=C++,                % choose the language of the code
	basicstyle=\footnotesize,       % the size of the fonts that are used for the code
	numbers=left,                   % where to put the line-numbers
	numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
	stepnumber=1,                   % the step between two line-numbers. If it is 1 each line will be numbered
	numbersep=5pt,                  % how far the line-numbers are from the code
	backgroundcolor=\color{white},  % choose the background color. You must add \usepackage{color}
	showspaces=false,               % show spaces adding particular underscores
	showstringspaces=false,         % underline spaces within strings
	showtabs=false,                 % show tabs within strings adding particular underscores
	frame=single,           % adds a frame around the code
	tabsize=2,          % sets default tabsize to 2 spaces
	captionpos=b,           % sets the caption-position to bottom
	breaklines=true,        % sets automatic line breaking
	breakatwhitespace=false,    % sets if automatic breaks should only happen at whitespace
	escapeinside={\%*}{*)}          % if you want to add a comment within your code
}
% Comment this line if you are writing your thesis in English
% \portugues
%%Para gerar índice remissivo (que será inserido no documento com o comando \printindex)
\makeindex
\thesistitle{Thesis Title}
% Se existir um sub-título, descomente a linha abaixo e 
%\thesissubtitle{Sub-título da Tese}
%Nome da faculdade
\facultyname{Engenharia}
% Ciclo de estudos (1º, 2º ou 3º)
\studiescyclenumber{3\textsuperscript{o}}
\thesisauthors{Your name here}
\thesistype{Tese para obtenção do Grau de Doutor em}
\thesislocalanddate{Maio de 2021.}
\thesissupervisors{
	Orientador: Prof. Doutor Name of your Surpervisor\\
	%Co-orientador: Prof. Doutor Name of your Co-Surpervisor\\
}
% Name of your course
\thesiscourse{Engenharia Informática}
% O comando seguinte insere o nome da tese no cabeçalho das páginas (comentar se não for pretendido)
% (Pode ser o título abreviado)
% \cabecalho{\thesistitlestr}
\begin{document}
\thesisfunding{
	Inserir informações sobre financiamento da tese. (Opcional: se não desejar incluir, todo o comando deve ser apagado)\\
}
% Se desejar colocar o conteúdo de uma secção em um ficheiro tex separado,
% tal ficheiro pode ser incluído usando o comando \input{Nome do ficheiro criado}.
% Exemplo: \thesisdedication{\input{nome-do-ficheiro-contendo-a-dedicatoria}}
% Isto resulta para todas as seções abaixo.
\thesisdedication{
	Inserir dedicatória. (Opcional: se não desejar incluir, todo o comando deve ser apagado)\\
}
\thesisthanks{
	Agradecer a quem de direito. (Opcional: se não desejar incluir, todo o comando deve ser apagado)
}
\thesisforewords{
	Prefácio. (Opcional: se não desejar incluir, todo o comando deve ser apagado)
}
% Abstract in Portuguese
\thesisresumo{
	Resumo do trabalho em português, seguida das palavras-chave.
}{Suas, palavras, chaves, separadas, por, vírgula}
% Expanded Abstract in Portuguese
\thesisresumoalargado{
	Resumo alargado deve ser escrito em português e é usado unicamente para 
	teses escritas em língua estrangeira.
	Se não for este o caso, todo o comando deve ser apagado.
} 	
\thesisabstract{
	Abstract in English, followed by keywords.
}{Your, key, words, separated, by, comma}	
\tableofcontents   % Índice
\listoffigures     % Lista de Figuras    (Opcional)
\listoftables      % Lista de Tabelas    (Opcional)
\listofalgorithms  % Lista de Algoritmos (Opcional)
\thesisacronyms{\input{Acronyms.tex}}  % Lista de Acrónimos  (Opcional)
\mainmatter % inicia páginas em números arábicos a partir do 1
% Os capítulos são inseridos a partir daqui 
\include{Introduction}
\include{Chapter2}
\include{Chapter3}
\include{Chapter4}
\include{Chapter5}
\include{Samples}
\include{Conclusion}
% Fim da inserção dos capítulos
% Bibliografia
% Primeiro parâmetro é o estilo e o segundo o arquivo bib
\thesisbibliography{template-ubi/BiblioStyle}{bibliography}
% Exemplo de uso de outro estilo bibliográfico. Define ser definido apenas um estilo 
%\thesisbibliography{template-ubi/IEEEtran}{bibliografia}
\appendix{\input{Appendix.tex}} % Anexos (Opcional)
\thesisglossary{\input{Glossary.tex}}  % Glossário (Opcional)
\printindex % Inserir índice remissivo (Opcional)
\end{document}