You can use the \crefname{<type>}{<singular>}{<plural>}
syntax to define cross reference names for customized theorem-like environments. (see page 12 of the cleveref
manual)
\documentclass{article}
\usepackage{amsthm}
\usepackage[capitalise]{cleveref}
\newtheorem{thm}{Theorem}
\crefname{thm}{Theorem}{Theorems}
\begin{document}
\begin{thm}\label{thm1}
My first theorem
\end{thm}
\begin{thm}\label{thm2}
My second theorem
\end{thm}
Using \cref{thm1,thm2} we obtain another theorem.
\end{document}
![enter image description here](https://i.stack.imgur.com/R1ivm.png)
The Antibes theme calls the orchid color theme. This sets the colors for the block environments (as seen in the beamercolorthemeorchid.sty), but the beaver color theme does not set those colors. So you have to do it by hand. The lines you could add (and edit to your liking) in your themes sections are
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!75!black}
\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!10!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg}
and the beamercolorthemebeaver.sty might help you to pick the matching colors.
You are probably using the standard block most of the time. Here we see that the orchid theme uses the structure color, which is set by\setbeamercolor{structure}{fg=beamer@blendedblue}
in the default color theme.
Long story short:
Maybe you can just set the structure color to something that matches the theme. For example
\setbeamercolor{structure}{fg=darkred}
Note that darkred is a color set within the beaver color theme.
This gives you slides like this:
![enter image description here](https://i.stack.imgur.com/v0V3I.png)
And if you'd rather have a gray background for the body of the block, add something like:
\setbeamercolor{block body}{bg=gray!10!white}
to get this result:
![enter image description here](https://i.stack.imgur.com/WZltm.png)
Best Answer
With the package
amsthm
you can use the enhanced\newtheorem
command.\newtheorem{⟨env name⟩}{⟨text⟩}[⟨parent counter⟩]
\newtheorem{⟨env name⟩}[⟨shared counter⟩]{⟨text⟩}
Then you add colors to the
<text>
as shown.Observe that the environment
defn
used here does not include a shared counter, so it will start as<section number>. 1.
The math examples were taken from testmath.tex – Examples of the AMS-LaTeX package