# Combining spacebelow with shaded parameter in thmtools package. Bug?

In the following example the spacebelow parameter is ignored. If you comment out the shaded parameter, the space is considered. Is it possible to use both parameters spacebelow / shaded?

\documentclass{article}
\usepackage{amsthm}
\usepackage{thmtools}

\declaretheoremstyle[
spaceabove=6pt,
spacebelow=60pt,
]{mystyle}
\declaretheorem[style=mystyle]{BoxI}

\begin{document}
\begin{BoxI}[Euclid]
Text...
\end{BoxI}
Some text...
\end{document}

-
shaded seems to effect both spaceabove and spacebelow –  A.Ellett Mar 23 '13 at 1:25

The documentation (in my version on page 5) says that thmbox and shaded keys may

not cooperate with a style key you give at the same time.

EDIT

The following solution was offered by @GonzaloMedina. Since Gonzalo suggested I post his answer here, I'm making this a community wiki

\documentclass{article}
\usepackage{xcolor}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheoremstyle[mdframed={backgroundcolor=gray!80,
hidealllines=true,
innertopmargin=6pt,
innerbottommargin=60pt,
skipabove=\topsep,
skipbelow=\topsep }
]{mystyle}
\declaretheorem[style=mystyle]{BoxI}
\begin{document}
\begin{BoxI}[Euclid] Text...
\end{BoxI}
Some text...
\end{document}

-
Yes, I guess the problem is that the shaded style uses the shadedthm package which doesn't allow to change the separation between the frame and the text for each side (top, bottom, left, right) individually. –  Gonzalo Medina Mar 23 '13 at 1:32
Yeah, that's the part I was just reading. Seems there's got to be a work-around. I'll have to dig into the shadethm package. –  A.Ellett Mar 23 '13 at 1:34
Actually it looks like you'll have to dig into the shadethm.sty itself since the documentation for it is minimal. –  A.Ellett Mar 23 '13 at 1:37
Yes. You could, for the moment, suggest as a workaround, using the more versatile mdframed key: \documentclass{article} \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ mdframed={ backgroundcolor=gray!80, hidealllines=true, innertopmargin=6pt, innerbottommargin=60pt, skipabove=\topsep, skipbelow=\topsep } ]{mystyle} \declaretheorem[style=mystyle]{BoxI} \begin{document} \begin{BoxI}[Euclid] Text... \end{BoxI} Some text... \end{document} –  Gonzalo Medina Mar 23 '13 at 1:47
@GonzaloMedina sounds like you should post that as your own answer! –  A.Ellett Mar 23 '13 at 4:23