%%% OLIVIA GUTÚ
%%% DEPARTAMENTO DE MATEMÁTICAS
%%% MAESTRÍA EN CIENCIA DE DATOS
%%% UNIVERSIDAD DE SONORA
%%% 2022
\documentclass[[12pt, twoside, openright]{book}
%%% PAQUETES PERSONALIZADOS, USAR LOS NECESARIOS %%%
\usepackage[spanish]{babel}
\usepackage{titlesec}
\usepackage{setspace}
\usepackage{fontawesome5}
\usepackage[colorlinks=true,
allcolors=colorunison,
pdftex,
pdfpagelabels,
bookmarks,
hyperindex,
hyperfigures]{hyperref}
\usepackage[dvipsnames]{xcolor}
\usepackage{fancyhdr}
\usepackage{dsfont}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{paralist}
\usepackage{amsmath}
\usepackage{url}
\usepackage{hyperref}
\usepackage{appendix}
\usepackage{fancyvrb}
\usepackage{makeidx}
\usepackage{smartdiagram}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning,shapes,fit,calc}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\usetikzlibrary{shapes,snakes}
\usepackage{amsmath,amssymb}
\usepackage{geometry}
\usepackage{color}
\usepackage[Lenny]{fncychap}
\usepackage{tocloft}
\usepackage{pdfpages}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{lipsum}
\geometry{left=2.5cm,right=2.5cm,top=3.5cm,bottom=3cm}
\definecolor{colorunison}{rgb}{0.69, 0.44, 0.09} %%% DEFINIMOS EL COLOR UNISON
%%% FORMATO DE LAS SECCIONES
\titleformat{\section}
{\color{colorunison}\normalfont\Large\bfseries\sffamily}
{\color{colorunison}\thesection}{1em}{}
\renewcommand*\thesection{\arabic{section}}
\renewcommand{\cftdot}{}
%%%
%%% PARA ACOMODAR TÍTULO DE DECLARACIÓN DE LOGROS Y RESUMEN EJECUTIVO HASTA ARRIBA
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
%%% AQUÍ LOS COMANDOS PROPIOS
%% \newcommand...
%%% CODIGO PARA NO IMPRIMIR LAS HOJAS EN BLANCO
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{\clearpage{\pagestyle{empty}\origdoublepage}}
\let\cleardoublepage\clearemptydoublepage
%%%
%%%% CODIGO PARA QUE LA BIBLIOGRAFÍA SEA ÜNICAMENTE PARTE DEL REPORTE TÉCNICO
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\bibname}% <-- this line was changed from \chapter* to \section*
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
%%%
\begin{document}
%%% FRONTMATTER
\frontmatter
\include{1-portada}
\includepdf[pages=-]{hoja-de-liberacion.pdf} %%% ESTA ARHIVO SERÁ ENTREGADA POR EL COORDINADOR AL ESTUDIANTE
\include{dedicatoria.tex}. %%% OPCIONAL SI QUIERE ESCRIBIR LA DEDICATORIA
\include{agradecimientos.tex}
\tableofcontents
%%% MAINMATTER
\mainmatter
\onehalfspacing
\include{2-declaracion-logros}
\include{3-resumen-ejecutivo}
\include{4-reporte-tecnico}
\backmatter
\appendix
\include{apendice1}
%\include{apendice2}
\end{document}