[texhax] running makeindex from a tex file (by shell scape)

Vafa Khalighi vafakhlgh at gmail.com
Sun Jan 23 15:41:30 CET 2011


Can you please tel me why this does not work with pdflatex --shell-escape
test

 \documentclass{minimal}

\usepackage{makeidx}

\makeindex

\makeatletter

\renewcommand\printindex{%

\immediate\closeout\@indexfile

\immediate\write18{makeindex \jobname.idx}

\input{\jobname.ind}}

\makeatother

\begin{document}

This is a test.

\index{Test}\index{Exam}

\printindex

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110124/0b5d93db/attachment.html>


More information about the texhax mailing list