stefano franchi wrote:
> Latex 2: This is line of text with a word in small caps:
> \noun{small-caps-word}\index{small-caps-w...@\noun{small-caps-word}}
> ^^^^^^^^^^^^^^^^^^^
>
> whereas I would expect:
>
>
> Latex 3: This is line of text with a word in small caps:
> \noun{small-caps-word}\index{\noun{small-caps-word}}
>
>
>
> Why is the underlined part there? I mean the --> small-caps-word@ . Is it
> needed? Is it a bug? I have a feeling that it is messing up my index, even
> though I do not get any warning (let alone errors).
It is needed to get your index entry sorted properly. If it would only be
\index{\noun{small-caps-word}}, your entry would be sorted at "\" (and then
"n"). The part before the "@" is a hint to the index processor where to sort
the entry.
HTH,
Jürgen