TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible (and if so, 'how?') to have multiple indices (via imakeidx) in the documentation for a package/class file, and include the codeline index and change log without completely redefinining \CodelineIndex, \RecordChanges, the macro environment, etc.?

I've been reading through the doc source/documentation in an attempt to figure out if it would be possible to redefine the index commands themselves (so \CodelineIndex et al. wouldn't even need to be touched), but so far haven't found any useful information.

share|improve this question
up vote 1 down vote accepted

Silly me; I was looking for the answer in the wrong place and just answered my own question.

Answer Use the splitindex option, eg. \RequirePackage[splitindex]{imakeidx}

imakeidx provides the splitindex option which (as you might expect) allows all index entries to be written to a single file, then split out by the splitindex script. This means that conflicting (or absent) macros like \@indexfile are still there, and everything works as expected.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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