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,18 +2581,21 @@
\@@_sort_group_names:
\end { __#1__groups_ \clist_use:Nn \l_@@_group_clist { _ } }
}
\hook_gput_code:nnn { enddocument / afterlastpage } { groupthm }
\bool_if:NT \g_@@_cache_bool
{
\iow_now:cn { @auxout }
{
\ExplSyntaxOn
\hook_gput_code:nnn { @@ / auxfile define cached } { groupthm }
{
\@@_define_family_options:nnnn { #1 } { #2 } { #3 } { #4 }
}
\ExplSyntaxOff
\hook_gput_code:nnn { enddocument / afterlastpage } { groupthm }
{
\iow_now:cn { @auxout }
{
\ExplSyntaxOn
\hook_gput_code:nnn { @@ / auxfile define cached } { groupthm }
{
\@@_define_family_options:nnnn { #1 } { #2 } { #3 } { #4 }
}
\ExplSyntaxOff
}
}
}
}
}
% \end{macrocode}
% \end{macro}
@ -2761,14 +2764,17 @@
% query this value in the next run as soon as possible.
%
% \begin{macrocode}
\hook_gput_code:nnn { enddocument / afterlastpage } { before-groupthm }
\bool_if:NT \g_@@_cache_bool
{
\iow_now:cx { @auxout }
\hook_gput_code:nnn { enddocument / afterlastpage } { before-groupthm }
{
\token_to_str:N \ExplSyntaxOn
\int_gset:Nn \g_@@_cache_version_aux_int
{ \int_use:N \g_@@_cache_version_document_int }
\token_to_str:N \ExplSyntaxOff
\iow_now:cx { @auxout }
{
\token_to_str:N \ExplSyntaxOn
\int_gset:Nn \g_@@_cache_version_aux_int
{ \int_use:N \g_@@_cache_version_document_int }
\token_to_str:N \ExplSyntaxOff
}
}
}
\hook_gset_rule:nnnn { enddocument / afterlastpage } { before-groupthm } { before } { groupthm }