% =====================================================================
%  TEMPLATE DE DISSERTACAO -- PPGEEC
%  Compilar na ordem:  pdflatex -> bibtex -> pdflatex -> pdflatex
%  (a passagem do bibtex e o que numera as referencias [1], [2], ...)
% =====================================================================
\documentclass[12pt,a4paper]{report}

% ---- idioma e codificacao --------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\renewcommand{\bibname}{REFERÊNCIAS}   % titulo da bibliografia (padrao ABNT)

% ---- layout ----------------------------------------------------------
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{setspace}
\onehalfspacing                       % espacamento 1,5 (padrao ABNT)
\setlength{\parindent}{1.25cm}

% ---- matematica e teoremas -------------------------------------------
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\newtheorem{definicao}{Definição}[chapter]
\newtheorem{exemplo}{Exemplo}[chapter]

% ---- figuras e subfiguras --------------------------------------------
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{subcaption}
\graphicspath{{figuras/}}             % onde estao as imagens

% ---- tabelas ---------------------------------------------------------
\usepackage{booktabs}                 % \toprule \midrule \bottomrule
\usepackage{array}

% ---- codigo (listings, portatil; nao exige --shell-escape) -----------
\usepackage{xcolor}
\usepackage{listings}
\definecolor{codverde}{rgb}{0.0,0.5,0.0}
\definecolor{codcinza}{rgb}{0.5,0.5,0.5}
\lstset{
  basicstyle=\ttfamily\small,
  keywordstyle=\color{blue},
  commentstyle=\color{codverde},
  numberstyle=\tiny\color{codcinza},
  numbers=left, numbersep=8pt,
  frame=single, breaklines=true,
  captionpos=b, showstringspaces=false
}

% ---- citacoes numericas (natbib) -------------------------------------
\usepackage[numbers,square,sort&compress]{natbib}
%  \citet{chave}        -> Autor [1]
%  \citep{chave}        -> [1]
%  \citet[p.~20]{chave} -> Autor [1, p. 20]
%  \citep{a,b,c}        -> [1-3]

% ---- links -----------------------------------------------------------
\usepackage[hidelinks]{hyperref}

\begin{document}


\onehalfspacing
 \newgeometry{
 a4paper,
 top=3cm,
 bottom=1cm
 }
\pagenumbering{gobble}

\include{main/capa}
\include{main/folharosto_dissertação}
\includepdf[pages=1]{ficha_catalografica.pdf}


\include{main/folhaaprovacao}
\include{main/dedicatoria}
\include{main/epigrafo}
\include{main/agradecimentos}
\include{main/resumo}

%\listofilustr
%\listoffigs
%\listofcods
\newpage
\listoffigures
\newpage
%\renewcommand{\listtablename}{\hfill \bf Lista de Tabelas\hfill}
\listoftables
\newpage
\tableofcontents

 \newgeometry{
 a4paper,
 top=3cm,
 bottom=3cm
 }







\pagenumbering{arabic}

\include{cap1_introducao}
\include{cap2_fundamentacao}
\include{cap3_metodologia}

% ---- REFERENCIAS -----------------------------------------------------
\bibliographystyle{unsrtnat}          % numerica, por ordem de citacao
% (use plainnat para lista em ordem alfabetica)
\bibliography{refs}
% ---- APENDICES -------------------------------------------------------
% Elementos pos-textuais (ABNT): vem DEPOIS das referencias.
% \appendix faz \chapter numerar com letras: "Apêndice A", "Apêndice B"...
\appendix

%\renewcommand{\appendixname}{Apêndice}
%\setcounter{chapter}{0}   % reinicia: Anexo A, B, ...
%\include{anexoA}

\include{apendiceA}
\include{apendiceB}
\end{document}
