0

The code

\documentclass{book}
\usepackage{imakeidx}
\let\cleardoublepage\clearpage
\makeindex
\usepackage[itemlayout=singlepar]{idxlayout}

\begin{document}
\LARGE

This is the first paragraph.\index{AA! first}\index{AA! second}\index{AA! third}

This is the second paragraph.\index{AAB! an entry}

This is the third paragraph.\index{AAC! another entry}

\idxlayout{columns=1}
\printindex
\end{document}

produces the index:

enter image description here

How may I specify ahead of time the gap (say, 5pt, 10pt, 12pt, etc.) between AA and AAB; between AAB and AAC ?

0

1 Answer 1

1

Redefine \@idxitem to add some vertical space.

\documentclass{book}
\usepackage{imakeidx}
\usepackage[itemlayout=singlepar]{idxlayout}

\makeindex

\makeatletter
\renewcommand{\@idxitem}{\par\addvspace{\medskipamount}\hangindent40\p@}
\makeatother

\begin{document}

This is the first paragraph.\index{AA! first}\index{AA! second}\index{AA! third}

This is the second paragraph.\index{AAB! an entry}

This is the third paragraph.\index{AAC! another entry}

\idxlayout{columns=1}

\printindex

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .