How to find the lost text part when having “Float(s) lost” error

I've lost some text. I don't know if theres something missing, so how can I find it? I'm not in the mood to compare the `chapter1.tex` to the `pdf` file by reading both. Chapter 1 (`chapter1.tex`) is rather long but it's the only hint I got.

[35]

! LaTeX Error: Float(s) lost.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.215 \include{chapter1}

? H You've lost some text. Try typing to proceed. If that doesn't work, type X to quit.

So... Whats your coping strategy with that error? (Except not making the error)

-
It will be a figure or table or something, so if you are expecting 10 figures and you only got 9.... it had just finished outputting page 35 (the `[35]` in your snippet) which should also give a clue. Don't put floating environments in minipages or other non-floating boxes. – David Carlisle Oct 26 '12 at 15:33
Is it possible that there is no text loss anyway? I cant find any lost text between page 36 and 38... Its all there. – helt Oct 28 '12 at 13:38
I'm seeing this too. I'm using the AGU latex template, and everything works perfectly on draft mode, but I get this error, and one of my tables goes missing when not on draft mode. Even more annoying, this is the second of two nearly identical tables, and the first one works fine. Extremely frustrating. – naught101 Nov 16 '12 at 1:32
@naught101 i found the cause by binary search. comment out, recompile, check, repeat... It was pretty frustrating. iirc the cause was a incorrectly closed doublequote. – helt Nov 16 '12 at 8:24
uhh. thats loong ago... en.wikipedia.org/wiki/Binary_search_algorithm :) -- Instead of checking one line after an other, i comment out a large portion of text, check if the error is gone and then i comment back in the half of the previously disabled markup. by doing so, you need less runs. still too many, but less. – helt Apr 8 '14 at 15:48

It will be a `figure` or `table` or other package-defined float type (eg `algorithm`). so if you are expecting 10 figures and you only got 9.... it had just finished outputting page 35 (that is the page numbered 35, not necessarily the 35th output page) (the [35] in your snippet) which should also give a clue.

Don't put floating environments in minipages or other non-floating boxes as this is the usual cause for lost floats.

-
A note: a marginpar which appears inside another box is another example of something that this can happen with. – Joel Aug 25 at 2:26

The error message hints that a figure or a table are lost, but I saw this a few times with no text or float loss.

The problem may be that a float is used inside a box. What makes it tricky to nail is the fact that the error might not arise immediately, but only after text is added elsewhere. Try replacing `\marginpar` with `\marginnote` (of the `marginnote` package) as suggested in Floats lost error.

-

If you have a very reference- and citation-heavy document (say, a thesis or scientific paper), the error can sometimes resolve itself on a second compilation when suddenly all your `?` get converted to actual text (`Chapter 1` or `Jones et al. (1986)`). It's not necessarily a great idea to depend on that, but it just means that you might get away with compiling twice instead of trying to hunt down the error.

-