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

I know I can change the index font size combining the imakeidx package with the idxlayout package like this:


However I was wondering if it was possible to use just the imakeidx package (maybe with the othercode key of the \indexsetup command).

share|improve this question
Yes, \indexsetup{othercode=\small} will do. Notice, however, that this setting applies to all indices. – egreg Jul 11 '13 at 19:26
@egreg Thanks. Can you post the comment as an answer? – petobens Jul 11 '13 at 19:28
up vote 8 down vote accepted

One can modify the index formatting with \indexsetup, that takes as argument a list of key-value pairs; in your case the key is othercode:


The code given as value to the key is inserted just before the index body is typeset, so this doesn't influence the header.

Note, however, that the effect is global and will affect all indices.

share|improve this answer

While it is possible to reduce the index fontsize using only imakeidx, the space between index heading and first entry will be somewhat larger than that produced by a fontsize switch after a "normal" heading. If you use idxlayout, the spacing will be the same. The following MWE contains both variants; comment/uncomment the respective lines and compare.



% Variant A 

% Variant B
% \indexsetup{othercode=\footnotesize}


\section*{Unnumbered section}


foo, 1\index{foo}




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.