Skip to content

Commit

Permalink
load tabularray libraries in external files (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjr committed Nov 25, 2024
1 parent b769dac commit 50a50cc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -7076,12 +7076,19 @@
\cs_new_protected:cpn { __tblr_use_lib_ #1: } {#2}
}
%% Note that \prg_do_nothing: is an existing command.
\NewDocumentCommand \UseTblrLibrary { m }
{
\clist_map_inline:nn {#1}
{
\use:c { __tblr_use_lib_ ##1: }
\cs_undefine:c { __tblr_use_lib_ ##1: }
\cs_if_exist:cTF { __tblr_use_lib_ ##1: }
{
\use:c { __tblr_use_lib_ ##1: }
\cs_gset_eq:cN { __tblr_use_lib_ ##1: } \prg_do_nothing:
}
{
\RequirePackage { tabularray-library-##1 }
}
}
}
Expand Down

0 comments on commit 50a50cc

Please sign in to comment.