I use different theorem
enviroments that should in theory all have the same style due to my code. They do as long as I don't load the cleveref
package. If I load it, only corollary stays the same. How can I make cleveref
to behave ( = to not disturb the styles) ?!
\documentclass{amsbook}
\usepackage{amsmath}
\usepackage{cleveref}
\theoremstyle{plain}
\newtheorem{corollary}{Corollary}\numberwithin{corollary}{chapter}
\newtheorem{example}[corollary]{Example}
\newtheorem{lemma}[corollary]{Lemma}
\begin{document}
\begin{corollary}
A corollary.
\end{corollary}
\begin{example}
An example.
\end{example}
\begin{lemma}
A lemma.
\end{lemma}
\end{document}
The messed up version looks like this:
And what I want is that all theorem environments look like the corollary. As I said, they do if I don't load cleveref.
cleveref
after the styles!