Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.