diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thm-amsthm.dtx | 12 |
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 |