In the code below, my goal is to have Theorem 8.1, not 1.8. I've been searching and trying different things, but haven't had any luck on my own. Any help is greatly appreciated.
Code: Select all
\documentclass{article}
\usepackage{xcolor}
\usepackage{amsthm}
\usepackage{framed}
\colorlet{shadecolor}{gray!50}
\newtheorem{theorem}{Theorem}[section]
\newenvironment{theo}
{\begin{shaded}\begin{theorem}}
{\end{theorem}\end{shaded}}
\begin{document}
\section{Section 8}
\setcounter{theorem}{7}
\begin{theo}
Some important theorem.
\end{theo}
\end{document}