% Formato proyecto de tesis Magíster/Doctorado DI-UTFSM
% Daniel San Martín
% Modificar según corresponda ;)
\documentclass[letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish,es-nodecimaldot]{babel}
\usepackage[margin=1in, top=.05in, bottom=.9in, headheight=3.25cm, headsep=1pt, includehead]{geometry}
\usepackage{scalerel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{titling}
\usepackage{subcaption}
\usepackage{hyperref}
% \usepackage{tabularx}
\usepackage{tabu}
\usepackage{apacite}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{pgfgantt}
% \usepackage{subfig}
\usepackage{lipsum}
% Header and footer
\pagestyle{fancy}
\fancyhf{}% Clear page header/footer
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{2pt}
\chead{\includegraphics[width=12cm]{figures/logos/di-usm.png}}
\rfoot{\thepage}
\lfoot{\bfseries Proyecto de Tesis}
% Hyperref %
\hypersetup{
    colorlinks=false, 
    linktoc=section,     
    linkcolor=red,  
    citecolor=blue,
}
% Distancia párrafos
\setlength{\parskip}{3mm}
% Para el toc
\setcounter{secnumdepth}{4}
% Otros formatos
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\renewcommand{\thesection}{\Roman{section}} 
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\providecommand{\keywords}[1]{\textbf{\textit{Keywords}}: #1.}
\providecommand{\eskeywords}[1]{\textbf{\textit{Palabras clave}}: #1.}
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\normalsize\bfseries}
\titleformat*{\subsubsection}{\small\bfseries}
\titleformat*{\paragraph}{\footnotesize\bfseries}
% Estilo de referencias
\bibliographystyle{apacite}
\begin{document}
    
    \renewcommand{\BOthers}[1]{et al.\hbox{}}
    \renewcommand{\refname}{VII.~REFERENCIAS}
    % Modificar los archivos correspondientes dentro de la carpeta sections
    % Title page %
    \input{sections/title} \clearpage
    
    % Spanish Abstract %
    \input{sections/resumen} \clearpage
    
    % English Abstract %
    \input{sections/abstract} \clearpage
    
    % I. Problem Formulation %
    \input{sections/1} \clearpage
    
    % II. Hypothesis %
    \input{sections/2} %\clearpage
    
    % III. Objectives %
    \input{sections/3} \clearpage
    
    % IV. Methodology %
    \input{sections/4} \clearpage
    
    % V. Results %
    \input{sections/5} \clearpage
    
    % VI. Resources %
    \input{sections/6} \clearpage
    % A. Appendix %
    \input{sections/appendix} \clearpage % Remover en caso que no se utilicen anexos
    
    % VII. References %
    \bibliography{references}
    
\end{document}