7

beamer seems to define theorem-environments such as definition, but i want to be able to define them myself. In particular I want to use thmtools.

\documentclass{beamer}
\usetheme{Singapore}

\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{thmtools}
\usepackage[english]{babel}

\theoremstyle{definition}
\declaretheorem[style=definition]{definition}

\begin{document}
\title{thmtools + beamer}
\date{\today}
\begin{frame}[plain]
\titlepage
\end{frame} 

\end{document}

Compiling this yields

! LaTeX Error: Command \definition already defined.

but I could not find anything like a \redeclaretheorem command.

9

You can undefine it before defining it

\let\definition\relax
\theoremstyle{definition}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.