LaTeX forum ⇒ TeXworksProblems about inserting figure

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

Problems about inserting figure

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

  1. \begin{figure}[h]
  2. \centering
  3. \includegraphics[width=0.5\textwidth]{"my image"}
  4. \caption{Find Profit Maximization Area}}
  5. \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?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9244
Joined: Mon Mar 10, 2008 9:44 pm

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
Site admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest