The manual of Makeindex states:
In some indexes, certain page numbers are specially formatted—for example, an italic page number may indicate the primary reference, and an n after a page number may denote that the item appears in a footnote on that page. MakeIndex makes it easy to format an individual page number any way you want.
If I apply this to my file were persons appear in the text and in the notes on the same page, this MWE:
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{makeidx}
\makeindex
\newcommand{\nn}[1]{#1n}
\begin{document}
bla\index{Lahm} blablab\index{Lahm|nn}
\newpage
bla\index{Lahm|nn} blablab
\printindex
\end{document}
has an undesired index-output:
Lahm, 1, 1, 2n
In fact it should be
Lahm, 1, 1n, 2n
The reason as can be seen in the .ind-file:
\begin{theindex}
\item Lahm, 1, \nn{1, 2}
\end{theindex}
It groups the two \nn-references. Of course this is not visible in the output. How can I avoid this?
(B.t.w. the .ilg file states:
-- Conflicting entries: multiple encaps for the same page under same key.
)
Upon further research it appears to me that this is a problem of the page range. Makeindex groups two pages with "," and one has to use an .ist file to change suffix_2p .

