For a book project I have created two indices using imakeidx
. In addition, I am using idxlayout
to control the layout of the indices. I would like the first index to be two columns and the second index to be one column. I have attempted to control the columns by including columns=2
in the first \makeindex
and columns=1
in the second. Unfortunately, the second index renders as two columns. I suspect that the columns
option (defaults to two) for idxlayout
(which must come after imakeidx
) is over-riding the columns
options for the individual \makeindex
calls.
Can someone suggest a possible fix that will allow me to render the first index in two-column format and the second index in one-column format? Thank you for any suggestions you can offer.
MWE is below.
\documentclass{book}
\usepackage{imakeidx}
\makeindex[name=subject,title=Subjects,columns=2]
\makeindex[name=species,title=Species,columns=1]
\usepackage[indentunit=10pt,justific=raggedright]{idxlayout}
\begin{document}
\mainmatter
\chapter{Chapter Name}
First\index[subject]{First}
Second\index[subject]{Second}
Species1\index[species]{Genus species1}
Species2\index[species]{Genus species2}
\printindex[subject]
\printindex[species]
\end{document}
imakeidx
states thatidxlayout
should be loaded afterimakeidx
. However, you posted not a MWE, so we can't say anything about thisidxlayout
is in my preamble AFTERimakeidx
.