texlive[72899] Master/texmf-dist: nicematrix (19nov24)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 19 21:34:58 CET 2024


Revision: 72899
          https://tug.org/svn/texlive?view=revision&revision=72899
Author:   karl
Date:     2024-11-19 21:34:58 +0100 (Tue, 19 Nov 2024)
Log Message:
-----------
nicematrix (19nov24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-code.pdf
    trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf
    trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex
    trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf
    trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex
    trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx
    trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty

Modified: trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex	2024-11-19 20:34:45 UTC (rev 72898)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex	2024-11-19 20:34:58 UTC (rev 72899)
@@ -205,10 +205,10 @@
   automatiquement un nombre de compilations suffisant (en utilisant |latexmk|).}. L'utilisateur ne doit
 pas utiliser la commande |\nofiles| (qui bloque l'écriture du fichier |aux|). 
 
-\medskip
-La plupart des fonctionnalités de \pkg{nicematrix} sont accessibles sans avoir à
-utiliser explicitement \textsc{pgf} ou TikZ (ce dernier n'est d'ailleurs pas
-chargé par défaut).
+% \medskip
+% La plupart des fonctionnalités de \pkg{nicematrix} sont accessibles sans avoir à
+% utiliser explicitement \textsc{pgf} ou TikZ (ce dernier n'est d'ailleurs pas
+% chargé par défaut).
 
 \medskip
 \indexcommand{NiceMatrixOptions}
@@ -217,6 +217,10 @@
 semi-globales).
 
 
+\medskip
+\colorbox{yellow!50}{\bfseries Nouveau 7.0}\enskip \pkg{nicematrix} est
+compatible avec le \emph{Tagging Project} : cf. p.~\pageref{Tagging Project}.
+
 \newpage
 
 \section{Les environnements de cette extension}
@@ -6300,7 +6304,6 @@
 Première remarque : l'extension \pkg{nicematrix} doit être chargée après
 l'extension \pkg{underscore}. Si elle est chargée après, une erreur sera levée.
 
-
 \subsection{Lignes diagonales}
 
 \label{parallelization}
@@ -6517,6 +6520,55 @@
 on peut utiliser les colonnes |S| de \pkg{siunitx}). 
 
 
+\subsection{Compatibilité avec le Tagging Project de LaTeX}
+
+\index{Tagging Project}
+\label{Tagging Project}
+
+\colorbox{yellow!50}{\bfseries Nouveau 7.0}
+
+Depuis la version 7.0, l'extension \pkg{nicematrix} est compatible avec le
+\emph{Tagging Project} de LaTeX visant à la création automatique de PDF balisés.
+Pour le moment, seuls les tableaux simples sont correctement balisés.
+
+Voici un exemple de code qui va produire un PDF correctement balisé.
+
+
+\bigskip
+\begin{center}
+\small
+\begin{Code}
+\DocumentMetadata{
+  lang        = en,
+  pdfversion  = 2.0,
+  pdfstandard = ua-2,
+  pdfstandard = a-4f, 
+  \emph{testphase   = {phase-III, table, math}}
+}
+\documentclass{article}
+\usepackage{lmodern}
+\usepackage{nicematrix}
+
+\begin{document}
+
+\begin{center}
+\emph{\tagpdfsetup{table/header-rows=1}}
+\begin{NiceTabular}{ccc}[hvlines]
+First name & Last name & Age \\
+Paul       & Imbert    & $66$ \\
+John       & Sarrus    & $23$ \\
+Liz        & Taylor    & $100$ \\
+George     & Adams     & $34$ 
+\end{NiceTabular}
+\end{center}
+
+\end{document}
+\end{Code}
+\end{center}
+
+
+
+
 \section{Exemples}
 
 \subsection{Utilisation de la clé «tikz» de la commande \textbackslash Block}

Modified: trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex	2024-11-19 20:34:45 UTC (rev 72898)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex	2024-11-19 20:34:58 UTC (rev 72899)
@@ -202,9 +202,9 @@
 a sufficient number of compilations.}. One must not use the command |\nofiles|
 (which prevents the creation of the |aux| file).
 
-\medskip
-Most features of \pkg{nicematrix} may be used without explicit use of
-\textsc{pgf} or TikZ (which, in fact, is not loaded by default).
+% \medskip
+% Most features of \pkg{nicematrix} may be used without explicit use of
+% \textsc{pgf} or TikZ (which, in fact, is not loaded by default).
 
 \medskip
 \indexcommand{NiceMatrixOptions}
