I have a document of 72 pages and page numbers in the table of contents are completely wrong. I'm trying to review everything step by step, so the first problem I've noticed is the following: I compile only the first part of the document:

% Style

% Figures


My title page








And what I get is


1 Introduction p.5

while it should be


1 Introduction p.4

but when I comment the first two images, I get the right page number.

Does anybody know why this happens? I've compiled 3 times but I still have the same problem.

I've also tried substituting the minipages by

\end{subfigure} \quad

but I have exactly the same problem.

  • In the TOC I get pages 3,4,5,6,7,8,9,10 as I would expect given the setup. And you do not get 6,8,20 with the setup you provided. Please be a bit more specific about what your problem is? – daleif Sep 13 '13 at 10:00
  • You will need at least 3 runs, did you try 4? – David Carlisle Sep 13 '13 at 10:15
  • 1
    please try to replace your \includegraphics by \rule{1cm}[2cm} (for some lengths that make sense) and produce an example that other people without the images can run to check the table of contents., then edit your question so in a single block it has everything from \documentclass to \end{document} for people to use – David Carlisle Sep 13 '13 at 12:35
  • 1
    @sandy.ale91 I get only three pages (but I don't know how big are your pictures). Note that you don't need neither minipage nor figure with [H] to typeset graphic objects that have no caption. – egreg Sep 13 '13 at 12:39
  • 1
    @sandy.ale91: you can just use the usual \includegraphics; the picture then does not float in the document. BTW: welcome to TeX.SX :) – Claudio Fiandrino Sep 13 '13 at 13:40

I don't know what's wrong with minipage but finally I could solve the problem by always using subfigure and removing all the [H] from the figures and tables.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.