diff options
Diffstat (limited to 'thmdef-tcolorbox.sty')
-rw-r--r-- | thmdef-tcolorbox.sty | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/thmdef-tcolorbox.sty b/thmdef-tcolorbox.sty new file mode 100644 index 0000000..08d5289 --- /dev/null +++ b/thmdef-tcolorbox.sty @@ -0,0 +1,9 @@ +\ProvidesPackage{thmdef-tcolorbox} +\define@key{thmdef}{tcolorbox}[{}]{% + \thmt@trytwice{}{% + \RequirePackage{tcolorbox}% + \RequirePackage{thm-patch}% + \addtotheorempreheadhook[\thmt@envname]{\begin{tcolorbox}[#1]}% + \addtotheorempostfoothook[\thmt@envname]{\end{tcolorbox}}% + }% +} |