2

I'm writing a report and I want to make a list of index as given in the below picture.

enter image description here

How I achieve this?

Thanks so much!

MWiesner
  • 225
  • 2
    Welcome to TeX.SX! See https://en.wikibooks.org/wiki/LaTeX/Indexing – TeXnician Jul 09 '17 at 11:23
  • 1
    Do you speak (read) german? If yes, you may like to take a look at my blog: http://tobiw.de/tbdm/index-1 and http://tobiw.de/tbdm/index-2 – Tobi Jul 09 '17 at 11:40
  • If you use xindy instead of mekeindex can do more flexible your index due a its powerful capabilities. – skpblack Jul 09 '17 at 13:54
  • @skpblack If it runs. xindy tends to crash sometimes and on Windows you need luck to get it to work. – TeXnician Jul 09 '17 at 14:44
  • @TeXnician, Luck isn't necessary, xindy comes with the last version of Miktex for Windows, only is necessary to download and install a perl interpreter such as ActiveState Perl or Strawberry Perl. I have always been a Windows user. – skpblack Jul 09 '17 at 15:06
  • @skpblack And obviously a MikTeX user. There are other distributions out there. But that's not a discussion which should appear under a question. – TeXnician Jul 09 '17 at 15:07

1 Answers1

2

Usually it will suffice to use the package makeidx or the more modern imakeidx. Then put \makeindex into your preamble. And in your document you can use \printindex to show it.

After compiling your document with f.i. pdflatex make sure to also compile with makeindex and then with pdflatex again.

If you want those groups of letters have a look at this post. It explains how to do it.

Just a basic example:

\documentclass{report}
\usepackage{makeidx}
\makeindex
\begin{document}
This is a test\index{test}
\clearpage\printindex
\end{document}
TeXnician
  • 33,589