| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2010-2014 by Ulrich M. Schwarz |
| 4 |
% Copyright (C) 2019 by Frank Mittelbach |
| 5 |
% Copyright (C) 2020- by Yukai Chou |
| 6 |
% |
| 7 |
% This file may be distributed and/or modified under the conditions of |
| 8 |
% the LaTeX Project Public License, version 1.3c. |
| 9 |
% The license can be obtained from |
| 10 |
% http://www.latex-project.org/lppl/lppl-1-3c.txt |
| 11 |
% |
| 12 |
%\fi |
| 13 |
% |
| 14 |
%\iffalse (hide this from DocInput) |
| 15 |
%<*mdframed> |
| 16 |
%\fi |
| 17 |
% |
| 18 |
% Mostly, this key wraps the theorem in a |mdframed| environment. |
| 19 |
% The parameters are set by treating the value we are given as |
| 20 |
% a new key-val list, see below. |
| 21 |
% |
| 22 |
% \begin{macrocode} |
| 23 |
\define@key{thmdef}{mdframed}[{}]{% |
| 24 |
\thmt@trytwice{}{% |
| 25 |
\RequirePackage{mdframed}% |
| 26 |
\RequirePackage{thm-patch}% |
| 27 |
\addtotheorempreheadhook[\thmt@envname]{\begin{mdframed}[#1]}% |
| 28 |
\addtotheorempostfoothook[\thmt@envname]{\end{mdframed}}% |
| 29 |
}% |
| 30 |
} |
| 31 |
% \end{macrocode} |
| 32 |
%\iffalse (hide this from DocInput) |
| 33 |
%</mdframed> |
| 34 |
%\fi |