\documentclass[a4paper,12pt, twoside]{book}% Notas en verde poner disable en document class para que no aparezcan
%\documentstyle[a4paper,12pt,twoside]{book}
\usepackage{amsmath}
\usepackage{type1cm}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{makeidx}
\usepackage{pst-all}
\usepackage[refpage,spanish, intoc]{nomencl}% Crea una lista de simbolos
\usepackage{fancybox, calc} %Para marcos de teoremas
\usepackage{color,soul} % Para subrayar en color
\usepackage{mathdots}
\usepackage{nomencl}
%\usepackage[spanish,activeacute]{babel}
\usepackage[spanish, es-noshorthands,activeacute]{babel} % es-noshorthands es para que no tenga problemas con tikz
\usepackage[latin1]{inputenc}
\usepackage[colorlinks=true,urlcolor=red,linkcolor=black,runbordercolor=red]{hyperref}
\usepackage{pdfcomment} %comentarios en los teoremas
\usepackage{tikz}
\usepackage{wrapfig}% Figuras y texto
\usepackage{todonotes} % Notas en verde poner disable en document class para que no aparezcan
\usetikzlibrary{decorations,arrows,shapes}

\usepackage{tocbibind} %incluye la bibliografia y el indice alfabetico en el indice de contenidos

\usepackage{footmisc} %para que los notas al pie sean dibujos
\renewcommand{\thefootnote}{\fnsymbol{footnote}}% Numerar los footnotes con dibujos

%\pagestyle{myheadings}\markboth{\Miguel Ángel Gómez Lozano}{Introducción al Álgebra}
%\usepackage{pst-all}
%\textheight=24cm \textwidth=16cm \topmargin=0cm \oddsidemargin=1cm \evensidemargin=-0.5cm\oddsidemargin=1cm %%%%%%%% PARA EL PDF
\textheight=24cm \textwidth=16cm \topmargin=0cm \oddsidemargin=1cm \evensidemargin=-0.5cm\oddsidemargin=0.5cm %%%%%%%% PARA EL DVI

\usepackage{fancyhdr}%  Para los encabezados y pies de pagina

\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{\leftmark} % En las páginas impares (la O), parte izquierda del encabezado(la L), aparecerá el nombre de capítulo
\fancyhead[RE]{\rightmark} % En las páginas pares, parte derecha del encabezado, aparecerá el nombre de sección
\fancyhead[RO,LE]{\thepage} % Números de página en las esquinas de los encabezados

