General ⇒ Error: Float(s) lost
-
- 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?
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
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
-
- 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.