% !TEX encoding = UTF-8
% !TEX spellcheck = en_GB
% !TEX root = paper.tex
\documentclass[a4paper,twoside]{report}

\usepackage[spanish,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{algorithm}
\usepackage{algorithmic}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\usepackage{amsthm}
\usepackage{amssymb}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
\usepackage{hyperref}
\usepackage{graphics}
\usepackage{title/mitssTitle}

\newcommand{\ctrldep}{\rightarrow^{ctrl}}
\newcommand{\datadep}{\rightarrow^{data}}

\usepackage{todonotes}
\usepackage{marginnote}

\newif\ifpaperVersion
%\paperVersiontrue
\paperVersionfalse
\ifpaperVersion
	% Paper version
	\newcommand{\ignore}[1]{}
	\newcommand{\deleted}[1]{}
	\newcommand{\added}[1]{#1}
	\newcommand{\pending}[1]{}
	\newcommand{\done}[1]{}
	\newcommand{\doubt}[1]{}
	\newcommand{\josep}[1]{}
	\newcommand{\carlos}[1]{}
	\newcommand{\sergio}[1]{}
\else
	% Working
	\definecolor{ignoreColor}{rgb}{1,0.5,0}
	\definecolor{pendingColor}{rgb}{0.2,0.7,0.2}
	\definecolor{doneColor}{rgb}{0.7,0.2,0.7}
	\definecolor{doubtColor}{rgb}{0.6,0.6,0.4}
	\definecolor{josepColor}{rgb}{0.2,0.6,0.6}
	\definecolor{carlosColor}{rgb}{0.6,0.2,0.6}
	\definecolor{sergioColor}{rgb}{1.0,0.5,0.0}

	\newcommand{\ignore}[1]{\textcolor{ignoreColor}{\#Ignored: #1}}
	\newcommand{\deleted}[1]{\textcolor{red}{\#Deleted: #1}}
	\newcommand{\added}[1]{\textcolor{blue}{\#Added: #1}}
	\newcommand{\pending}[1]{\textcolor{pendingColor}{\#Pending: #1}}
	\newcommand{\done}[1]{\textcolor{doneColor}{\#Done: #1}}
	\newcommand{\doubt}[1]{\textcolor{doubtColor}{\#Doubt: #1}}
	\newcommand{\josep}[1]{\textcolor{josepColor}{\#JJJ: #1}}
	\newcommand{\carlos}[1]{\textcolor{carlosColor}{\#CCC: #1}}
	\newcommand{\sergio}[1]{\textcolor{sergioColor}{\#SSS: #1}}
\fi

\title{Fragmentación de programas con excepciones}
%\title{Program slicing with exceptions}
\author{Carlos S. Galindo Jiménez}
\date{diciembre de 2019}
\supervisor{Josep Francesc Silva Galiana}
\curso{2019-2020}

\begin{document}
\algsetup{linenodelimiter=.}
\include{listings-config}
\maketitle

\begin{abstract}
    \carlos{por completar}
\end{abstract}

\selectlanguage{spanish}
\begin{abstract}
    \carlos{por completar}
\end{abstract}

\selectlanguage{english}

\tableofcontents

\include{Secciones/motivation}
\include{Secciones/background}
\include{Secciones/incremental_slicing}
\include{Secciones/problem_solution}
\include{Secciones/state_of_the_art}
\include{Secciones/conclusion}

\bibliographystyle{plain}
\bibliography{../../../../../../Biblio/biblio.bib}

\end{document}

% vim: set noexpandtab:ts=2:sw=2:wrap
