Skip to content

Adding in the documentation that the package color is loaded #857

@quark67

Description

@quark67

Lines 5073-5076 of siunitx.sty (in my local distribution) contains:

\cs_if_exist:NTF \AddToHook
  { \AddToHook { begindocument / before } }
  { \AtBeginDocument }
    { \RequirePackage { color } }

or lines 339-346 of siunitx-print.dtx here contains:

% Color support is always required; to avoid a potential clash we delay to
% the start of the document.
%    \begin{macrocode}
\cs_if_exist:NTF \AddToHook
  { \AddToHook { begindocument / before } }
  { \AtBeginDocument }
    { \RequirePackage { color } }
%    \end{macrocode}

So color package is always loaded. It can be usefull to say this in the manual in order to avoid coding somethinkg like:

\documentclass{article}
\usepackage{siunitx}
\usepackage{color}

Probably not a problem, but not a clean code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions