MakeIndex, Nomenclature, Glossaries and AcronymsProblem with imakeidx: indentation of subentries wrong

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
Nicolaas
Posts: 4
Joined: Sat Mar 11, 2023 7:20 pm

Problem with imakeidx: indentation of subentries wrong

Post by Nicolaas »

I have a simple index of personal names that I like to format with imakeidx, with standard options.
The surnames are to be left-justified, the first names indented.
However, what I get is that the first subentry under a given surname is properly indented, but the folliwng first names under the same surname are not, thus:
A
Abrahamsen
(3 spaces) John, 34
Peter, 23

where Abrahamson is the surname, John and Peter first names.

Is this standard behaviour of imakeidx? And how to avoid it?

Thanks for any help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10263
Joined: Mon Mar 10, 2008 9:44 pm

Problem with imakeidx: indentation of subentries wrong

Post by Stefan Kottwitz »

Hi Nicolaas,

it doesn't happen when I use makeidx or imakeidx with default options. I have some examples at the end of the LaTeX Cookbook, Chapter 8, to compare.

Perhaps post some short code here that shows how you are writing it. (Infominimal working example)

Stefan
LaTeX.org admin
Post Reply