I've been trying to make shaded theorems in my latex book. It is using the amsbook class. I've copied a bunch of examples from online and they work when I try them as an article class, but when I move them into an amsbook file then the shading becomes black and I can't see anything. For example, this works on its own, but if I move it into an amsbook file then the shading turns black. Any help would be appreciated.
Code: Select all
\documentclass{article}
\usepackage{xcolor}
\usepackage{amsthm}
\usepackage{framed}
\colorlet{shadecolor}{gray!50}
\newtheorem{theorem}{Theorem}
\newenvironment{theo}
{\begin{shaded}\begin{theorem}}
{\end{theorem}\end{shaded}}
\begin{document}
\begin{theo}
Some important theorem.
\end{theo}
\end{document}