# How to create multiple indices with imakeidx? [closed]

I want to create two indices with the package imakeidx, using the splitindex option:

\documentclass{scrartcl}

\usepackage[splitindex]{imakeidx}
\makeindex
\makeindex[name=foo,title=Test]

\begin{document}
Test1\index{Test1}
Test2\index[foo]{Test2}
\newpage
Test3\index{Test3}
Test4\index[foo]{Test4}

\printindex
\printindex[foo]
\end{document}


The result isan error message Input index file foo-foo.idx not found. Which seems quite irrtating, since \jobname is not foo.

If I omit the splitindex option, the indices are created, but both now have the name Test and both include all indexes, regardless of the option to the \index-command.

I use pdfLaTeX version 3.1415926-2.4-1.40.13 (TeX Live 2012) and version 1.2b of imakeidx.

-

## closed as too localized by egreg, Qrrbrbirlbel, Tom Bombadil, lockstep, qubyteOct 6 '12 at 5:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This seems to create two indexes for me titles: Index and Test. –  Peter Grill Oct 5 '12 at 20:04
I apologize. Version 1.2 has introduced severe bugs. A fix is under work. –  egreg Oct 5 '12 at 20:57
The fixed version is on its way to CTAN. Happily the fix was not so difficult. I apologize again. You can download the fixed version also from profs.scienze.univr.it/~gregorio/imakeidx.sty –  egreg Oct 5 '12 at 21:35
The fixed version (1.2d) of imakeidx has been included in TeX Live. It should be available for updating with tlmgr in a few hours (depending on the server one uses for updates). –  egreg Oct 8 '12 at 10:52