I have a document with multiple indexes. All of the indexes should be mentioned in the table of contents (as well as similar elements such as the bibliography). I use the index
package to define alternative indexes and the tocbibind
package to list them in the table of contents.
\documentclass{article}
\usepackage{index}
\usepackage{tocbibind}
\newindex{other}{odx}{ond}{Other index}
\makeindex
\begin{document}
\tableofcontents
\index{foo}
\index[other]{bar}
This page is intentionally not left blank.
\printindex
\printindex[other]
\end{document}
I'd expect the second index to be called “Other Index”, but both the title on the last page and the corresponding entry in the table of contents read “Index” instead. This is the fault of the tocbibind
package: without it, the title appearing on the last page is correct — but of course the indexes aren't listed in the table of content.
This is kind of mentioned in the tocbibind
documentation:
the heading text is picked up from the
\indexname
[command]. The heading texts can be changed by changing the standard commands, or by using\setindexname{name}
[…]
Ok, but how do I do this for multiple indexes with different titles?
I'd prefer to stick to index
, but I'll switch to an alternative if I really need to. However the problem seems to be in tocbibind
. Is there an alternative for that?