Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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,
    shaded={bgcolor={rgb}{0.8,0.8,0.8}}
]{mystyle}
\declaretheorem[style=mystyle]{BoxI}

\begin{document}
\begin{BoxI}[Euclid]
  Text...
\end{BoxI}
Some text...
\end{document}
share|improve this question
    
shaded seems to effect both spaceabove and spacebelow –  A.Ellett Mar 23 '13 at 1:25
add comment

1 Answer

up vote 1 down vote accepted

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}
share|improve this answer
    
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
1  
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
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.