The following source file was shown in: How to create multiple indices with imakeidx?





That question was closed because, allegedly, an error in imakeidx was fixed.

However, when I process that source file by running pdflatex (twice, to be sure), then makeindex, and finally pdflatex again, I get no index whatsoever. In fact, there is a single .ind file, and that file is empty.

What am I doing wrong.

  • 1
    Remove the splitindex option or run pdflatex with the -shell-escape option. – egreg Jul 31 '16 at 20:25

You get a warning:

Package imakeidx Warning: Remember to run (pdf)latex again after calling
(imakeidx)                `splitindex' and processing the indices.

which tells you exactly what you need to do.

Alternatively, run pdflatex with the -shell-escape option.

Explanation: splitindex is not in the “list of safe programs” allowed to be called from the restricted shell escape.

Another possibility, with just two indices, is to remove the splitindex option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.