[OS X TeX] Why won't TeXShop pdflatexmk use index style file with my platexmkrc?

Murray Eisenberg murrayeisenberg at gmail.com
Fri Aug 5 17:38:21 CEST 2016

Source file  styledndex.tex:

        Some text.\index{apple}\index{apricot}


Index style file styledindex.ist:

        headings_flag 1
        heading_prefix "{\\medskip\\hfill\\large\\textsf{\\textbf{"
        heading_suffix "}}\\hfill}\\medskip\\nopagebreak\n”

When I just (i) run Latex from within TeXShop; (ii) from command line execute

     makeindex -s styledindex.ist styledindex

and (iii) again run latex from within TeXShop, I get the index with the style I expect — each letter group is headed by its letter A, B, C, or D (and in a bold sans-serif).

However, with the following file platexmkrc in the source directory...

    add_cus_dep('idx', 'ind', 0, 'makeidx2ind');
                 sub makidx2ind {
                                system("makeindex —s '$_[0]'.ist -o '$_[0]'.ind '$_[0]'.idx");

… if instead I run the pdflatexmk engine from within TeXShop, those letter group headings do not appear — the .ist file is being ignored — although of course an index is produced.

What’s wrong?

Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20160805/03610f83/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list