Skip to content

Commit

Permalink
load ninecolors with \AddToHook{package/xcolor/after} (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjr committed Jan 22, 2025
1 parent 629daaf commit 8e792df
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@
\msg_error:nn { tabularray } { latex-too-old }
}

\AtBeginDocument{
\@ifpackageloaded{xcolor}{\RequirePackage{ninecolors}}{}
\@ifpackageloaded{hyperref}{
\newenvironment{tblrNoHyper}{\NoHyper}{\endNoHyper}
}{
\newenvironment{tblrNoHyper}{}{}
}
}
\AddToHook {package/xcolor/after} [tabularray] { \RequirePackage{ninecolors} }

\newenvironment{tblrNoHyper}{}{}
\AddToHook {package/hyperref/after} [tabularray]
{ \renewenvironment{tblrNoHyper}{\NoHyper}{\endNoHyper} }

\NewDocumentCommand \TblrParboxRestore { } { \@parboxrestore }

Expand Down

0 comments on commit 8e792df

Please sign in to comment.