I have several questions regarding the use of definitions and theorems in the beamer package. Here is an example:
\documentclass[mathserif]{beamer}
\usepackage{graphicx}
\usepackage{tcolorbox}
\usepackage{amsthm}
\setbeamertemplate{theorems}[numbered]
\newtheorem{idea}{Proof idea}
\begin{document}
\section[test]{this is a test}
\frame{
\begin{tcolorbox}
\begin{definition} This is a definition. \end{definition}
\begin{theorem} This is a theorem. \end{theorem}
\begin{idea} This is a proof idea. \end{idea}
\begin{proof} This is a proof. \end{proof}
\end{tcolorbox}
}
\end{document}
I have several modifications I would like to add, but I don't really know how to do them myself in Latex.
- I would like to have the definitions and theorems numbered separately.
- I have added the new theorem called
idea
, this is also numbered. But I would like this not to be numbered. - The content of the new theorem
idea
is in italic. How can I remove this? - Finally, adding
section
orsubsection
in between frames does not print the section title onto the frame. Has this something to do with the default template I am using? - If it is possible to add sections, I would like the definitions and theorems to be numbered separately, based on the section they are in.
Thank you
Best Answer
If you disable the automatic creation of Theorem blocks by
beamer
and do like the usual way usingamsthm
you can format all easily.So, the option
notheorems
disable the automatic process and then you have to define the environments by yourself. Thus you can specify the style and the numbering.If you don't want to do by hand as above, then:
For 1: no solution yet.
For 2 and 3 use
For 5 according to the user guide (pg 119), use the option
envcountsect
within the document classNote: 4 is not related with numbering. Just use inside the
frame
to insert a title for it.