summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-23 16:25:16 +0000
committerKarl Berry <karl@freefriends.org>2011-08-23 16:25:16 +0000
commit95f44e6aaa9707ee94a8dfa04153274ce05396ac (patch)
tree56bd92a8ce774691f853b353e17f59fe54dcd5aa /Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
parent4731222142fb8eb709e5f954db3231ea1283eb63 (diff)
thmtools 61 (22aug11)
git-svn-id: svn://tug.org/texlive/trunk@23659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thmtools/thm-listof.sty')
-rw-r--r--Master/texmf-dist/tex/latex/thmtools/thm-listof.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty b/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
index fd805131af2..9dbdb7fbe6a 100644
--- a/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
+++ b/Master/texmf-dist/tex/latex/thmtools/thm-listof.sty
@@ -11,7 +11,7 @@
%% 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.
+%% Copyright (C) 2008-2011 by Ulrich M. Schwarz.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, version 1.3a.
@@ -20,7 +20,7 @@
%%
%%
\NeedsTeXFormat {LaTeX2e}
-\ProvidesPackage {thm-listof}[2010/08/09 v50]
+\ProvidesPackage {thm-listof}[2011/06/02 v61]
\let\@xa=\expandafter
\let\@nx=\noexpand
\RequirePackage{thm-patch,keyval,kvsetkeys}
@@ -28,13 +28,15 @@
\def\thmtlo@oldchapter{0}%
\newcommand\thmtlo@chaptervspacehack{}
\ifcsname c@chapter\endcsname
- \def\thmtlo@chaptervspacehack{%
- \ifnum \value{chapter}>\thmtlo@oldchapter\relax
- % new chapter, add vspace to loe.
- \addtocontents{loe}{\protect\addvspace{10\p@}}%
- \xdef\thmtlo@oldchapter{\arabic{chapter}}%
- \fi
- }%
+ \ifx\c@chapter\relax\else
+ \def\thmtlo@chaptervspacehack{%
+ \ifnum \value{chapter}>\thmtlo@oldchapter\relax
+ % new chapter, add vspace to loe.
+ \addtocontents{loe}{\protect\addvspace{10\p@}}%
+ \xdef\thmtlo@oldchapter{\arabic{chapter}}%
+ \fi
+ }%
+ \fi
\fi
\providecommand\listtheoremname{List of Theorems}