% **************************************************
% Document Class Definition
% **************************************************
\documentclass[%
	paper=letterpaper,			% Esta linea fue modificada
	twoside=true,				% onesite or twoside printing
	openright,				% doublepage cleaning ends up right side
	parskip=full,				% spacing value / method for paragraphs
	chapterprefix=true,			% prefix for chapter marks
	11pt,					% font size
	headings=normal,			% size of headings
	bibliography=totoc,			% include bib in toc
	listof=totoc,				% include listof entries in toc
	titlepage=on,				% own page for each title page
	captions=tableabove,		% display table captions above the float env
	draft=false,				% value for draft version
]{scrreprt}%

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles

% **************************************************
% Information and Commands for Reuse
% **************************************************
\newcommand{\thesisTitle}{El título de mi tesis (1)}
\newcommand{\thesisName}{Fulanito de tal (1)}
\newcommand{\thesisSubject}{Tesis}
\newcommand{\thesisDate}{30 de febrero de 2050}
\newcommand{\thesisVersion}{version1}

\newcommand{\thesisFirstReviewer}{Dr. Fulanito}
\newcommand{\thesisFirstReviewerUniversity}{\protect{Universidad Veracruzana}}
\newcommand{\thesisFirstReviewerDepartment}{Facultad de Matemáticas}

\newcommand{\thesisSecondReviewer}{Dra. Sutanita}
\newcommand{\thesisSecondReviewerUniversity}{\protect{Universidad Veracruzana}}
\newcommand{\thesisSecondReviewerDepartment}{Facultad no-Veracruzana}

\newcommand{\thesisFirstSupervisor}{Dr. Perenganito}
\newcommand{\thesisSecondSupervisor}{Dr. Otro}

\newcommand{\thesisUniversity}{\protect{Universidad Veracruzana}}
\newcommand{\thesisUniversityInstitute}{Facultad de Matemáticas}
\newcommand{\thesisUniversityCity}{Xalapa}
\newcommand{\thesisUniversityStreetAddress}{Gonzalo Aguirre Beltrán, Isleta}
\newcommand{\thesisUniversityPostalCode}{91060}

% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[utf8]{inputenc}		% defines file's character encoding
\usepackage[spanish,english]{babel} % babel system, adjust the language of the content
\usepackage[spanish,onelanguage,linesnumbered,ruled,vlined]{algorithm2e}
\usepackage[					% clean thesis style
	figuresep=colon,%
	sansserif=false,%
	hangfigurecaption=false,%
	hangsection=true,%
	hangsubsection=true,%
	colorize=full,%
	colortheme=bluemagenta,%
	bibsys=bibtex,%
	bibfile=bib-refs,%
	bibstyle=alphabetic,%
]{cleanthesis}

\hypersetup{					% setup the hyperref-package options
	pdftitle={\thesisTitle},	% 	- title (PDF meta)
	pdfsubject={\thesisSubject},% 	- subject (PDF meta)
	pdfauthor={\thesisName},	% 	- author (PDF meta)
	plainpages=false,			% 	-
	colorlinks=false,			% 	- colorize links?
	pdfborder={0 0 0},			% 	-
	breaklinks=true,			% 	- allow line break inside links
	bookmarksnumbered=true,		%
	bookmarksopen=true			%
}

\SetKwIF{If}{ElseIf}{Else}{Si}{Entonces}{Sino, Si}{De lo contrario}{Fin-Si}
\SetKwFor{For}{Para}{Hacer}{Fin-Para}
\SetKw{KwTo}{Hasta}

% **************************************************
% Document CONTENT
% **************************************************
\begin{document}

% --------------------------
% rename document parts
% --------------------------
%\renewcaptionname{ngerman}{\figurename}{Abb.}
%\renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}

% --------------------------
% Front matter
% --------------------------
\pagenumbering{roman}			% roman page numbing (invisible for empty page style)
\pagestyle{empty}				% no header or footers
\input{content/titlepages}		% INCLUDE: all titlepages
\cleardoublepage

\pagestyle{plain}				% display just page numbers
\input{content/abstract}		% INCLUDE: the abstracts (english and german)
\cleardoublepage
%
\input{content/acknowledgement} % INCLUDE: acknowledgement
\cleardoublepage
%
\setcounter{tocdepth}{2}		% define depth of toc
\tableofcontents				% display table of contents
\cleardoublepage

% --------------------------
% Body matter
% --------------------------
\pagenumbering{arabic}			% arabic page numbering
\setcounter{page}{1}			% set page counter
\pagestyle{maincontentstyle} 	% fancy header and footer

\input{content/chapter-introduction} % INCLUDE: introduction
\input{content/chapter-related-work} % INCLUDE: related work
\input{content/chapter-system}	% INCLUDE: system
\input{content/chapter-concepts} % INCLUDE: concepts
\input{content/chapter-conclusion} % INCLUDE: conclusion
\cleardoublepage

% --------------------------
% Back matter
% --------------------------
{%
\setstretch{1.1}
\renewcommand{\bibfont}{\normalfont\small}
\setlength{\biblabelsep}{0pt}
\setlength{\bibitemsep}{0.5\baselineskip plus 0.5\baselineskip}
\printbibliography[nottype=online]
\printbibliography[heading=subbibliography,title={Webseiten},type=online,prefixnumbers={@}]
}
\cleardoublepage

\listoffigures
\cleardoublepage

\listoftables
\cleardoublepage

\input{content/colophon}
\cleardoublepage

\input{content/declaration}
\clearpage
\newpage
\mbox{}

% **************************************************
% End of Document CONTENT
% **************************************************
\end{document}
