summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thmtools/thmtools.sty
blob: e0c56a950bf4ce9faea7ffde6e8f85684e2454e4 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%%
%% This is file `thmtools.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% thmtools.dtx  (with options: `thmtools')
%% This is a generated file.
%% 
%% This file is part of the `thmtools' package.
%% The `thmtools' package has the LPPL maintenance status: maintained.
%% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de
%% 
%% Copyright (C) 2008-2010 by Ulrich M. Schwarz.
%% 
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, version 1.3a.
%% This version is obtainable at
%% http://www.latex-project.org/lppl/lppl-1-3a.txt
%% 
%% 
\NeedsTeXFormat {LaTeX2e}
\ProvidesPackage {thmtools}[2010/05/18 v24]
\let\@xa\expandafter
\let\@nx\noexpand
\def\thmt@quark{\thmt@quark}
\newtoks\thmt@toks

\newcounter{thmt@dummyctr}%
\def\theHthmt@dummyctr{dummy.\arabic{thmt@dummyctr}}%
\def\thethmt@dummyctr{}%

\newcommand\thmt@mkextendingkeyhandler[3]{%
  \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,
  thm-restate}

\@ifpackageloaded{amsthm}{%
  \RequirePackage{thm-amsthm}
}{}
\@ifpackageloaded{ntheorem}{%
  \RequirePackage{thm-ntheorem}
}{}
\@ifclassloaded{beamer}{%
  \RequirePackage{thm-beamer}
}{}

\endinput
%%
%% End of file `thmtools.sty'.