\documentclass[oneside]{book}
% ///////////////////////////////////////////////////////////////////
% //////////////////// Packages ////////////////////
% ///////////////////////////////////////////////////////////////////
% Language setting
% Replace `english' with e.g. `spanish' to change the document language
% Important for breaking things between lines according to the rules and enabling the right characters
\usepackage[english]{babel}
% Set page size and margins
% Replace `letterpaper' with `a4paper' for UK/EU standard size
\usepackage[a4paper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
% Useful packages
\usepackage{amsmath} % Math package
\usepackage{graphicx} \graphicspath{{Figures/}} % Package for figures and definition of the common folder
\usepackage{pdfpages} % Package used for inserting pdf pages
\usepackage{lipsum} % Lipsum text generator (dummy text)
\usepackage{datetime} % Creation of dates with specific formats
\usepackage{tabularx} % More options for tables
%\usepackage[intoc, spanish]{nomencl} % Package for nomenclature
\usepackage{subcaption} % Subfigures
\usepackage[intoc, english]{nomencl} % Package for nomenclature
\makenomenclature
% Font - If no package is used, Computer Modern is the font used
\usepackage{fontspec}
\setmainfont[
Path=tipografia/,
UprightFont = *-Roman.otf,
ItalicFont = *-Italic.otf,
BoldFont = *-Bold.otf,
BoldItalicFont = *-BoldIt.otf
]{NewBaskervilleStd}
% Table of contents format, adding "Chapter" before the number
\usepackage{tocloft}
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{.}
\cftsetindents{chapter}{0em}{5em}
% According to overleaf, it is recommended to load it as the last package
\usepackage{hyperref} % Package used to highlight links with a color
% Definir nombres dos meses en galego
\newcommand{\mesgalego}{%
\ifcase\month
% 0 (non se usa)
\or xaneiro%
\or febreiro%
\or marzo%
\or abril%
\or maio%
\or xuño%
\or xullo%
\or agosto%
\or setembro%
\or outubro%
\or novembro%
\or decembro%
\fi
}
% ///////////////////////////////////////////////////////////////////
% //////////////////// Thesis general information ///////////////////
% ///////////////////////////////////////////////////////////////////
% MODIFY THE FOLLOWING
\newcommand{\titulo}{\textcolor{red}{Título}}
\newcommand{\autora}{\textcolor{red}{Doctoranda}}
\newcommand{\directoraA}{\textcolor{red}{Directora}}
%\newcommand{\directoraB}{\textcolor{red}{[Nome da terceira doutoa]}}
%\newcommand{\directoraC}{\textcolor{red}{[Nome da terceira doutoa]}}
\newcommand{\dia}{\number\day}
\newcommand{\mes}{\mesgalego}
\newcommand{\ano}{\number\year}
\newcommand{\ciudad}{\textcolor{red}{Cidade}}
\newcommand{\programa}{\textcolor{red}{Programa de doutoramento} }%non eliminar o espazo antes da chave, xa que se require máis adiante na acreditación
\newcommand{\universidades}{{Universidade de Vigo}}
\newcommand{\mencion}{{Mención internacional}} % En blanco se non aplica
\hypersetup{
linktocpage = false, % If true --> Page number of toc entries become hyperlinks instead of the entry itself
breaklinks = true, % If true --> Allows links to be broken into multiple lines
colorlinks = true, % If true --> The colors are given to the links
linkcolor = blue, % Color for normal internal links (pointing to the pdf itself)
citecolor = blue, % Color for bibliographical citations
filecolor = black, % Color for links that open local files [Not used]
urlcolor = blue, % Color for linked urls
pdftitle = {\titulo{}} % Sets the visible title for the PDF Reader Window
}
% ///////////////////////////////////////////////////////////////////
% //////////////////// Beginning of the document ////////////////////
% ///////////////////////////////////////////////////////////////////
\begin{document}
%//////////////////// Titles and cover page /////////////////////
\include{Chapters/README}
% It uses the pdf file as the cover page
\includepdf[pages = -, fitpaper=True]{Attachments/Modelo_cuberta_tese}
% Creates title page from the information defined in the preamble
% Portada
\begin{titlepage}
\include{Chapters/1_Portada}
\end{titlepage}
%//////////////////// Preliminaries /////////////////////
\include{Chapters/2_Acreditacion}
\include{Chapters/3_Frase}
\frontmatter % Roman page numbering until mainmatter
\include{Chapters/4_Acknowledgement}
% Table of Contents
\cleardoublepage % Ensure new page
\phantomsection % Anchor for correct hyperlinking
\addcontentsline{toc}{chapter}{Contents} % Add TOC to itself
{\hypersetup{linkcolor=black} % Use black for TOC hyperlinks
\tableofcontents % Create the TOC itself
}
\include{Chapters/5_1_Abstract}
\include{Chapters/5_2_Resumo}
\include{Chapters/5_3_Resumen}
% List of Figures
\cleardoublepage % Ensure new page
\phantomsection % Anchor for correct hyperlinking
\addcontentsline{toc}{chapter}{List of figures} % Add list of figures to TOC
{\hypersetup{linkcolor=black} % Use black for list of figures hyperlinks
\listoffigures % Create the list of figures itself
}
% Nomenclature
\include{Chapters/Nomenclature}
\printnomenclature
%//////////////////// Main content /////////////////////
\mainmatter % Starts using arabic numbers for the page numbers
\include{Chapters/C1_Introduction}
%% Papers
% A continuación indícase como insertar os PDF dos artigos en caso de ser unha tese por compendio de artigos
\chapter{Capítulo de exemplo}
\includepdf[pages = -, fitpaper=True]{Attachments/Papers/paper.pdf}
\include{Chapters/C2_General_Discussion}
\include{Chapters/C3_Conclusion}
%//////////////////// Bibliography /////////////////////
\cleardoublepage % Ensure new page
\phantomsection % Anchor for correct hyperlinking
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{ieeetr}
\bibliography{Bib}
%//////////////////// Appendices /////////////////////
% \appendix
% \include{Chapters/XA}
% \include{Chapters/XB}
\end{document}