Graphics, Figures & TablesExtra }, or forgotten $ error with figure placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Rai
Posts: 1
Joined: Tue Mar 31, 2009 3:08 am

Extra }, or forgotten $ error with figure placement

Post by Rai »

Hello, wonder if anyone can help. I'm getting a strange error message with a figure placement. I originally did \begin{figure}[p] which was fine, but after changing the text I was left with a lot of blank space the page before. I changed the option to [htbp] and suddenly I get

! Extra }, or forgotten $.
<recently read> \egroup

l.482 \end{equation}

?
! Missing } inserted.
<inserted text>
}
l.482 \end{equation}

?

when I try to compile. Hitting return through the errors seems to give me a sensible looking final file, but I'm a little concerned as to what the problem is. I know it's definately this syntax as I back tracked to an earlier version of the file and redid all the changes I'd made one by one to find where the issue was. It has a problem with the options 'h' and 't', 'b' and 'p' are fine, but put the figure on the next page when there is more than enough room for it straight after the text!
Help!
Cheers :)
Rai

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Extra }, or forgotten $ error with figure placement

Post by localghost »

The error message alone is insufficient without the relevant code. Reduce the problem to a minimal working example (MWE).


Best regards and welcome to the board
Thorsten¹
Post Reply