diff --git a/CHANGELOG.md b/CHANGELOG.md index b113b8d9..374dd611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +### Changed +- Load `color` package in `begindocument/before` hook + ## [v3.3.9] - 2023-11-14 ### Fixed diff --git a/siunitx-print.dtx b/siunitx-print.dtx index 6e1a89f6..04c77652 100644 --- a/siunitx-print.dtx +++ b/siunitx-print.dtx @@ -344,7 +344,8 @@ % Color support is always required; to avoid a potential clash we delay to % the start of the document. % \begin{macrocode} -\AtBeginDocument { \RequirePackage { color } } +\hook_gput_code:nnn { begindocument / before } { siunitx } + { \RequirePackage { color } } % \end{macrocode} % % Required variants.