% Formato proyecto de tesis Magíster/Doctorado DI-UTFSM
% Daniel San Martín
% Modificar según corresponda ;)
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{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{regexpatch,hyperref}
% \usepackage{tabularx}
\usepackage{tabu}
% \usepackage{apacite}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{pgfgantt}
% \usepackage{subfig}
\usepackage{lipsum}
\usepackage{environ}
% 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/Logos.png} \vspace{1cm}}
\rfoot{\thepage}
\lfoot{\bfseries \textbf{Progress report}}
% Hyperref %
\hypersetup{
    colorlinks=false, 
    linktoc=section,     
    linkcolor=red,  
    citecolor=blue,
}
% Distance between paragraphs
\setlength{\parskip}{3mm}
% For the toc
\setcounter{secnumdepth}{4}
% Other formats
\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}}
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\normalsize\bfseries}
\titleformat*{\subsubsection}{\small\bfseries}
\titleformat*{\paragraph}{\footnotesize\bfseries}
\NewEnviron{wpfcaption}[1]{
\renewcommand{\thefigure}{#1.\arabic{figure}}
\BODY
\renewcommand{\thefigure}{\arabic{figure}}
}
\NewEnviron{wptcaption}[1]{
\renewcommand{\thetable}{#1.\arabic{figure}}
\BODY
\renewcommand{\thetable}{\arabic{figure}}
}
\begin{document}
    \renewcommand{\refname}{VII.~References}
    % Modify the files on each folder as you need
    \null\vspace{1.5cm}
    
    \begin{center}
        \LARGE{\bfseries \underline{Progress report}}
    \end{center}
     \vspace{1cm}
    % Title page %
    \begin{table}[htbp!]
    \centering
        \tabulinesep=10pt
        \begin{tabu} to \textwidth {|[1.7pt]X|X|[1.7pt]}
            \tabucline[1.7pt]{-}
            \textbf{Project name:} 
                & \textcolor{red}{\textit{project name}} \\\hline
            \textbf{Industrial partner:} & \textcolor{red}{\textit{industrial partner}} \\\hline
            \textbf{Academic Partner:} & \textcolor{red}{\textit{academic Partner:}} \\\hline
            \textbf{Project reference:} & \textcolor{red}{\textit{project reference}}\\\hline
            \textbf{Reporting Period: } & Report No. \textcolor{red}{\textit{XXX}} for the period \newline \textcolor{red}{\textit{XXX}} to \textcolor{red}{\textit{XXX}} \\\hline
            
            \tabucline[1.7pt]{-}
        \end{tabu}
        \label{tab:info}
    \end{table}
    \clearpage
    \renewcommand*{\contentsname}{Contents}
    \tableofcontents
    \clearpage
    
    % I. Problem Formulation %
    \input{sections/1} 
    
    % II. Hypothesis %
    \input{sections/2}
    % A. Appendix %    
    \input{sections/appendix} \clearpage 
    
    % VII. References %
    % Reference's style
    \bibliographystyle{plain}
    \bibliography{references}
    
\end{document}