don't write anything to aux file when not in cache mode

This commit is contained in:
Maximilian Keßler 2022-02-01 11:59:17 +01:00
parent a3211f8a8f
commit 11d13efe62

View file

@ -2581,6 +2581,8 @@
\@@_sort_group_names: \@@_sort_group_names:
\end { __#1__groups_ \clist_use:Nn \l_@@_group_clist { _ } } \end { __#1__groups_ \clist_use:Nn \l_@@_group_clist { _ } }
} }
\bool_if:NT \g_@@_cache_bool
{
\hook_gput_code:nnn { enddocument / afterlastpage } { groupthm } \hook_gput_code:nnn { enddocument / afterlastpage } { groupthm }
{ {
\iow_now:cn { @auxout } \iow_now:cn { @auxout }
@ -2594,6 +2596,7 @@
} }
} }
} }
}
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
@ -2761,7 +2764,9 @@
% query this value in the next run as soon as possible. % query this value in the next run as soon as possible.
% %
% \begin{macrocode} % \begin{macrocode}
\hook_gput_code:nnn { enddocument / afterlastpage } { before-groupthm } \bool_if:NT \g_@@_cache_bool
{
\hook_gput_code:nnn { enddocument / afterlastpage } { before-groupthm }
{ {
\iow_now:cx { @auxout } \iow_now:cx { @auxout }
{ {
@ -2771,6 +2776,7 @@
\token_to_str:N \ExplSyntaxOff \token_to_str:N \ExplSyntaxOff
} }
} }
}
\hook_gset_rule:nnnn { enddocument / afterlastpage } { before-groupthm } { before } { groupthm } \hook_gset_rule:nnnn { enddocument / afterlastpage } { before-groupthm } { before } { groupthm }
% \end{macrocode} % \end{macrocode}
% %