\documentclass{article}
\usepackage[utf8]{inputenc} \usepackage{imakeidx} \makeindex[columns=3, title=Alphabetical Index, intoc] \begin{document} \tableofcontents \section{Introduction} In this example several keywords\index{keywords} will be used which are important and deserve to appear in the Index\index{Index}. Terms like generate\index{generate} and some\index{others} will also show up. Terms in the index can also be nested \index{Index!nested} \clearpage \section{Second section} This second section\index{section} may include some special word, and expand the ones already used\index{keywords!used}. \printindex \end{document}