glue 'name=' key for thmtools differently to not expand name if it contains macros

This commit is contained in:
Maximilian Keßler 2022-01-23 17:21:33 +01:00
parent 13ae62e156
commit ef97ef2e78

View file

@ -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.