\renewcommand{\chaptermark}[1]{\markboth{\textbf{Capítulo \thechapter. #1}}{}} % Formato para el capítulo: N. Nombre
\renewcommand{\sectionmark}[1]{\markright{\textbf{\thechapter.\thesection\  #1}}} % Formato para la sección: N.M. Nombre


\renewcommand{\headrulewidth}{0.6pt} % Ancho de la línea horizontal bajo el encabezado
\renewcommand{\footrulewidth}{0.0pt} % Ancho de la línea horizontal sobre el pie (que en este ejemplo está vacío)
\setlength{\headheight}{1.5\headheight} % Aumenta la altura del encabezado en una vez y media
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Colores
\definecolor{rojo}{rgb}{1,0,0}
\definecolor{azul}{rgb}{0,0,1}
\definecolor{verde}{rgb}{0,1,0}
\setul{1pt}{.07cm}
%\setulcolor{rosa}
%\ul{texto}
\newcommand{\suba}[1]{\setul{2pt}{.01cm}\setulcolor{azul}\ul{#1}\setul{1pt}{.07cm}}
\newcommand{\subr}[1]{\setul{2pt}{.01cm}\setulcolor{rojo}\ul{#1}\setul{1pt}{.07cm}}
\newcommand{\subv}[1]{\setul{2pt}{.01cm}\setulcolor{verde}\ul{#1}\setul{1pt}{.07cm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% COMENTARIOS
%\pdfmarkupcomment[icon=Help,hspace=1 truecm,author={Puntos clave},markup=Underline,color=verde]{\textbf{Demo:}}{Acordarse del conjunto $\{x,f(x),f^2(x),\dots,f^n(x),\dots\}\subset X$ en donde se tienen que repetir elementos}
%
%\pdfcomment[icon=Help,hspace=1 truecm,author={Puntos clave},markup=Underline,color=verde]{Acordarse del conjunto $\{x,f(x),f^2(x),\dots,f^n(x),\dots\}\subset X$ en donde se tienen que repetir elementos}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{plain}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{appp}[section]

\newtheorem{conc}{\setulcolor{azul}\ul{Conceptos}}[section]

\newtheorem{lema}[appp]{\setulcolor{rojo}\ul{Lema}}
\newtheorem{prop}[appp]{\setulcolor{rojo}\ul{Proposición}}
\newtheorem{theo}[appp]{\setulcolor{rojo}\ul{Teorema}}
\newtheorem{coro}[appp]{\setulcolor{rojo}\ul{Corolario}}
\newtheorem{defi}[appp]{\setulcolor{azul}\ul{Definición}}
\newtheorem{ejem}[conc]{\setulcolor{verde}\ul{Ejemplos}}
\newtheorem{propi}[appp]{\setulcolor{rojo}\ul{Propiedades}}
\newtheorem{obse}[appp]{\setulcolor{rojo}\ul{Observación}}
\newtheorem{bibl}{Bibliografia del Tema:} [chapter]
\newtheorem{ejj}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\im}{Im} \DeclareMathOperator{\Id}{Id} \DeclareMathOperator{\Min}{Min}
\DeclareMathOperator{\mcd}{m.c.d} \DeclareMathOperator{\MCM}{M.C.M}  \DeclareMathOperator{\Dom}{Dom}  \DeclareMathOperator{\CoDom}{CoDom}
 \DeclareMathOperator{\Max}{Max}  \DeclareMathOperator{\Mod}{mod}  \DeclareMathOperator{\Aut}{Aut}  \DeclareMathOperator{\Ker}{Ker}
 \DeclareMathOperator{\Sopp}{Sopp}  \DeclareMathOperator{\End}{End} \DeclareMathOperator{\dg}{dg} \DeclareMathOperator{\inv}{Inv}
   \DeclareMathOperator{\Sup}{Sup}  \DeclareMathOperator{\Inf}{Inf}

\def\RR{\mathrel{{\cal R}}}
\def\ZZ{\mathbb{Z}}
\def\FF{\mathbb{F}}
\def\NN{\mathbb{N}}
\def\RR{\mathbb{R}}
\def\QQ{\mathbb{Q}}
\def\CC{\mathbb{C}}
\def\HH{\mathbb{H}}
\def\Proof{\par \noindent\textbf{Demo:} }
\def\EndProof{ \hfill $\blacksquare$  \vskip .3truecm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Introducción al Algebra}
\author{Miguel Ángel Gómez Lozano }
\date{\date }

\makeindex
\makenomenclature
\nomitemsep=-.2cm
\nomlabelwidth=2cm

\begin{document}


%\renewcommand{\thepage}{\roman{page}}
%\setcounter{page}{1}

\renewcommand{\theconc}{\Alph{conc}}
\renewcommand{\thesection}{\arabic{section}}
\newcommand{\fullref}[3]{#1 \ref{#2}{#3} (Pag. \pageref{#2})}
\newcommand{\retodo}[1]{\vskip.2truecm \todo[color=green!40,inline]{#1}\vskip.2truecm }
\newcommand{\timeclase}[1]{\vskip.2truecm \todo[color=red!40,inline]{#1}\vskip.2truecm }
\pagenumbering{roman}

%\maketitle          %1-2


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   TEMA 0

\begin{titlepage}

\ \vskip 2truecm
\fontsize{2cm}{3cm}\selectfont
\centerline{  Estructuras Básicas}
\centerline{ del  Álgebra}
\normalsize
\vfill\eject
\thispagestyle{empty}
\ \vskip1.5truecm

\end{titlepage}

\tableofcontents

\vfill\eject
\pagenumbering{arabic}
\setcounter{page}{1}

%\input{capitulos/indice}
%\input{capitulos/Tema0}
\input{capitulos/Tema1}
\input{capitulos/Tema2}
\input{capitulos/Tema3}
\input{capitulos/Tema4}
\input{capitulos/Tema5}
\input{capitulos/Tema6}
\input{capitulos/Tema7}
%\input{capitulos/sinuso/Gruposbasico}
%\input{capitulos/sinuso/TLagrange}
%\input{capitulos/sinuso/grupocociente}
%\input{capitulos/sinuso/Tisomorfia}
%\input{capitulos/sinuso/Prodgrupos}
%\input{capitulos/sinuso/CGAFGtex}
%\input{capitulos/sinuso/Agrupos}
%\input{capitulos/sinuso/Glibres}
%\input{capitulos/sinuso/JHolder}
%\addcontentsline{toc}{chapter}{\Large Anexos}
%\input{capitulos/ApendiceA}
%\input{capitulos/ApendiceB}
%\input{capitulos/ApendiceC}



 \nocite{JB} \nocite{Fr} \nocite{Hg} \nocite{Ch} \nocite{Ni} \nocite{Mo}
\nocite{AYJA}

\hypertarget{Biblo}{ }\label{Biblo}
%\bibliographystyle{plain}
\clearpage
%\addcontentsline{toc}{chapter}{Bibliografía}
\bibliography{capitulos/Biblo}
%\addcontentsline{toc}{chapter}{Nomenclatura}
\hypertarget{Nomenc}{ } \label{Nomenc}
\printnomenclature[2.5cm]
\hypertarget{Indice}{ }\label{Indice}
\clearpage
%\addcontentsline{toc}{chapter}{Índice Alfabético}
\printindex
\end{document} 