diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-09 22:20:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-09 22:20:52 +0000 |
commit | ade959d5f7adbbef896062a4245725f1369e1b1f (patch) | |
tree | 6890ee291e0535e02d4ff77abd23a5cf802e4f76 /Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx | |
parent | 4b653b7509fc5880c21ce05b56562dda6e8e12f2 (diff) |
thmtools update (9jun10)
git-svn-id: svn://tug.org/texlive/trunk@18850 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx b/Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx index 8da999bfdaa..ea22cbae977 100644 --- a/Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thmdef-thmbox.dtx @@ -7,8 +7,17 @@ %\iffalse (hide this from DocInput) %<*thmbox> %\fi +% The thmbox package does something else: instead of having a separate +% environment, we have to use a command different from +% \lstinline|\newtheorem| to get the boxed style. Fortunately, +% \thmtools stores the command as \lstinline|\thmt@theoremdefiner|, so we +% can modify it. (One of the perks if extension writer and framework writer +% are the same person.) So, in contrast to the previous example, this time +% we need to do something before the actual \lstinline|\newtheorem| is +% called. % \begin{macrocode} \define@key{thmdef}{thmbox}[L]{% + \thmt@trytwice{% \let\oldproof=\proof \let\oldendproof=\endproof \let\oldexample=\example @@ -19,6 +28,7 @@ \let\example=\oldexample \let\endexample=\oldendexample \def\thmt@theoremdefiner{\newboxtheorem[#1]}% + }{}% }% % \end{macrocode} %\iffalse (hide this from DocInput) |