From 79529b0fa525b1a50ed200644ec5ee53e8aae2fa Mon Sep 17 00:00:00 2001 From: lvjr Date: Thu, 15 Feb 2024 21:56:39 +0800 Subject: [PATCH] only run code of the same library once (#364) --- tabularray.sty | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabularray.sty b/tabularray.sty index da40a1e..650a3d8 100644 --- a/tabularray.sty +++ b/tabularray.sty @@ -7039,7 +7039,11 @@ \NewDocumentCommand \UseTblrLibrary { m } { - \clist_map_inline:nn {#1} { \use:c { __tblr_use_lib_ ##1: } } + \clist_map_inline:nn {#1} + { + \use:c { __tblr_use_lib_ ##1: } + \cs_undefine:c { __tblr_use_lib_ ##1: } + } } %% Library amsmath and environments +array, +matrix, +cases, ...