diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thm-patch.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thm-patch.dtx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx b/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx index 3cb6a6fcd1d..498f20f676a 100644 --- a/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thm-patch.dtx @@ -64,9 +64,16 @@ \thmt@local@preheadhook \csname thmt@#1@preheadhook\endcsname \thmt@generic@preheadhook - \protected@edef\tmp@args{% - \ifx\@empty\thmt@optarg\else [{\thmt@optarg}]\fi - }% + % change following to \@xa-orgy at some point? + % forex, might have keyvals involving commands. + %\protected@edef\tmp@args{% + % \ifx\@empty\thmt@optarg\else [{\thmt@optarg}]\fi + %}% + \ifx\@empty\thmt@optarg + \def\tmp@args{}% + \else + \@xa\def\@xa\tmp@args\@xa{\@xa[\@xa{\thmt@optarg}]}% + \fi \csname thmt@original@#1\@xa\endcsname\tmp@args %%moved down: \thmt@local@postheadhook %% (give postheadhooks a chance to re-set nameref data) |