Dear friends: there is a problem with appendix and ápendice.
I have a scrbook document and I use appendix package,
\usepackage[title, titletoc]{appendix}
because I like the word "Apéndice" in the toc
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
However, when I compile with latex there is an error in file.toc (maybe in file.aux before). The reason is that in the file.aux there is a line like this:
\@writefile{toc}{\contentsline {chapter}{Ap\IeC {\'e}ndice \numberline {A}Sobre el \LaTeX }{27}{ApÈndice.1.Alph1}}
and in the second compilation the character "È" produces and error. If I compile with lualatex I have not any error.
I have tried to modify \indexname, \@chapapp but I can not find any solution.
Yes, that is a solution. I am going to clarify the problem with a MWE. In my opinion the problem is motivated by UTF-8 codify and inputenc package, as it is possible to see with this code:
\documentclass[paper=a4,10pt, twoside]{scrbook}%
\usepackage{etoolbox}
\usepackage{tgheros} % (Una versión libre de Helvetica)
\renewcommand{\sfdefault}{qhv} %qhv
%:Fuente para todo lo demás (Una versión libre de Times)
\renewcommand{\rmdefault}{qtm}
\usepackage{textcomp}
\normalfont
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} %para LaTex
%:Paquetes relacionados con el idioma y codificación
\usepackage[english, spanish, es-nosectiondot, es-noindentfirst, es-nolists, activeacute]{babel}
\spanishdecimal{.}
%:Para poner las referencias y los nombres de figuras y tablas en castellano
\addto\captionsspanish
{%
\def\figurename{Figura}%
\def\tablename{Tabla}%
\def\listfigurename{Índice de Figuras}
\def\listtablename{Índice de Tablas}
\def\contentsname{Índice}%
\def\chaptername{Capítulo}
\def\Agradecimientos{Agradecimientos}
\def\Prefacename{Prefacio}%
\def\refname{Referencias}%
\def\abstractname{Resumen}%
\def\bibname{{Bibliografía}}
\def\appendixname{Apéndice}
\def\miapendice{\appendixname}
\def\glossaryname{Glosario}%
\def\indexname{{Índice Alfabético}}
}
%:Para definir APÉNDICES
\usepackage[title, titletoc]{appendix}
\usepackage{hyperref}
\begin{document}
\cleardoublepage
\phantomsection
\tableofcontents
%:Empieza el contenido del libro
\mainmatter
\chapter{Primer capítulo}
\section{Primera sección, primer capítulo}
\chapter{Segundo capítulo}
\section{Primera sección, segundo capítulo}
\begin{appendices}
\chapter{Primer apéndice}
\section{Primera sección, primer apéndice}
\chapter{Segundo apéndice}
\section{Primera sección, segundo apéndice}
\end{appendices}
\end{document}
If you compile, you obtain this error message:
Package inputenc Error: Unicode char \u8:énd not set up for use with La- TeXSee the inputenc package documentation for explanation.Your command was ignored.Type I to replace it with another command,or to continue without it.ice.alph1.Alph11ice.alph1.Alph20P
But the solution proposed it is perfect. Thank you
{}and backticks- it just makes it a bit easier to distinguish code from text. It would be best if you could post a complete MWE to help those who might be able to work on your problem. Welcome to the group! – cmhughes Jun 06 '12 at 23:56