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/thmtools.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/thmtools.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thmtools.dtx | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thmtools.dtx b/Master/texmf-dist/source/latex/thmtools/thmtools.dtx index 0cb1696e9ff..80782f0fb76 100644 --- a/Master/texmf-dist/source/latex/thmtools/thmtools.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thmtools.dtx @@ -28,45 +28,23 @@ %<*thmtools> %\fi % \begin{macrocode} +\DeclareOption{debug}{% + \def\thmt@debug{\typeout}% +} % common abbreviations and marker macros. \let\@xa\expandafter \let\@nx\noexpand +\def\thmt@debug{\@gobble} \def\thmt@quark{\thmt@quark} \newtoks\thmt@toks +\ProcessOptions\relax % a scratch counter, mostly for fake hyperlinks \newcounter{thmt@dummyctr}% \def\theHthmt@dummyctr{dummy.\arabic{thmt@dummyctr}}% \def\thethmt@dummyctr{}% -\newcommand\thmt@mkextendingkeyhandler[3]{% -% #1: family -% #2: prefix for file -% #3: key hint for error - \kv@set@family@handler{#1}{% - \IfFileExists{#2-##1.sty}{% - \PackageInfo{thmtools}% - {Automatically pulling in `#2-##1'}% - \RequirePackage{#2-##1}% - \ifcsname KV@#1@##1\endcsname - \csname KV@#1@##1\endcsname{##2}% - \else - \PackageError{thmtools}% - {#3 `##1' not known} - {I don't know what that key does.\MessageBreak - I've even loaded the file `#2-##1.sty', but that didn't help. - }% - \fi - }{% - \PackageError{thmtools}% - {#3 `##1' not known} - {I don't know what that key does by myself,\MessageBreak - and no file `#2-##1.sty' to tell me seems to exist. - }% - }% - } -} \RequirePackage{thm-patch, thm-kv, thm-autoref, thm-listof, @@ -75,10 +53,24 @@ % Glue code for the big players. \@ifpackageloaded{amsthm}{% \RequirePackage{thm-amsthm} -}{} +}{% + \AtBeginDocument{% + \@ifpackageloaded{amsthm}{% + \PackageWarningNoLine{thmtools}{% + amsthm loaded after thmtools + }{}% + }}% +} \@ifpackageloaded{ntheorem}{% \RequirePackage{thm-ntheorem} -}{} +}{% + \AtBeginDocument{% + \@ifpackageloaded{ntheorem}{% + \PackageWarningNoLine{thmtools}{% + ntheorem loaded after thmtools + }{}% + }}% +} \@ifclassloaded{beamer}{% \RequirePackage{thm-beamer} }{} |