Table of Contents incorrect page numbering
Change the order of \addcontentsline
:
\newpage
\section*{Abstract}
\addcontentsline{toc}{section}{Abstract}
\newpage
\addcontentsline{toc}{section}{Table of Contents}
\tableofcontents
\newpage
\addcontentsline{toc}{section}{List of Tables}
\listoftables
\newpage
\addcontentsline{toc}{section}{List of Figures}
\listoffigures
If the hyperref
package is going to be used, you might add \phantomsection
to produce the right anchors for hyperlinks:
\newpage
\phantomsection
\addcontentsline{toc}{section}{Table of Contents}
\tableofcontents
As a suggestion, instead of using "manual" names, you could use the macros containing the pre-defined names; so instead of
\addcontentsline{toc}{section}{List of Figures}
you could say
\addcontentsline{toc}{section}{\listfigurename}
I had the same problem, and changing the order of \addcontentsline
solved a major part of it, but then my numbers were off by one.
To solve that, I put \clearpage
(or \cleardoublepage
if you are doing double sided) before every \addcontentsline
.
Now a day, mostly we prefer to the hyperlink. Thus if printing in the double side, which is usually a case for Thesis or reports.
So, the best command even removing the page number in the blank page:
\phantomsection
\addcontentsline{toc}{chapter}{ Contents} \raggedbottom \pagebreak \thispagestyle{empty}
\tableofcontents \raggedbottom \pagebreak \thispagestyle{empty}
\cleardoublepage % \clearpage (if using single side)
\phantomsection
\addcontentsline{toc}{chapter}{ List of Figures} \raggedbottom \pagebreak \thispagestyle{empty}
\listoffigures \raggedbottom \pagebreak \thispagestyle{empty}
\cleardoublepage % \clearpage (if using single side)
\phantomsection
\addcontentsline{toc}{chapter}{ List of Tables}
\listoftables \raggedbottom \pagebreak \thispagestyle{empty}