I know about this question and this one but the problem I am having does not relate to section headings, and I am not using itemize or enumerate. So they don’t help me.
As in the question title, the error message (using pdflatex) is
! LaTeX Error: Something's wrong--perhaps a missing \item.
It's a latex beamer doc;
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{color}
\usepackage{amsmath}
\mode<presentation>
{
\usecolortheme{default}
\usefonttheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
}
\title[Such a title]{Title}
\author{Ron Weasley}
\institute{Hogwarts}
\date{19th of January 2017}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\end{frame}
\section{Introduction} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Finding solutions}
Problem \(\rightarrow\) Formalism \(\rightarrow\) Result
\end{frame}
\section{Merits of Formalisms}
\begin{frame}{Instant form} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}
\includegraphics[width=0.6\textwidth]{LightConeImages/InstantLightCone}
\end{figure}
\end{frame}
\begin{frame}{Poincar\'e group in instant form} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular}{c c c}
\(P^1\) & \(P^3\) & \(M^{12}\)\\
\begin{figure}
\includegraphics[width=0.3\textwidth]{LightConeImages/BackLightCone}
\end{figure}
&
\begin{figure}
\includegraphics[width=0.3\textwidth]{LightConeImages/RightLightCone}
\end{figure}
&
\begin{figure}
\includegraphics[width=0.3\textwidth]{LightConeImages/TurnLightCone}
\end{figure}
\\
\end{tabular}
\end{frame}
\end{document}
Commenting out the tabular section does remove the error, so I'm sure it's that. How can I resolve this?
Best Answer
Solved the problem;
Basically, figures are not allowed in a tabular environment. Just use
\includegraphics
on its own.