I'm using thmtools to make shaded theorems, but there is no padding around the theorem body and that makes it ugly.
MWE:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage[dvipsnames]{xcolor}
\colorlet{LightGray}{White!90!Periwinkle}
\declaretheoremstyle[
name=Theorem,
shaded={bgcolor=LightGray},
]{thmsty}
\declaretheorem[style=thmsty]{thm}
\begin{document}
\begin{thm}
In any right triangle, the area of the square whose side is the hypotenuse (the side opposite the right angle) is equal to the sum of the areas of the squares whose sides are the two legs (the two sides that meet at a right angle).
\end{thm}
\end{document}
I'd like to add padding all around the theorem. I read thmtools
documentation but didn't find a way to do it. I don't mind if the shaded box gets larger than \textwidth
.
tcolorbox
and it'stcbtheorem
features, that provides much nicer boxes – user31729 Apr 20 '16 at 17:25