summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx
blob: a3fd3658cba768246174a7a45d2f4f996a42a7bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% \iffalse meta-comment
%
% Copyright (C) 2010 by Ulrich M. Schwarz
% See file COPYING for more details.
%\fi
%
%\iffalse (hide this from DocInput)
%<*mdframed>
%\fi
%
% Mostly, this key wraps the theorem in a mdframed environment.
% The parameters are set by treating the value we are given as
% a new key-val list, see below.
%
%    \begin{macrocode}
\define@key{thmdef}{mdframed}[{}]{%
  \thmt@trytwice{}{%
    \RequirePackage{mdframed}%
    \RequirePackage{thm-patch}%
    \addtotheorempreheadhook[\thmt@envname]{%
      \begin{mdframed}[#1]}%
    \addtotheorempostfoothook[\thmt@envname]{\end{mdframed}}%
    }%
}
%    \end{macrocode}
%\iffalse (hide this from DocInput)
%</mdframed>
%\fi