From 92b4cdcc73a443c1d91d2d2963a91363856e1dea Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 3 Dec 2011 23:37:04 +0000 Subject: thmtools (3dec11) git-svn-id: svn://tug.org/texlive/trunk@24742 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/thmtools/thmdef-mdframed.dtx | 28 ++++++++++++++++++++++ .../texmf-dist/source/latex/thmtools/thmtools.ins | 1 + 2 files changed, 29 insertions(+) create mode 100644 Master/texmf-dist/source/latex/thmtools/thmdef-mdframed.dtx (limited to 'Master/texmf-dist/source/latex/thmtools') 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) +% +%\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{*} -- cgit v1.2.3