[Tex/LaTex] Option delim_0 “\\dotfill” in makeindex ignored by texlive’s makeindex

indexingtexlive

I've a problem when making the index with a personal style file. Here is my file perso.ist

headings_flag 1

heading_prefix "{\\bfseries\\hfil "

heading_suffix "\\hfil}\\nopagebreak\n"

delim_0 "\\dotfill"

delim_1 "\\dotfill"

delim_2 "\\dotfill"

When I use makeindex toto.idx, I've no error; when I want to use my personal file with the command makeindex -s perso.ist toto.idx, texlive says he ignored 3 lines, and obviously, it is the 3 lines relating to the dots: delim_0 \\dotfill etc.

Do you know why?

Best Answer

Could it be that you are using a file with windows line endings? If I create a perso.ist with CR+LF line endings I get:

Scanning style file ./perso.ist......done (6 attributes redefined, 6 ignored).

but with just LF it works ok:

Scanning style file ./perso.ist......done (6 attributes redefined, 0 ignored).

If you are using texlive on windows, I think this qualifies as a bug in the included makeindex.

Related Question