I am making a presentation and I am trying to add a figure and a caption in a particular frame. But I keep getting this error in the following line


when I comment out the \begin{figure} and \end{figure} the error is removed.
And if I remove the begin and end figure I am not able to add the caption below the figure.

  • Try with just figure without any float specification. That is, \begin{figure} \centering \includegraphics[.]{..} \caption{...} \end{figure}`.
    – Werner
    Commented Oct 19, 2016 at 20:11
  • 1
    or more simply just remove the figure* and use \includegraphics directly Commented Oct 19, 2016 at 20:13

1 Answer 1


beamer supports floats, but doesn't make them float as it does not help or make sense within a presentation. So, drop the float specifier [t]. Additionally, the figure* environment is meant to used in a twocolumn setup that is not natively supported in beamer. So, use figure instead.

Furthermore, there is no need to use a figure environment if you just want to place an image. For that you can just use \includegraphics[.]{..}. However, if you must, you can use figure with a \caption.

enter image description here



  % Frame with a "float" and \caption
  \frametitle{Frame title 1}
    \caption{A figure}

  % Frame with an image and "caption"
  \frametitle{Frame title 2}

  A figure


Note how beamer doesn't print a number with the \caption within a figure. That's because it's better to repeat a figure than to refer to it much later in the presentation using a number. Consider your audience when using references and perhaps consider using \againframe (if needed).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .