
El código
\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}
produce el índice:
¿Cómo puedo especificar de antemano la brecha (digamos, 5 puntos, 10 puntos, 12 puntos, etc.) entre AA y AAB? entre AAB y AAC?
Respuesta1
Redefina \@idxitem
para agregar algo de espacio vertical.
\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}