From bea7380166d11cabb8b2c23c4fa11bf51125973c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 31 Jan 2022 20:36:29 +0100 Subject: [PATCH] ensure correct hook order --- src/environments/groupthm/groupthm.dtx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} % %