contiguous index entries

R

raj

Is there any easy way to replace contiguous entries with
a range eg. replace 7,11,12,13, 29 with 7,11-13,29?

I tried

{INDEX \g "-" \e " " \c "2" \z "1033"}

but still ndash dosn't appear

Thanks in advance
 
Top