[Tex/LaTex] What are the latest/best practices for index generation

indexingsubdividing

I would like to know what the current best practices are for index generation. What are the best packages/programs to use and which ones to avoid. What are the best ones to use for generating multiple indices?

I know that this kind of a question can generate a variety of responses based upon one's personal opinion. Please share why you like your particular options.

Best Answer

\documentclass{book}
...
\usepackage{makeidx}
\makeindex
...

\begin{document}
...
text\index{abc@{\ty abc}} and other text...
...

\printindex

\end{document}

This should work and, apart from \usepackage instead of an option to \documentstyle has always been the method also in LaTeX209.

Check what the undefined command is, it would be very strange if it were \index.

For multiple indices there is a choice between a few packages:

  • multind (actually a LaTeX209 package)
  • index
  • splitidx
  • imakeidx

I wouldn't recommend index that's not as customizable as the last two ones. The advantages of imakeidx over splitidx are that it can compile automatically all indices during the LaTeX run and that it's compatible with idxlayout that extends its customization possibilities. It also supports xindy (as splitidx does). (Disclaimer: I'm one of the authors of imakeidx.)