diff options
author | Chloe Brown <chloe.brown.00@outlook.com> | 2025-03-25 16:52:43 +0000 |
---|---|---|
committer | Chloe Brown <chloe.brown.00@outlook.com> | 2025-03-25 16:52:43 +0000 |
commit | a2afd4b08dc2b7eada2f95ee95457457a3331344 (patch) | |
tree | 671b8530d7e8934efad4d91f7575ae01833c6bfe /thmdef-tcolorbox.sty |
Before the big rewrite
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}}% + }% +} |