@@ -213,7 +213,12 @@
 semi-global). 
 
 
+\medskip
+\colorbox{yellow!50}{\bfseries New 7.0}\enskip \pkg{nicematrix} is 
+compatible with the \emph{Tagging Project} : cf. p.~\pageref{Tagging Project}.
 
+
+
 \newpage
 
 \section{The environments of this package} 
@@ -6370,6 +6375,54 @@
 The columns |d| of \pkg{dcolumn} are not supported (but it's possible to use
 the colums |S| of \pkg{siunitx}).
 
+
+\subsection{Compatibility with the Tagging Project of LaTeX}
+
+\index{Tagging Project}
+\label{Tagging Project}
+
+\colorbox{yellow!50}{\bfseries New 7.0}
+
+Since the version 7.0, the extension \pkg{nicematrix} is compatible with the
+\emph{Tagging Project} of LaTeX (whose aim is to create tagged PDF). At this time, only
+simple standard tabulars are correctly tagged.
+
+Here is a example of code which will produce a generate tagged PDF.
+
+\bigskip
+\begin{center}
+\small
+\begin{Code}
+\DocumentMetadata{
+  lang        = en,
+  pdfversion  = 2.0,
+  pdfstandard = ua-2,
+  pdfstandard = a-4f, 
+  \emph{testphase   = {phase-III, table, math}}
+}
+\documentclass{article}
+\usepackage{lmodern}
+\usepackage{nicematrix}
+
+\begin{document}
+
+\begin{center}
+\emph{\tagpdfsetup{table/header-rows=1}}
+\begin{NiceTabular}{ccc}[hvlines]
+First name & Last name & Age \\
+Paul       & Imbert    & $66$ \\
+John       & Sarrus    & $23$ \\
+Liz        & Taylor    & $100$ \\
+George     & Adams     & $34$ 
+\end{NiceTabular}
+\end{center}
+
+\end{document}
+\end{Code}
+\end{center}
+
+
+
 \section{Examples}
 
 \subsection[{Utilisation of the key 'tikz' of the command \textbackslash

Modified: trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2024-11-19 20:34:45 UTC (rev 72898)
+++ trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2024-11-19 20:34:58 UTC (rev 72899)
@@ -17,8 +17,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{6.29b}
-\def\myfiledate{2024/11/12}
+\def\myfileversion{7.0}
+\def\myfiledate{2024/11/18}
 %
 %
 %<*batchfile>  
@@ -162,11 +162,10 @@
 % In the version 2.6a of \pkg{array}, important modifications have been done for
 % the Tagging Project. 
 %    \begin{macrocode}
-\bool_const:Nn \c_@@_tagging_array_bool
+\bool_const:Nn \c_@@_recent_array_bool
   { \IfPackageAtLeastTF { array } { 2024/05/01 } \c_true_bool \c_false_bool }
 \bool_const:Nn \c_@@_testphase_table_bool
-  { \IfPackageLoadedTF { latex-lab-testphase-table } \c_true_bool \c_false_bool
-  }
+  { \IfPackageLoadedTF { latex-lab-testphase-table } \c_true_bool \c_false_bool }
 %    \end{macrocode}
 % 
 %
@@ -3503,7 +3502,7 @@
 % |\ialign|. In that case, of course, you do a saving of |\ar at ialign|.
 %    \begin{macrocode}
 \bool_if:nTF 
-  { \c_@@_tagging_array_bool && ! \c_@@_revtex_bool }
+  { \c_@@_recent_array_bool && ! \c_@@_revtex_bool }
   { \cs_set_eq:NN \@@_old_ar at ialign: \ar at ialign }
   { \cs_set_eq:NN \@@_old_ialign: \ialign }
 %    \end{macrocode}
@@ -3558,9 +3557,9 @@
 %
 % \bigskip
 %    \begin{macrocode}
-\cs_new_protected:Npn \@@_everycr:
+\cs_new_protected:Npn \@@_in_everycr:
   { 
-    \bool_if:NT \c_@@_testphase_table_bool
+    \bool_if:NT \c_@@_recent_array_bool
       {
         \tbl_if_row_was_started:T { \UseTaggingSocket { tbl / row / end } }
         \tbl_update_cell_data_for_next_row:
@@ -3643,12 +3642,12 @@
   {
     \IfPackageLoadedTF { colortbl }
       {
-        \cs_set_protected:Npn \@@_redefine_everycr:
-          { \CT at everycr { \noalign { \@@_everycr: } } }
+        \cs_set_protected:Npn \@@_everycr:
+          { \CT at everycr { \noalign { \@@_in_everycr: } } }
       }
       {
-        \cs_new_protected:Npn \@@_redefine_everycr: 
-          { \everycr { \noalign { \@@_everycr: } } } 
+        \cs_new_protected:Npn \@@_everycr: 
+          { \everycr { \noalign { \@@_in_everycr: } } } 
       }
   }
 %    \end{macrocode}
@@ -3688,6 +3687,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_some_initialization:
   {
+    \@@_everycr:
     \dim_gset:Nn \g_@@_dp_row_zero_dim { \box_dp:N \@arstrutbox }
     \dim_gset:Nn \g_@@_ht_row_zero_dim { \box_ht:N \@arstrutbox }
     \dim_gset_eq:NN \g_@@_ht_row_one_dim \g_@@_ht_row_zero_dim
@@ -3750,19 +3750,19 @@
 % 
 % \bigskip
 % The environment |{array}| (since version 2.6) uses internally the command
-% |\ar at ialign|. We change the definition of |\ialign| for several reasons. In
-% particular, |\ialign| sets |\everycr| to |{ }| and we \emph{need} to have to
-% change the value of |\everycr|. 
+% |\ar at ialign| (and previously, it was  |\ialign|). We change that command for
+% several reasons. In particular, |\ar at ialign| sets |\everycr| to |{ }| and we
+% \emph{need} to change the value of |\everycr|. 
 %    \begin{macrocode}
     \bool_if:nTF 
-      { \c_@@_tagging_array_bool && ! \c_@@_revtex_bool }
+      { \c_@@_recent_array_bool && ! \c_@@_revtex_bool }
       {
         \cs_set_nopar:Npn \ar at ialign 
           { 
-            \bool_if:NT \c_@@_testphase_table_bool \tbl_init_cell_data_for_table:
-            \@@_redefine_everycr:
+            \bool_if:NT \c_@@_testphase_table_bool
+              \tbl_init_cell_data_for_table:
+            \@@_some_initialization:
             \dim_zero:N \tabskip 
-            \@@_some_initialization:
 %    \end{macrocode}
 %
 % After its first use, the definition of |\ar at ialign| will revert
@@ -3775,8 +3775,8 @@
       }
 %    \end{macrocode}
 % The following part will be deleted when we will delete the boolean
-% |\c_@@_tagging_array_bool| (when we consider the version 2.6a of \pkg{array}
-% is required). Morevover, \cls{revtex4-2} modifies \pkg{array} and provides
+% |\c_@@_recent_array_bool| (when we consider the version 2.6a of \pkg{array}
+% is required). Moreover, \cls{revtex4-2} modifies \pkg{array} and provides
 % commands which are meant to be the standard version of \pkg{array} but, at the
 % date of november 2024, these commands corresponds to the \emph{old} version of
 % \pkg{array}, that is to say without the |\ar at ialign|.
@@ -3784,9 +3784,8 @@
       {
         \cs_set_nopar:Npn \ialign 
           { 
-            \@@_redefine_everycr:
+            \@@_some_initialization:
             \dim_zero:N \tabskip 
-            \@@_some_initialization:
             \cs_set_eq:NN \ialign \@@_old_ialign:
             \halign 
           }
@@ -4050,7 +4049,7 @@
       }
       { 
         \dim_gset:Nn \l_@@_left_delim_dim 
-           { 2 \bool_if:NTF \l_@@_tabular_bool \tabcolsep \arraycolsep }
+          { 2 \bool_if:NTF \l_@@_tabular_bool \tabcolsep \arraycolsep }
         \dim_gset_eq:NN \l_@@_right_delim_dim \l_@@_left_delim_dim 
       }
 %    \end{macrocode}
@@ -4061,7 +4060,7 @@
 % part of the environment (and the closing |\c_math_toggle_token| also).
 %    \begin{macrocode}
     \hbox_set:Nw \l_@@_the_array_box
-    \bool_if:NT \c_@@_testphase_table_bool
+    \bool_if:NT \c_@@_recent_array_bool
       { \UseTaggingSocket { tbl / hmode / begin } }
 %    \end{macrocode}
 %
@@ -4068,6 +4067,13 @@
 %    \begin{macrocode}
     \skip_horizontal:N \l_@@_left_margin_dim 
     \skip_horizontal:N \l_@@_extra_left_margin_dim 
+%    \end{macrocode}
+%
+% The following code is a workaround to specify to the tagging system that the
+% following code is \emph{fake math} (it raises |\l__math_fakemath_bool| in
+% recent versions of LaTEX).
+%    \begin{macrocode}
+    \m at th
     \c_math_toggle_token
     \bool_if:NTF \l_@@_light_syntax_bool
       { \use:c { @@-light-syntax } }
@@ -4980,11 +4986,19 @@
 % possible to do that in |{NiceTabular*}| (we control that with the value of 
 % |\l_@@_tabular_width_dim|). 
 %    \begin{macrocode}
-    \dim_compare:nNnT \l_@@_tabular_width_dim = \c_zero_dim 
-      { 
-        \tl_gput_right:Nn \g_@@_array_preamble_tl 
-          { > { \@@_error_too_much_cols: } l }
-      } 
+  \dim_compare:nNnT \l_@@_tabular_width_dim = \c_zero_dim 
+    {
+%    \end{macrocode}
+% If the tagging of the tabulars is done (part of the Tagging Project), you
+% don't activate that mechanism because it would create a dummy column of tagged
+% empty cells.
+%    \begin{macrocode}
+      \bool_if:NF \c_@@_testphase_table_bool
+        { 
+          \tl_gput_right:Nn \g_@@_array_preamble_tl 
+            { > { \@@_error_too_much_cols: } l }
+        } 
+    }
   }
 %    \end{macrocode}
 %
@@ -6071,7 +6085,7 @@
     \exp_args:No \@mkpream \g_@@_preamble_tl
     \@addtopreamble \@empty
     \endgroup
-    \bool_if:NT \c_@@_testphase_table_bool
+    \bool_if:NT \c_@@_recent_array_bool
       { \UseTaggingSocket { tbl / colspan } { #1 } }
 %    \end{macrocode}
 %
@@ -6488,7 +6502,7 @@
   {
     \group_begin:
 %    \end{macrocode}
-% The flag |\l_@@_in_caption_bool| affects only the behaviour of the command
+% The flag |\l_@@_in_caption_bool| affects only the behavior of the command
 % |\tabularnote| when used in the caption.
 %    \begin{macrocode}
     \bool_set_true:N \l_@@_in_caption_bool
@@ -7524,7 +7538,7 @@
   }
   { 
     \endNiceArray 
-    \bool_if:NT \c_@@_testphase_table_bool
+    \bool_if:NT \c_@@_recent_array_bool
       { \UseTaggingSocket { tbl / hmode / end } }
   }
 %    \end{macrocode}
@@ -7830,7 +7844,7 @@
               }
           }  
       }
-    \bool_if:NT \c_@@_tagging_array_bool
+    \bool_if:NT \c_@@_recent_array_bool
       { \cs_set_eq:NN \ar at ialign \@@_old_ar at ialign: }
     \cs_set_eq:NN \SubMatrix \@@_SubMatrix
     \cs_set_eq:NN \UnderBrace \@@_UnderBrace
@@ -13746,7 +13760,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_draw_blocks:
   { 
-    \bool_if:NTF \c_@@_tagging_array_bool
+    \bool_if:NTF \c_@@_recent_array_bool
       { \cs_set_eq:NN \ar at ialign \@@_old_ar at ialign: }
       { \cs_set_eq:NN \ialign \@@_old_ialign: }
     \seq_map_inline:Nn \g_@@_blocks_seq { \@@_Block_iv:nnnnnn ##1 } 

Modified: trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2024-11-19 20:34:45 UTC (rev 72898)
+++ trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2024-11-19 20:34:58 UTC (rev 72899)
@@ -18,8 +18,8 @@
 %% and version 1.3 or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 %% 
-\def\myfileversion{6.29b}
-\def\myfiledate{2024/11/12}
+\def\myfileversion{7.0}
+\def\myfiledate{2024/11/18}
 \RequirePackage{pgfcore}
 \usepgfmodule{shapes}
 \RequirePackage{l3keys2e}
@@ -35,11 +35,10 @@
   {\IfPackageLoadedTF{#1}{}{#2}}
 \RequirePackage { amsmath }
 \RequirePackage { array }
-\bool_const:Nn \c__nicematrix_tagging_array_bool
+\bool_const:Nn \c__nicematrix_recent_array_bool
   { \IfPackageAtLeastTF { array } { 2024/05/01 } \c_true_bool \c_false_bool }
 \bool_const:Nn \c__nicematrix_testphase_table_bool
-  { \IfPackageLoadedTF { latex-lab-testphase-table } \c_true_bool \c_false_bool
-  }
+  { \IfPackageLoadedTF { latex-lab-testphase-table } \c_true_bool \c_false_bool }
 \cs_new_protected:Npn \__nicematrix_error:n { \msg_error:nn { nicematrix } }
 \cs_new_protected:Npn \__nicematrix_warning:n { \msg_warning:nn { nicematrix } }
 \cs_new_protected:Npn \__nicematrix_error:nn { \msg_error:nnn { nicematrix } }
@@ -1427,7 +1426,7 @@
     [ \str_if_eq:eeTF \l__nicematrix_baseline_tl c c t ]
   }
 \bool_if:nTF
-  { \c__nicematrix_tagging_array_bool && ! \c__nicematrix_revtex_bool }
+  { \c__nicematrix_recent_array_bool && ! \c__nicematrix_revtex_bool }
   { \cs_set_eq:NN \__nicematrix_old_ar at ialign: \ar at ialign }
   { \cs_set_eq:NN \__nicematrix_old_ialign: \ialign }
 \cs_new_protected:Npn \__nicematrix_create_row_node:
@@ -1465,9 +1464,9 @@
         \endpgfpicture
       }
   }
-\cs_new_protected:Npn \__nicematrix_everycr:
+\cs_new_protected:Npn \__nicematrix_in_everycr:
   {
-    \bool_if:NT \c__nicematrix_testphase_table_bool
+    \bool_if:NT \c__nicematrix_recent_array_bool
       {
         \tbl_if_row_was_started:T { \UseTaggingSocket { tbl / row / end } }
         \tbl_update_cell_data_for_next_row:
@@ -1517,12 +1516,12 @@
   {
     \IfPackageLoadedTF { colortbl }
       {
-        \cs_set_protected:Npn \__nicematrix_redefine_everycr:
-          { \CT at everycr { \noalign { \__nicematrix_everycr: } } }
+        \cs_set_protected:Npn \__nicematrix_everycr:
+          { \CT at everycr { \noalign { \__nicematrix_in_everycr: } } }
       }
       {
-        \cs_new_protected:Npn \__nicematrix_redefine_everycr:
-          { \everycr { \noalign { \__nicematrix_everycr: } } }
+        \cs_new_protected:Npn \__nicematrix_everycr:
+          { \everycr { \noalign { \__nicematrix_in_everycr: } } }
       }
   }
 \hook_gput_code:nnn { begindocument } { . }
@@ -1536,6 +1535,7 @@
   }
 \cs_new_protected:Npn \__nicematrix_some_initialization:
   {
+    \__nicematrix_everycr:
     \dim_gset:Nn \g__nicematrix_dp_row_zero_dim { \box_dp:N \@arstrutbox }
     \dim_gset:Nn \g__nicematrix_ht_row_zero_dim { \box_ht:N \@arstrutbox }
     \dim_gset_eq:NN \g__nicematrix_ht_row_one_dim \g__nicematrix_ht_row_zero_dim
@@ -1566,14 +1566,14 @@
           }
       }
     \bool_if:nTF
-      { \c__nicematrix_tagging_array_bool && ! \c__nicematrix_revtex_bool }
+      { \c__nicematrix_recent_array_bool && ! \c__nicematrix_revtex_bool }
       {
         \cs_set_nopar:Npn \ar at ialign
           {
-            \bool_if:NT \c__nicematrix_testphase_table_bool \tbl_init_cell_data_for_table:
-            \__nicematrix_redefine_everycr:
+            \bool_if:NT \c__nicematrix_testphase_table_bool
+              \tbl_init_cell_data_for_table:
+            \__nicematrix_some_initialization:
             \dim_zero:N \tabskip
-            \__nicematrix_some_initialization:
             \cs_set_eq:NN \ar at ialign \__nicematrix_old_ar at ialign:
             \halign
           }
@@ -1581,9 +1581,8 @@
       {
         \cs_set_nopar:Npn \ialign
           {
-            \__nicematrix_redefine_everycr:
+            \__nicematrix_some_initialization:
             \dim_zero:N \tabskip
-            \__nicematrix_some_initialization:
             \cs_set_eq:NN \ialign \__nicematrix_old_ialign:
             \halign
           }
@@ -1700,14 +1699,15 @@
       }
       {
         \dim_gset:Nn \l__nicematrix_left_delim_dim
-           { 2 \bool_if:NTF \l__nicematrix_tabular_bool \tabcolsep \arraycolsep }
+          { 2 \bool_if:NTF \l__nicematrix_tabular_bool \tabcolsep \arraycolsep }
         \dim_gset_eq:NN \l__nicematrix_right_delim_dim \l__nicematrix_left_delim_dim
       }
     \hbox_set:Nw \l__nicematrix_the_array_box
-    \bool_if:NT \c__nicematrix_testphase_table_bool
+    \bool_if:NT \c__nicematrix_recent_array_bool
       { \UseTaggingSocket { tbl / hmode / begin } }
     \skip_horizontal:N \l__nicematrix_left_margin_dim
     \skip_horizontal:N \l__nicematrix_extra_left_margin_dim
+    \m at th
     \c_math_toggle_token
     \bool_if:NTF \l__nicematrix_light_syntax_bool
       { \use:c { __nicematrix-light-syntax } }
@@ -2189,11 +2189,14 @@
               }
           }
       }
-    \dim_compare:nNnT \l__nicematrix_tabular_width_dim = \c_zero_dim
-      {
-        \tl_gput_right:Nn \g__nicematrix_array_preamble_tl
-          { > { \__nicematrix_error_too_much_cols: } l }
-      }
+  \dim_compare:nNnT \l__nicematrix_tabular_width_dim = \c_zero_dim
+    {
+      \bool_if:NF \c__nicematrix_testphase_table_bool
+        {
+          \tl_gput_right:Nn \g__nicematrix_array_preamble_tl
+            { > { \__nicematrix_error_too_much_cols: } l }
+        }
+    }
   }
 \cs_new_protected:Npn \__nicematrix_rec_preamble:n #1
   {
@@ -2804,7 +2807,7 @@
     \exp_args:No \@mkpream \g__nicematrix_preamble_tl
     \@addtopreamble \@empty
     \endgroup
-    \bool_if:NT \c__nicematrix_testphase_table_bool
+    \bool_if:NT \c__nicematrix_recent_array_bool
       { \UseTaggingSocket { tbl / colspan } { #1 } }
     \int_compare:nNnT { #1 } > \c_one_int
       {
@@ -3719,7 +3722,7 @@
   }
   {
     \endNiceArray
-    \bool_if:NT \c__nicematrix_testphase_table_bool
+    \bool_if:NT \c__nicematrix_recent_array_bool
       { \UseTaggingSocket { tbl / hmode / end } }
   }
 \cs_new_protected:Npn \__nicematrix_settings_for_tabular:
@@ -3889,7 +3892,7 @@
               }
           }
       }
-    \bool_if:NT \c__nicematrix_tagging_array_bool
+    \bool_if:NT \c__nicematrix_recent_array_bool
       { \cs_set_eq:NN \ar at ialign \__nicematrix_old_ar at ialign: }
     \cs_set_eq:NN \SubMatrix \__nicematrix_SubMatrix
     \cs_set_eq:NN \UnderBrace \__nicematrix_UnderBrace
@@ -7431,7 +7434,7 @@
   }
 \cs_new_protected:Npn \__nicematrix_draw_blocks:
   {
-    \bool_if:NTF \c__nicematrix_tagging_array_bool
+    \bool_if:NTF \c__nicematrix_recent_array_bool
       { \cs_set_eq:NN \ar at ialign \__nicematrix_old_ar at ialign: }
       { \cs_set_eq:NN \ialign \__nicematrix_old_ialign: }
     \seq_map_inline:Nn \g__nicematrix_blocks_seq { \__nicematrix_Block_iv:nnnnnn ##1 }



More information about the tex-live-commits mailing list.