I am trying to create a table in a beamer class document which includes some entries in math mode. Below I provide a very minimal working example of what I am trying to accomplish:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{tabular}{cc}
$n$ & $m$ \
2 & 3 \
\end{tabular}
\end{frame}
\end{document}
This code causes a fatal error to occur and no pdf file is produced. I am using texmaker with SumatraPDF.
Why does this code produce a fatal error?