General ⇒ Error: Float(s) lost
-
codingLikeHell
- Posts: 2
- Joined: Fri Feb 03, 2012 2:34 pm
Error: Float(s) lost
I am editing a 'report' document in latex and I tried to embed a figure. Therefore, I chose "insert->figure" from the main menue, which causes Texniccenter to include the figure into a 'figure' environment.
However, trying to compile the document results in a 'Float(s) lost' error, independent of the scaling of the picture. I finally managed to get it compiled, but for this I had to remove the surrounding figure-environment.
Can anyone please tell me why this happens?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Error: Float(s) lost
this can happen if you use a float, such as figure or table, within another float (figure, table) environment or within marginpar, or inside a \parbox, a minipage or even a \footnote. Just check this, try using floating figures outside of such environments.
Stefan
-
codingLikeHell
- Posts: 2
- Joined: Fri Feb 03, 2012 2:34 pm
Re: Error: Float(s) lost
Error: Float(s) lost
\marginpar inside, for example, a \parbox, try marginnote.