From 63c4f21a5716ebbed11926d0bfbb26d656a766ea Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sat, 18 Jul 2020 03:01:08 +0000
Subject: CTAN sync 202007180301

---
 macros/latex/contrib/thmtools/source/thmtools.dtx | 92 +++++++++++++++++++++++
 1 file changed, 92 insertions(+)
 create mode 100644 macros/latex/contrib/thmtools/source/thmtools.dtx

(limited to 'macros/latex/contrib/thmtools/source/thmtools.dtx')

diff --git a/macros/latex/contrib/thmtools/source/thmtools.dtx b/macros/latex/contrib/thmtools/source/thmtools.dtx
new file mode 100644
index 0000000000..32e819c8e1
--- /dev/null
+++ b/macros/latex/contrib/thmtools/source/thmtools.dtx
@@ -0,0 +1,92 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2008-2014 by Ulrich M. Schwarz
+% Copyright (C) 2019      by Frank Mittelbach
+% Copyright (C) 2020-     by Yukai Chou
+%
+% This file may be distributed and/or modified under the conditions of
+% the LaTeX Project Public License, version 1.3c.
+% The license can be obtained from
+% http://www.latex-project.org/lppl/lppl-1.3c.txt
+%
+% \fi
+%
+%\iffalse (hide this from DocInput)
+%<*driver>
+\makeatletter
+\ifx\documentclass\@twoclasserror\else
+  \expandafter\@firstofone
+\fi{%
+  \makeatother
+  %% we are either \RequirePackage'd
+  %% (which we won't support) or compiled directly.
+  %% If we are compiled directly, yield the manual.
+  %% Otherwise, this looks like a debugging session
+  %% that directly uses the dtx file instead of the sty.
+  \input{thmtools-manual.tex}
+  \endinput
+}
+%</driver>
+%<*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
+
+\@for\thmt@opt:=lowercase,uppercase,anycase\do{%
+  \@xa\DeclareOption\@xa{\thmt@opt}{%
+    \@xa\PassOptionsToPackage\@xa{\CurrentOption}{thm-kv}%
+  }%
+}
+
+\ProcessOptions\relax
+
+% a scratch counter, mostly for fake hyperlinks
+\newcounter{thmt@dummyctr}%
+\def\theHthmt@dummyctr{dummy.\arabic{thmt@dummyctr}}%
+\def\thethmt@dummyctr{}%
+
+
+\RequirePackage{thm-patch, thm-kv, 
+  thm-autoref, thm-listof, 
+  thm-restate}
+
+% 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}
+}{}
+\@ifclassloaded{llncs}{%
+  \RequirePackage{thm-llncs}
+}{}
+%    \end{macrocode}
+
+%\iffalse
+%</thmtools>
+%\fi
-- 
cgit v1.2.3

