[texhax] running makeindex from a tex file (by shell scape)
Paul Isambert
zappathustra at free.fr
Sun Jan 23 16:05:00 CET 2011
Le 23/01/2011 15:41, Vafa Khalighi a écrit :
> 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}
>
What happens if you add \pdfshellescape=1 at the top of the file?
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110123/034760ff/attachment.html>
More information about the texhax
mailing list