I am a French student writing with LaTeX. I have a use for multiple index with different names for which I use splitidx
. I wanted my indices to appear in the TOC, so I used tocbibind
. Everything worked fine but with an accent in one of my index title I get a error message relating to encoding. Here is a MWE (well not working might be more accurate !). Have you got any idea of how I could politely ask tocbibind
to expand correctly the indices title in the toc file ?
Thanks a lot.
\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[makeindex]{splitidx}
\usepackage{tocbibind}
\newindex[Index des journaux et séries]{jo}
\newindex[Index des noms de personnes]{np}
\begin{document}
\tableofcontents
Ici du texte avec des accents qui fonctionne : é, à ç, è. Une indexation pour jo\sindex[jo]{phenix@Phenix} et une pour np\sindex[np]{phenix@Phenix}.
\printindex[jo]
\printindex[np]
\end{document}
I think I see where the problem lies. If I try a chapter with an accent it get written \IeC {\'e}
in the toc file whereas my index title always keeps its é even if I put the \IeC {\'e} in the text.
\protect{}
around your text with special characters\usepackage[french]{babel}