Vafa Khalighi
2011-01-23 14:41:30 UTC
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}
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}