diff --git a/src/environments/groupthm/groupthm.dtx b/src/environments/groupthm/groupthm.dtx index 2d37775..4a43b19 100644 --- a/src/environments/groupthm/groupthm.dtx +++ b/src/environments/groupthm/groupthm.dtx @@ -2691,7 +2691,7 @@ % % % \begin{macrocode} -\hook_gput_code:nnn { enddocument / afterlastpage } { groupthm } +\hook_gput_code:nnn { enddocument / afterlastpage } { before-groupthm } { \cs_set_eq:NN \@@_thmtools_declare_theorem:nn \use_none:nn \iow_now:cx { @auxout } @@ -2720,6 +2720,7 @@ \token_to_str:N \ExplSyntaxOff } } +\hook_gset_rule:nnnn { enddocument / afterlastpage } { before-groupthm } { before } { groupthm } % \end{macrocode} % %