% =========================================================================
% Author: Daniel San Martín Reyes
% Description: Main LaTeX document for thesis/dissertation
% Instructions:
% - Just in case:
% + Chapters are in chapters/ directory
% + Figures in figures/, tables in tables/, algorithms in algorithms/
% Comments:
% - It's based on the DI format guidelines
% - Uses apacite for references but can be changed accordingly
% - Feel free to modify as needed
% - I added all the packages I used, but you can remove the ones you don't need
% - Good luck ;)!
% =========================================================================
\documentclass[12pt, letterpaper]{book}
%%% PACKAGES %%%
\usepackage[utf8]{inputenc}
\usepackage[margin=1.1in]{geometry}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphics}
\usepackage{subcaption}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{color}
\usepackage{url}
\usepackage{multirow}
\usepackage{mathtools}
\usepackage[makeroom]{cancel}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{tablefootnote}
\usepackage{fancyhdr}
\usepackage{tablefootnote}
\usepackage{longtable}
\usepackage{listings}
\usepackage{pdfpages}
\usepackage{siunitx}
\usepackage[nosectionbib]{apacite}
\usepackage{lipsum} % For dummy text, just ommit any warnings about it
%%% SETUP %%%
% Hyperref %
\hypersetup{
colorlinks=false,
linktoc=section,
linkcolor=red,
citecolor=blue,
}
\lstset{
basicstyle=\footnotesize\ttfamily,
literate={~} {$\sim$}{1},
}
% PGFplots %
\pgfplotsset{
compat=newest,
colormap={yellowgreen}{
rgb255=(255,255,0)
rgb255=(76,153,0)
},
}
% Bibtex %
\bibliographystyle{apacite}
% Definitions %
% Text
\providecommand{\keywords}[1]{\textbf{\textit{Keywords}}: #1.}
\providecommand{\eskeywords}[1]{\textbf{\textit{Palabras clave}}: #1.}
\pagestyle{fancy}
\fancyhf{}% Clear page header/footer
\fancyhead[RO, LE]{\leftmark}
\fancyfoot[C]{\thepage}
%Hyphen
% \hyphenation{} % Add words to hyphenate if needed
\begin{document}
% Front %
%\maketitle
\input{chapters/title}
% Committee %
\input{chapters/committee}
% USM format margin
\newgeometry{top=.9in, bottom=.9in, left=4cm, right=2.5cm, headheight=15pt, headsep=0.2in, includehead}
\pagenumbering{Roman} % Roman numbering for toc
% Dedicatory
\input{chapters/dedication}
\let\cleardoublepage\clearpage
% Acknowledgements
\input{chapters/acknowledgments}
\let\cleardoublepage\clearpage
%Abstract
\input{chapters/resumen}
\addcontentsline{toc}{chapter}{Resumen}
\let\cleardoublepage\clearpage
\input{chapters/abstract}
\addcontentsline{toc}{chapter}{Abstract}
% General Index
\tableofcontents
\addcontentsline{toc}{chapter}{Contents}
\let\cleardoublepage\clearpage
% List of Figures %
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\let\cleardoublepage\clearpage
% List of Tables %
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\let\cleardoublepage\clearpage
% List of Algorithms %
\listofalgorithms
\addcontentsline{toc}{chapter}{List of Algorithms}
\let\cleardoublepage\clearpage
\clearpage
\pagenumbering{arabic} % Arabic numbering for chapters
%%% CHAPTERS %%%
% Chapter 1: Introduction %
\input{chapters/1/00_introduction}
% Chapter 2: Methods %
\input{chapters/2/00_methods}
% Chapter 3: Results and Discussion %
\input{chapters/3/00_results}
% Chapter 4: Conclusions %
\input{chapters/4/00_conclusions}
% References %
\cleardoublepage
% \addcontentsline{toc}{chapter}{References}
\bibliography{references}
% Appendix %
\input{chapters/a/00_appendix}
\end{document}