[OS X TeX] Why won't TeXShop pdflatexmk use index style file with my platexmkrc?
Murray Eisenberg
murrayeisenberg at gmail.com
Fri Aug 5 11:38:21 EDT 2016
Source file styledndex.tex:
\documentclass{book}
\usepackage{makeidx}
\makeindex
\begin{document}
Some text.\index{apple}\index{apricot}
\index{banana}\index{blackberry}\index{blueberry}
\index{currant}\index{cherry}
\index{date}
\printindex
\end{document}
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: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20160805/03610f83/attachment.html>
More information about the MacOSX-TeX
mailing list