Code: Select all
\documentclass[a4paper, twoside]{scrreprt}
\usepackage{makeidx}
...
\usepackage{lastpage}
\label{LastPage}
\makeindex
...
\begin{document}
...
\chapter{Main Page}
\index{Main Page}
...
\printindex
\end{document}
Code: Select all
\thepage \hspace{0.5mm} of \hspace{0.2mm} pageref{LastPage}
If I uncomment \index{Main Page} no index appears and the pagenumbers are correct.
So my question can i manage the lastpage by myself?
Why the index pages aren't added to the total page number?
What the hell I'm doing wrong?
I would very appreciate any help or any hint?
Thanks