I can't use both (hyperref and appendix) packages together. When I try to compile my code with these two packages, the following errors arise:
This is my MWE:
\documentclass{book}
\usepackage[toc,page]{appendix}
\usepackage[acronym]{glossaries}
\usepackage[spanish]{babel} % Manejo de idiomas}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref}
\newacronym{ese}{ESE}{Empresa Social del Estado}
\newacronym{huem}{HUEM}{Hospital Universitario Erasmo Meoz}
\makeglossaries
\begin{document}
I'm gonna need to use a lot of acronyms like \gls{ese} and \gls{huem}
\tableofcontents
\chapter{Regular Chapter}
\begin{appendices}
\chapter{Some Appendix}
The contents...
\end{appendices}
\end{document}
The code was taken from Prof. Medina's answer: making appendix for thesis Thank you, Professor.
Also, When I compile it successfully, the title of the appendix section is in english, but I need it in spanish: "Apendices" instead "Appendices". How can I modify this?
I'm compiling with the following sequence
pdflatex -synctex=1 -interaction=nonstopmode %.tex| makeglossaries -d ./build %|makeindex -s build/%.ist -o build/%.gls build/%.glo|pdflatex -synctex=1 -interaction=nonstopmode %.tex|evince %.pdf

