Re: Makeindex: replacing repeated words with dashes



On May 30, 11:53 pm, Lars Madsen <dal...@xxxxxxxxxxxxxxxxxxxxx> wrote:
it might be quite hard to create it.

LaTeX gurus will probably lynch me for this, but here's what seems to
work:

\makeatletter
\long\def\subitem{\@idxitem ---\penalty10000 \ }%
\long\def\subsubitem{\@idxitem ---\penalty10000 \ ---\penalty10000 \ }
%
\makeatother

Again, I'm not a LaTeX guy, so the above might break something, so
consider
it a "take it or leave it" :).

Best,
Oleg

.