From ef97ef2e7835bee718f8f6c8f4c8420e4560bf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 23 Jan 2022 17:21:33 +0100 Subject: [PATCH] glue 'name=' key for thmtools differently to not expand name if it contains macros --- doc/environments/groupthm/groupthm.dtx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/environments/groupthm/groupthm.dtx b/doc/environments/groupthm/groupthm.dtx index 99cce66..fafe93c 100644 --- a/doc/environments/groupthm/groupthm.dtx +++ b/doc/environments/groupthm/groupthm.dtx @@ -2086,12 +2086,11 @@ % We now glue the name together of its three parts, % and pass this key directly to the \pkg{thmtools} arguments % \begin{macrocode} - \clist_put_right:Nx \l_@@_thmtools_clist - { - name = \tl_use:N \l_@@_prefix_tl - \tl_use:N \l_@@_name_tl - \tl_use:N \l_@@_suffix_tl - } + \tl_set:Nn \l_tmpa_tl { name = } + \tl_put_right:NV \l_tmpa_tl \l_@@_prefix_tl + \tl_put_right:NV \l_tmpa_tl \l_@@_name_tl + \tl_put_right:NV \l_tmpa_tl \l_@@_suffix_tl + \clist_put_right:NV \l_@@_thmtools_clist \l_tmpa_tl % \end{macrocode} % Finally, apply the additional \pkg{thmtools} keys for this specific theorem. % Putting them last will overwrite keys that were given by the groups.