%
% code from VietTUG code corner ( http://viettug.org/code/ )
% author: kyanh
% date: Mon, 14 May 2007 08:33:20 +0700
% description:
%	ví dụ đơn giản nhất về gói index (hỗ trợ index theo tag)
% view: http://viettug.org/code/code.360d7d778d.html
% download: http://viettug.org/code/code.360d7d778d.txt
%
% index package,... the simplest template
%
% by kyanh 
% taken from LC, http://viettug.org/wik/LC
%
% typeset:
%
%	latex tindex.tex
%  makeindex -o tindex.And -t tindex.Adl tindex.Adx
%  makeindex -o tindex.Cnd -t tindex.Cdl tindex.Cdx
%  latex tindex.tex
\documentclass{article}
\usepackage{index}
% tag
%	| extension (latex output file)
%	| extensio (makeindex output)
%	| the title (\printindex)
%
% use : \index[tag]{stuff}
\newindex{A}{Adx}{And}{People}
\newindex{C}{Cdx}{Cnd}{Index of Commands}
\begin{document}
index package,... the simplest template
\index[A]{test}
\index[A]{test2}
\index[C]{test3}
\printindex[A]
\printindex[C]
\end{document}