summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx
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/source/latex/thmtools/thm-amsthm.dtx
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/source/latex/thmtools/thm-amsthm.dtx')
-rw-r--r--Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx12
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx b/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx
index 52a667a966d..31a2397f478 100644
--- a/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx
+++ b/Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx
@@ -8,6 +8,8 @@
%<*amsthm>
%\fi
% \begin{macrocode}
+\providecommand\thmt@space{ }
+
\define@key{thmstyle}{spaceabove}{%
\def\thmt@style@spaceabove{#1}%
}
@@ -41,10 +43,16 @@
\newtoks\thmt@style@headstyle
\define@key{thmstyle}{headformat}[]{%
+ \thmt@setheadstyle{#1}%
+}
+\define@key{thmstyle}{headstyle}[]{%
+ \thmt@setheadstyle{#1}%
+}
+\def\thmt@setheadstyle#1{%
\thmt@style@headstyle{%
\def\NAME{\the\thm@headfont ##1}%
\def\NUMBER{\bgroup\@upn{##2}\egroup}%
- \def\NOTE{\if=##3=\else\bgroup\ \the\thm@notefont(##3)\egroup\fi}%
+ \def\NOTE{\if=##3=\else\bgroup\thmt@space\the\thm@notefont(##3)\egroup\fi}%
}%
\def\thmt@tmp{#1}%
\@onelevel@sanitize\thmt@tmp
@@ -57,7 +65,7 @@
\else
\thmt@style@headstyle\@xa{%
\the\thmt@style@headstyle
- #1
+ #1%
}%
\fi
%\showthe\thmt@style@headstyle