I would like to remove the index letters from the toc in my master thesis. The whole index is on the same page anyway.
\documentclass[a4paper, 10pt]{report}
\usepackage{hyperref}
\usepackage{doc}
%%%%%% Indexing %%%%%%
\IndexPrologue{\chapter*{Index}\markboth{Index}{Index}}% section heading, no message
\usepackage{makeidx}
\makeindex
%%% Begin document
\begin{document}
\tableofcontents
\setcounter{page}{1}
\index{And}
\index{Book}
\index{Summer}
\index{Latex}
\pagebreak
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}
Which produces this toc
Whereas I would like it to only contain the Index line, not the separate letters.
How can I solve this?
Best Answer
I think that makeindex is configured to use special style,
makeindex -s mystyle.ist myfile.idx
withmystyle.ist
something like thisThe solution is to localy desable
\addcontentsline