I am trying to get a math beamer presentation to work and it seems that cleveref is causing problems. The MWE below gives the error
Paragraph ended before \@ynthm was complete
In the documentation of cleveref, one finds the following remark:
The
beamerdocument class rededefines the\labelcommand in a particularly devious way that breakscleveref's optional argument to that command.
What optional argument? Does that mean that cleveref and beamer are simply incompatible? Is there any way around that problem?
MWE:
\documentclass{beamer}
\makeatletter
\let\th@plain\relax
\makeatother
\usepackage{ntheorem}
\usepackage{cleveref}
\theoremstyle{plain}
\newtheorem{MainThm}{Main Theorem}
\crefname{MainThm}{Main Theorem}{Main Theorems}
\mode<presentation>{\usetheme{Frankfurt}}
\begin{document}
\begin{frame}{Test}
\begin{MainThm}
blabla
\end{MainThm}
\end{frame}
\end{document}
