From 9a45126306abb4d5afbc62ede6d8f679a7dca8f3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 19 Sep 2010 22:59:00 +0000 Subject: thmtools update (10aug10) git-svn-id: svn://tug.org/texlive/trunk@19813 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx | 1 + Master/texmf-dist/source/latex/thmtools/thm-listof.dtx | 2 +- Master/texmf-dist/source/latex/thmtools/thm-patch.dtx | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/source/latex/thmtools') diff --git a/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx b/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx index 7ff3b98249d..52a667a966d 100644 --- a/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx @@ -125,6 +125,7 @@ \define@key{thmdef}{qed}[\qedsymbol]{% \thmt@trytwice{}{% \addtotheorempostheadhook[\thmt@envname]{% + \protected@edef\qedsymbol{#1}% \pushQED{\qed}% }% \addtotheoremprefoothook[\thmt@envname]{% diff --git a/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx b/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx index 29097408c54..ff216fe5f8b 100644 --- a/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx @@ -59,7 +59,7 @@ \def\thmtlo@oldchapter{0}% \newcommand\thmtlo@chaptervspacehack{} -\ifcsname chapter\endcsname +\ifcsname c@chapter\endcsname \def\thmtlo@chaptervspacehack{% \ifnum \value{chapter}>\thmtlo@oldchapter\relax % new chapter, add vspace to loe. diff --git a/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx b/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx index 498f20f676a..cc6ab2fe68d 100644 --- a/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx @@ -118,7 +118,9 @@ } \newcommand\thmt@newtheorem@predefinition{} -\newcommand\thmt@newtheorem@postdefinition{} +\newcommand\thmt@newtheorem@postdefinition{% + \let\thmt@theoremdefiner\thmt@original@newtheorem +} \g@addto@macro\thmt@newtheorem@predefinition{% \@xa\thmt@providetheoremhooks\@xa{\thmt@envname}% -- cgit v1.2.3