I am trying to prepare a mathematical presentation using LaTeX's beamer
class. Since I already have an article
on the subject, I want to copy various parts of it into the presentation, in particular various ntheorem
-environments. But even in the MWE below, this seems not possible. Is there some incompatibility between ntheorem
and the beamer
class?
\documentclass{beamer}
\usepackage{ntheorem}
\theoremstyle{plain}
\newtheorem{Def}{Definition}
\mode<presentation>{\usetheme{Frankfurt}}
\begin{document}
\begin{frame}{Test}
\begin{Def}
blabla
\end{Def}
\end{frame}
\end{document}
Best Answer
Your example brings the error:
Explanation:
beamer
provides a theorem environment, just asntheorem
, and they provide a style with the same nameplain
. The name colission causes that error.You can undefine the
plain
style before loadingntheorem
and the error goes away: