% This file is public domain.
%
% This example document demonstrates the testidx package
% with makeindex. You can build this document using:
%
% pdflatex sample-idx-t1
% makeindex sample-idx-t1.idx
% pdflatex sample-idx-t1
%
% If you are using arara, the directives are:
%
% arara: pdflatex
% arara: makeindex
% arara: pdflatex
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{makeidx}
\usepackage
 [% options:
   stripaccents,% strip accents from sort key (default)
   %nostripaccents,% don't strip accents from sort key
   %verbose,% show \index commands in the text
   noverbose,% don't show \index commands in the text (default)
   showmarks,% highlight where \index has been used (default)
   %hidemarks,% don't highlight where \index has been used
   %notestencaps,% don't test the encaps
 ]{testidx}

\makeindex

\begin{document}
\testidx

\printindex
\end{document}