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

Uwe Lueck uwe.lueck at web.de
Sun Jan 23 16:36:23 CET 2011


"Vafa Khalighi" <vafakhlgh at gmail.com>, 23.01.2011 15:41:30:
> 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}

This may be a minimal example, but the posting still is of type "it doesn't work". 
Why don't you say (precisely) what you experience with this code?

Anyway, I wonder whether you want to do what imakeidx does, 

    http://ctan.org/pkg/imakeidx

-- Uwe.


More information about the texhax mailing list