Page LayoutWrong Page Numbering in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
joris
Posts: 2
Joined: Wed May 30, 2012 1:28 pm

Wrong Page Numbering in ToC

Post by joris »

I had some problems with making a Table of Contents for my master thesis. It seems that the table of contents skips all the pages which are full of figures. The result is that at the end of my thesis, the numbering in the ToC ends at 70 pages while my thesis consists of 90 pages and all the numbering in the ToC is wrong.
Here a part of the code of my main file:

Code: Select all

\documentclass[master=cit,dutch,oneside]{kulemt}
\usepackage[latin1]{inputenc}
\usepackage[dutch]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{url}
\usepackage[version=3]{mhchem}
\usepackage{captcont}

\begin{document}
\frontmatter
\begin{preface}
  moet nog geschreven worden...
\end{preface}

\begin{abstract}
moet nog geschreven worden...
\end{abstract}

\renewcommand{\abstractname}{Summary}
\begin{abstract}
\end{abstract}

\tableofcontents


\mainmatter

\include{part1}

\listoffigures*
\listoftables*
\part{Appendix}
\addcontentsline{toc}{part}{Appendix}
\appendix
In "Part 1", I use figures with the subfloat environment. I think that the problem has something to do with it...

Code: Select all

\chapter{}
\begin{figure}
  \centering
  \subfloat{\label{fig:gull}\includegraphics[width=0.6\textwidth]{figures/biomassapck}}
  \subfloat{\label{fig:tiger}\includegraphics[width=0.6\textwidth]{figures/biomassapck1}}
  \subfloat{\label{fig:tiger}\includegraphics[width=0.6\textwidth]{figures/htnfpck1}}
  \caption{Grafieken van de biomassaconcentratie (a), de natuurlijke logaritme van de biomassaconcentratie (b) en de hTNF-$\alpha$ concentratie (c) voor REC1 (\textcolor{color1}{$\blacksquare$}) en REC2 (\textcolor{color2}{$\blacklozenge$}). De foutenbalken in deelfiguur (a) geven een indicatie van de betrouwbaarheid van de metingen. Indien er geen foutenbalk aanwezig is, is de onzekerheid op de meting verwaarloosbaar. De rechtes uit deelfiguur (b) werden bekomen met behulp van een lineaire regressie door de datapunten uit de exponenti\" ele groeifase.}
  \label{fig:overzichtpck}
\end{figure}

Thanks in advance,
Joris

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Wrong Page Numbering in ToC

Post by Stefan Kottwitz »

Hi Joris,

welcome to the board!

Did you run LaTeX several times? A correct table of contents may need several runs, until all references are correct, for example when the contents and page breaks still change during a run. Try to find out more details and post it. For example, which page numbers in the table of contents are wrong - all, or the numbers produced by sectioning commands such as \chapter and \section, or just numbers you produced with \addcontentsline or \addtocontents?

Stefan
LaTeX.org admin
joris
Posts: 2
Joined: Wed May 30, 2012 1:28 pm

Re: Wrong Page Numbering in ToC

Post by joris »

Thanks for your reply. It helped me to solve my problem. It was indeed an issue concerning the compilation. I always used two times the Latex Compilation and then I used PdfLatex (in TexMaker). I switched to "Fast Compilation" and one way or the other my problem was solved..

Kind regards,
Joris Wouters
Post Reply