%----------------------------------------------------------------------------------------
% CONFIGURACOES DO DOCUMENTO
%----------------------------------------------------------------------------------------
\documentclass[11pt, twoside]{TCC-OV}
\usepackage{preamble}
% \usepackage{config}
\begin{document}
\frontmatter % usa numerais romanos (i, ii, iii, iv...) para as paginas pre-texto
\setstretch{1.5} % Line spacing of 1.5
% Define the page headers using the FancyHdr package and set up for one-sided printing
\fancyhead{} % Clears all page headers and footers
\rhead{\thepage} % Sets the right side header to show the page number
\lhead{} % Clears the left side page header
\pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
\setlength{\parindent}{1cm}
% PDF meta-data
\hypersetup{pdftitle={\ttitle}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
%----------------------------------------------------------------------------------------
% CAPA (OBRIGATORIO)
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\input{Pre-Texto/Capa}
\end{center}
\end{titlepage}
%----------------------------------------------------------------------------------------
% FOLHA DE ROSTO (OBRIGATORIO)
%----------------------------------------------------------------------------------------
\pagestyle{empty}
\begin{adjustwidth}{7cm}{0cm}
\newpage
\input{Pre-Texto/Rosto}
\end{adjustwidth}
\clearpage
%----------------------------------------------------------------------------------------
% DEDICATORIA (OPCIONAL)
%----------------------------------------------------------------------------------------
\setstretch{1.3}
\pagestyle{empty}
\dedicatory{ \addtocontents{toc}{\vspace{2em}}
\input{Pre-Texto/Dedicatoria}
}
\clearpage
%----------------------------------------------------------------------------------------
% AGRADECIMENTOS (OPCIONAL)
%----------------------------------------------------------------------------------------
\setstretch{1.3}
\pagestyle{empty}
\acknowledgements{\addtocontents{toc}{\vspace{1em}}
\input{Pre-Texto/Agradecimento}
}
\clearpage
%----------------------------------------------------------------------------------------
% EPIGRAFE (OPCIONAL)
%----------------------------------------------------------------------------------------
\pagestyle{empty}
\begin{adjustwidth}{7cm}{0cm}
\input{Pre-Texto/Epigrafe}
\end{adjustwidth}
\clearpage
%----------------------------------------------------------------------------------------
% RESUMO (OBRIGATORIO)
%----------------------------------------------------------------------------------------
\addtotoc{Resumo}
\resumo{\addtocontents{toc}{\vspace{1em}}
\input{Pre-Texto/Resumo}
}
\clearpage
%----------------------------------------------------------------------------------------
% ABSTRACT (OBRIGATORIO)
%----------------------------------------------------------------------------------------
\addtotoc{Abstract}
\abstract{\addtocontents{toc}{\vspace{1em}}
\input{Pre-Texto/Abstract}
}
\clearpage
%----------------------------------------------------------------------------------------
% INDICES
%----------------------------------------------------------------------------------------
\pagestyle{fancy} % The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back
\lhead{\emph{Lista de figuras}} % OPCIONAL
\listoffigures{}
\lhead{\emph{Lista de tabelas}} % OPCIONAL
\listoftables
\clearpage
\input{Pre-Texto/Abreviaturas} % OPCIONAL
\clearpage
\input{Pre-Texto/Constantes} % OPCIONAL
\clearpage
\input{Pre-Texto/Simbolos} % OPCIONAL
\lhead{\emph{Sumário}} % OBRIGATORIO
\tableofcontents
\addtocontents{toc}{\vspace{1em}}
%----------------------------------------------------------------------------------------
% CAPITULOS
%----------------------------------------------------------------------------------------
\mainmatter
\pagestyle{fancy}
\input{Capitulos/1}
\input{Capitulos/2}
\input{Capitulos/Conclusao}
%----------------------------------------------------------------------------------------
% APENDICES
%----------------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}}
\appendix
\input{Apendices/A}
\input{Apendices/B}
\addtocontents{toc}{\vspace{2em}}
\backmatter
%----------------------------------------------------------------------------------------
% REFERENCIAS (OBRIGATORIO)
%----------------------------------------------------------------------------------------
\label{Referências}
\lhead{\emph{Bibliografia}}
% Outros estilos em: https://www.overleaf.com/learn/latex/Bibtex_bibliography_styles
\bibliographystyle{apalike}
\bibliography{Bibliografia}
\end{document}