TeXworksProblems about inserting figure

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

Problems about inserting figure

Post by yaozhao »

Code: Select all

\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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Problems about inserting figure

Post by Stefan Kottwitz »

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
Post Reply