LaTeX forum ⇒ TeXworksProblems about inserting figure

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

Problems about inserting figure

Postby yaozhao » Mon Nov 12, 2018 11:30 pm

\begin{figure}[h] 
\centering 
\includegraphics[width=0.5\textwidth]{"my image"}
\caption{Find Profit Maximization Area}}
\end{figure}


Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup
\color@endbox
l.60 \end{figure}


If I press the space, it can still output perfectly. But what does this error mean?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9880
Joined: Mon Mar 10, 2008 9:44 pm

Problems about inserting figure

Postby Stefan Kottwitz » Mon Nov 12, 2018 11:40 pm

There is only one closing brace too much here:

\caption{Find Profit Maximization Area}}

Remove the last one, just write

\caption{Find Profit Maximization Area}

LaTeX just did not understand this error good enough to print a good error message that's better understandable.

Stefan
LaTeX.org admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 3 guests