Skip to content

Commit

Permalink
Load color pkg in begindocument/before hook
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 19, 2024
1 parent 3b91ccd commit 5fd624d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion siunitx-print.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5fd624d

Please sign in to comment.