Skip to content

Commit

Permalink
Allow for older kernels without hooks
Browse files Browse the repository at this point in the history
At present, we still support <2020-10-01.
  • Loading branch information
josephwright committed Jan 23, 2024
1 parent 132a9c5 commit 8d3b7da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions siunitx-print.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@
% Color support is always required; to avoid a potential clash we delay to
% the start of the document.
% \begin{macrocode}
\hook_gput_code:nnn { begindocument / before } { siunitx }
{ \RequirePackage { color } }
\cs_if_exist:NTF \hook_gput_code:nnn
{ \hook_gput_code:nnn { begindocument / before } { siunitx } }
{ \AtBeginDocument }
{ \RequirePackage { color } }
% \end{macrocode}
%
% Required variants.
Expand Down

0 comments on commit 8d3b7da

Please sign in to comment.