summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/thmtools/thm-listof.sty')
-rw-r--r--Master/texmf-dist/tex/latex/thmtools/thm-listof.sty17
1 files changed, 15 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty b/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
index d120829c6ef..ffcf87aa17b 100644
--- a/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
+++ b/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
@@ -19,11 +19,23 @@
%% http://www.latex-project.org/lppl/lppl-1-3a.txt
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{thm-listof}[2008/02/17 BETA thm-listof (ulmi)]
+\ProvidesPackage{thm-listof}[2008/05/10 v0.1beta3 thm-listof (ulmi)]
\let\@xa=\expandafter
\let\@nx=\noexpand
\RequirePackage{thm-patch}
+\def\thmtlo@oldchapter{0}%
+\newcommand\thmtlo@chaptervspacehack{}
+\@ifundefined{chapter}{}{%
+ \def\thmtlo@chaptervspacehack{%
+ \ifnum \arabic{chapter}>\thmtlo@oldchapter\relax
+ % new chapter, add vspace to loe.
+ \addtocontents{loe}{\protect\addvspace{10\p@}}%
+ \edef\thmtlo@oldchapter{\arabic{chapter}}%
+ \fi
+ }%
+}
+
\providecommand\listtheoremname{List of Theorems}
\newcommand\listoftheorems{%
%% much hacking here to pick up the definition from the class
@@ -45,7 +57,8 @@
\thmt@mklistcmd
}
-\addtotheoremposthook{%
+\addtotheorempostheadhook{%
+ \thmtlo@chaptervspacehack
\addcontentsline{loe}{\thmt@envname}{%
\numberline{\csname the\thmt@envname\endcsname}%
\thmt@thmname