summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thmtools
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-03 23:37:04 +0000
committerKarl Berry <karl@freefriends.org>2011-12-03 23:37:04 +0000
commit92b4cdcc73a443c1d91d2d2963a91363856e1dea (patch)
treeaf8da9eb8d212cc781e7fc5ad782975060b76bf8 /Master/texmf-dist/source/latex/thmtools
parent588d746c4db3a95ed8ec234bf392c8ca7061fc3e (diff)
thmtools (3dec11)
git-svn-id: svn://tug.org/texlive/trunk@24742 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools')
-rw-r--r--Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx28
-rw-r--r--Master/texmf-dist/source/latex/thmtools/thmtools.ins1
2 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx b/Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx
new file mode 100644
index 00000000000..a3fd3658cba
--- /dev/null
+++ b/Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx
@@ -0,0 +1,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
diff --git a/Master/texmf-dist/source/latex/thmtools/thmtools.ins b/Master/texmf-dist/source/latex/thmtools/thmtools.ins
index 45016df995d..71487ac60c6 100644
--- a/Master/texmf-dist/source/latex/thmtools/thmtools.ins
+++ b/Master/texmf-dist/source/latex/thmtools/thmtools.ins
@@ -40,6 +40,7 @@ http://www.latex-project.org/lppl/lppl-1-3a.txt
\file{thm-llncs.sty}{\from{thm-llncs.dtx}{llncs}}
\file{thmdef-shaded.sty}{\from{thmdef-shaded.dtx}{shaded}}
\file{thmdef-thmbox.sty}{\from{thmdef-thmbox.dtx}{thmbox}}
+ \file{thmdef-mdframed.sty}{\from{thmdef-mdframed.dtx}{mdframed}}
}
\Msg{*********************************************************}
\Msg{*}