texlive[74801] Master/texmf-dist: nicematrix (31mar25)

commits+karl at tug.org commits+karl at tug.org
Mon Mar 31 21:48:37 CEST 2025


Revision: 74801
          https://tug.org/svn/texlive?view=revision&revision=74801
Author:   karl
Date:     2025-03-31 21:48:37 +0200 (Mon, 31 Mar 2025)
Log Message:
-----------
nicematrix (31mar25)

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	2025-03-31 19:48:23 UTC (rev 74800)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex	2025-03-31 19:48:37 UTC (rev 74801)
@@ -18,7 +18,8 @@
     patterns,
     arrows.meta,
     decorations.pathreplacing,
-    babel
+    babel,
+    calligraphy
   }
 
 \usepackage{enumitem}
@@ -987,7 +988,7 @@
 un & deux deux & trois trois \\
 un & 
 \Block\emph{[p,l]}{*-2}{%
-\begin{itemize}[left=0pt]
+\begin{itemize}[\emph{left=0pt}]
 \item un deux trois quatre cinq 
 \item deux 
 \item trois
@@ -3743,7 +3744,7 @@
 C[a_n^{(p)},a_1] & \Cdots & C[a_n^{(p)},a_n]
   & & C[a_n^{(p)},a_1^{(p)}] & \Cdots & C[a_n^{(p)},a_n^{(p)}]
 \end{bNiceMatrix}
-\end{Code}%
+\end{Code}
 \end{scope}
 
 
@@ -4636,7 +4637,7 @@
   \SubMatrix({4-1}{6-3})[\emph{code = \MyDraw}]
   \SubMatrix({4-5}{6-7})[\emph{code = \MyDraw}]
 \end{NiceArray}$
-\end{Code}%
+\end{Code}
 
 
 
@@ -5077,7 +5078,7 @@
 \bottomrule
 \end{NiceTabular}
 \end{table}
-\end{Code}%
+\end{Code}
 \end{scope}
 
 
@@ -6495,9 +6496,10 @@
           { \arabic { jCol } }
           { \exp_not:n { #1 } }
       }
+    \ignorespaces 
   }
 \ExplSyntaxOff
-\end{Code}%
+\end{Code}
 
 
 
@@ -6519,6 +6521,7 @@
           { \arabic { jCol } }
           { \exp_not:n { #1 } }
       }
+    \ignorespaces 
   }
 \ExplSyntaxOff
 
@@ -7293,7 +7296,8 @@
 1 & 1 & 1 & 1 & 1 \\
 1 & 1 & 1 & 1 & 1 \\
 \Hline
-1 & 1 & 1 & 1 & 1 & \emph{\Vdotsfor{2}:{2}} \\
+1 & 1 & 1 & 1 & 1 & 
+\emph{\Vdotsfor{2}:{2 \rlap{ \smash{lignes}}}} \\
 1 & 1 & 1 & 1 & 1 \\
 \end{pNiceArray}$
 \end{Code}
@@ -7304,7 +7308,7 @@
 1 & 1 & 1 & 1 & 1 \\
 1 & 1 & 1 & 1 & 1 \\
 \Hline
-1 & 1 & 1 & 1 & 1 & \Vdotsfor{2}:{2}\\
+1 & 1 & 1 & 1 & 1 & \Vdotsfor{2}:{2 \rlap{ \smash{lignes}}}\\
 1 & 1 & 1 & 1 & 1 \\
 \end{pNiceArray}$}
 
@@ -7347,6 +7351,73 @@
 
 
 \pagebreak
+Il est possible de changer le style TikZ des accolades en changeant le style
+|nicematrix/brace|. Dans l'exemple suivant, on suppose que l'extension
+\pkg{calligraphy} de TikZ a été chargée:
+
+\smallskip
+\begin{Verbatim}
+\usetikzlibrary{calligraphy}
+\end{Verbatim}
+
+
+\medskip
+\begin{Code}
+\NiceMatrixOptions{xdots/horizontal-labels}
+\tikzset
+  {
+    nicematrix/brace/.style = 
+      { 
+        decoration = 
+          { 
+            calligraphic brace , 
+            amplitude = 0.4 em , 
+            raise = -0.25 em 
+          } , 
+        line width = 0.1 em ,
+        decorate , 
+      } 
+  }
+\end{Code}
+\begin{Code}[width=11cm]
+$\begin{pNiceArray}{ccc|cc}[first-row,last-col,margin]
+\emph{\Hbrace{3}{3}} & \emph{\Hbrace{2}{2}} \\
+2 & 1 & 1 & 1 & 1 & \emph{\Vbrace{3}{3}} \\
+1 & 1 & 1 & 1 & 1 \\
+1 & 1 & 1 & 1 & 1 \\
+\Hline
+1 & 1 & 1 & 1 & 1 & \emph{\Vbrace{2}{2}} \\
+1 & 1 & 1 & 1 & 1 \\
+\end{pNiceArray}$
+\end{Code}
+{\NiceMatrixOptions{xdots/horizontal-labels}
+\tikzset
+  {
+    nicematrix/brace/.style = 
+      { 
+        decoration = 
+          { 
+            calligraphic brace , 
+            amplitude = 0.4 em , 
+            raise = -0.25 em 
+          } , 
+        line width = 0.1 em ,
+        decorate , 
+      } 
+  }
+$\begin{pNiceArray}{ccc|cc}[first-row,last-col,margin]
+\Hbrace{3}{3} & \Hbrace{2}{2} \\
+2 & 1 & 1 & 1 & 1 & \Vbrace{3}{3}\\
+1 & 1 & 1 & 1 & 1 \\
+1 & 1 & 1 & 1 & 1 \\
+\Hline
+1 & 1 & 1 & 1 & 1 & \Vbrace{2}{2}\\
+1 & 1 & 1 & 1 & 1 \\
+\end{pNiceArray}$}
+
+
+
+\interitem
 Si on préfère les accolades de la fonte mathématique courante, il convient
 d'utiliser les commandes |\SubMatrix|, |\OverBrace| et |\UnderBrace| dans le
 |\CodeAfter|.
@@ -7382,11 +7453,6 @@
 \end{pNiceArray}$
 
 
-\medskip
-Le résultat peut sembler décevant. C'est pourquoi, pour ce type d'usage, on
-recommande plutôt l'utilisation des commandes |\Hbrace| et |\Vbrace| (fournies par
-\pkg{nicematrix}), comme dans l'exemple précédent.
-
 \subsection{Lignes en tiretés}
 
 \label{tiretes}
@@ -7485,7 +7551,7 @@
 0  64 -41 1 19    ;
 \end{pNiceMatrix}$
 \emph{\end{NiceMatrixBlock}}
-\end{Code}%
+\end{Code}
 \end{scope}
 
 \medskip
@@ -7567,7 +7633,7 @@
 \end{pNiceMatrix}$
 ...
 \emph{\end{NiceMatrixBlock}}
-\end{Code}%
+\end{Code}
 \end{scope}
 
 \medskip
@@ -8036,7 +8102,7 @@
 \CodeAfter
 \tikz \draw [gray,shorten > = 1mm, shorten < = 1mm] (9-4.north) to [bend left] (4-9.west) ;
 \end{NiceArray}\]
-\end{Code}%
+\end{Code}
 \end{scope}
 
 

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	2025-03-31 19:48:23 UTC (rev 74800)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex	2025-03-31 19:48:37 UTC (rev 74801)
@@ -14,7 +14,8 @@
     fit,
     patterns,
     arrows.meta,
-    decorations.pathreplacing
+    decorations.pathreplacing,
+    calligraphy
   }
 
 \usepackage{enumitem}
@@ -943,7 +944,7 @@
 one & two two & three three \\
 one & 
 \Block\emph{[p]}{*-2}{%
-\begin{itemize}[left=0pt]
+\begin{itemize}[\emph{left=0pt}]
 \item one two three four five 
 \item two 
 \item three
@@ -3638,7 +3639,7 @@
 C[a_n^{(p)},a_1] & \Cdots & C[a_n^{(p)},a_n]
   & & C[a_n^{(p)},a_1^{(p)}] & \Cdots & C[a_n^{(p)},a_n^{(p)}]
 \end{bNiceMatrix}
-\end{Code}%
+\end{Code}
 \end{scope}
 
 
@@ -4513,7 +4514,7 @@
   \SubMatrix({4-1}{6-3})[\emph{code = \MyDraw} ]
   \SubMatrix({4-5}{6-7})[\emph{code = \MyDraw} ]
 \end{NiceArray}$
-\end{Code}%
+\end{Code}
 
 
 
@@ -4941,7 +4942,7 @@
 \bottomrule
 \end{NiceTabular}
 \end{table}
-\end{Code}%
+\end{Code}
 \end{center}
 
 
@@ -6329,9 +6330,10 @@
           { \int_use:c { c at jCol } }
           { \exp_not:n { #1 } }
       }
+    \ignorespaces 
   }
 \ExplSyntaxOff
-\end{Code}%
+\end{Code}
 
 
 
@@ -6353,6 +6355,7 @@
           { \int_use:c { c at jCol } }
           { \exp_not:n { #1 } }
       }
+    \ignorespaces 
   }
 \ExplSyntaxOff
 
@@ -7112,7 +7115,8 @@
 1 & 1 & 1 & 1 & 1 \\
 1 & 1 & 1 & 1 & 1 \\
 \Hline
-1 & 1 & 1 & 1 & 1 & \emph{\Vdotsfor{2}:{2}} \\
+1 & 1 & 1 & 1 & 1 & 
+\emph{\Vdotsfor{2}:{2 \rlap{ \smash{rows}}}} \\
 1 & 1 & 1 & 1 & 1 \\
 \end{pNiceArray}$
 \end{Code}
@@ -7123,7 +7127,7 @@
 1 & 1 & 1 & 1 & 1 \\
 1 & 1 & 1 & 1 & 1 \\
 \Hline
-1 & 1 & 1 & 1 & 1 & \Vdotsfor{2}:{2}\\
+1 & 1 & 1 & 1 & 1 & \Vdotsfor{2}:{2 \rlap{ \smash{lignes}}}\\
 1 & 1 & 1 & 1 & 1 \\
 \end{pNiceArray}$}
 
@@ -7163,6 +7167,73 @@
 
 
 \pagebreak
+It's possible to change the TikZ style of those braces by changing the TikZ
+style |nicematrix/brace|. In the following example, we assume that the TikZ
+extension \pkg{calligraphy} has been loaded:
+
+\smallskip
+\begin{Verbatim}
+\usetikzlibrary{calligraphy}
+\end{Verbatim}
+
+\medskip
+\begin{Code}
+\NiceMatrixOptions{xdots/horizontal-labels}
+\tikzset
+  {
+    nicematrix/brace/.style = 
+      { 
+        decoration = 
+          { 
+            calligraphic brace , 
+            amplitude = 0.4 em , 
+            raise = -0.25 em 
+          } , 
+        line width = 0.1 em ,
+        decorate , 
+      } 
+  }
+\end{Code}
+\begin{Code}[width=11cm]
+$\begin{pNiceArray}{ccc|cc}[first-row,last-col,margin]
+\emph{\Hbrace{3}{3}} & \emph{\Hbrace{2}{2}} \\
+2 & 1 & 1 & 1 & 1 & \emph{\Vbrace{3}{3}} \\
+1 & 1 & 1 & 1 & 1 \\
+1 & 1 & 1 & 1 & 1 \\
+\Hline
+1 & 1 & 1 & 1 & 1 & \emph{\Vbrace{2}{2}} \\
+1 & 1 & 1 & 1 & 1 \\
+\end{pNiceArray}$
+\end{Code}
+{\NiceMatrixOptions{xdots/horizontal-labels}
+\tikzset
+  {
+    nicematrix/brace/.style = 
+      { 
+        decoration = 
+          { 
+            calligraphic brace , 
+            amplitude = 0.4 em , 
+            raise = -0.25 em 
+          } , 
+        line width = 0.1 em ,
+        decorate , 
+      } 
+  }
+$\begin{pNiceArray}{ccc|cc}[first-row,last-col,margin]
+\Hbrace{3}{3} & \Hbrace{2}{2} \\
+2 & 1 & 1 & 1 & 1 & \Vbrace{3}{3}\\
+1 & 1 & 1 & 1 & 1 \\
+1 & 1 & 1 & 1 & 1 \\
+\Hline
+1 & 1 & 1 & 1 & 1 & \Vbrace{2}{2}\\
+1 & 1 & 1 & 1 & 1 \\
+\end{pNiceArray}$}
+
+
+
+\interitem
+
 If one prefers the curly braces of the current mathematical font of LaTeX, one
 should use the commands |\SubMatrix|, |\OverBrace| and |\UnderBrace| in the
 |\CodeAfter|.
@@ -7200,7 +7271,7 @@
 \medskip
 Or course, the output may seem disappointing. That's why, for this type of use,
 we recommend the use of the commands |\Hbrace| and |\Vbrace| (provided by
-\pkg{nicematrix}), as shown in the previous example.
+\pkg{nicematrix}), as shown in the previous examples.
 
 
 \subsection{Dashed rules}
@@ -7292,7 +7363,7 @@
 0  64 -41 1 19    ;
 \end{pNiceMatrix}$
 \emph{\end{NiceMatrixBlock}}
-\end{Code}%
+\end{Code}
 \end{small}
 
 \medskip
@@ -7371,7 +7442,7 @@
 \end{pNiceMatrix}$
 ...
 \emph{\end{NiceMatrixBlock}}
-\end{Code}%
+\end{Code}
 \end{small}
 
 \medskip
@@ -7834,7 +7905,7 @@
 \CodeAfter
 \tikz \draw [gray,shorten > = 1mm, shorten < = 1mm] (9-4.north) to [bend left] (4-9.west) ;
 \end{NiceArray}\]
-\end{Code}%
+\end{Code}
 \end{footnotesize}
 
 
@@ -7879,7 +7950,7 @@
      1 & 7 \\
      1 
    \end{NiceTabular}}
-\end{Code}%
+\end{Code}
 
 
 \begin{center}

Modified: trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2025-03-31 19:48:23 UTC (rev 74800)
+++ trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2025-03-31 19:48:37 UTC (rev 74801)
@@ -17,8 +17,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{7.1a}
-\def\myfiledate{2025/03/04}
+\def\myfileversion{7.1b}
+\def\myfiledate{2025/03/30}
 %
 %
 %<*batchfile>  
@@ -125,12 +125,11 @@
 \RequirePackage{pgfcore}
 \usepgfmodule{shapes}
 %    \end{macrocode}
-%
 % 
+% 
 % We give the traditional declaration of a package written with the L3
 % programming layer. 
 %    \begin{macrocode}
-\RequirePackage{l3keys2e}
 \ProvidesExplPackage
   {nicematrix}
   {\myfiledate}
@@ -138,7 +137,26 @@
   {Enhanced arrays with the help of PGF/TikZ}
 %    \end{macrocode}
 %
+%
 %    \begin{macrocode}
+\msg_new:nnn { nicematrix } { latex-too-old }
+  { 
+    Your~LaTeX~release~is~too~old. \\
+    You~need~at~least~a~the~version~of~2023-11-01 
+  }
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\providecommand { \IfFormatAtLeastTF } { \@ifl at t@r \fmtversion }
+\IfFormatAtLeastTF
+  { 2023-11-01 } 
+  { } 
+  { \msg_fatal:nn { nicematrix } { latex-too-old } }
+%    \end{macrocode}
+% 
+
+% 
+%    \begin{macrocode}
 \ProvideDocumentCommand{\IfPackageLoadedT}{mm}
   {\IfPackageLoadedTF{#1}{#2}{}}
 
@@ -1057,6 +1075,10 @@
   }
 %    \end{macrocode}
 % 
+% \bigskip
+%    \begin{macrocode}
+\tl_new:N \g_@@_cell_after_hook_tl % 2025/03/22
+%    \end{macrocode}
 % 
 % \bigskip
 % For the key |code| of the command |\SubMatrix| (itself in the main
@@ -3415,9 +3437,11 @@
                 \pgfsys at markposition 
                   { \@@_env: - \int_use:N \c at iRow - \int_use:N \c at jCol - NW } 
 %    \end{macrocode}
-% I don't know why the following adjustement is needed when the compilation is
-% done with XeLaTeX or with the classical way |latex|, |dvips|, |ps2pdf| (or
-% Adobe Distiller). However, it seems to work.
+% In the |#1|, we will put an adjustment which is needed when the compilation is
+% done with XeLaTeX or with the classical way |latex|, |dvips|, |ps2pdf| or
+% Adobe Distiller (I don't known why this adjustement is mandatory...). See the
+% use of that command |\@@_patch_node_for_cell:n| in a |\AtBeginDocument| just
+% below. 
 %    \begin{macrocode}
                 #1 
               }
@@ -3436,13 +3460,20 @@
 %
 % \bigskip
 % We have no explanation for the different behaviour between the TeX engines...
+% We put the following instructions in a |\AtBeginDocument| because you use
+% |\sys_if_output_div_p:| and that test is available only when a backend is
+% loaded (and we don't want to force the loading of a backend with
+% |\sys_ensure_backend:|). 
 %    \begin{macrocode}
-\bool_lazy_or:nnTF \sys_if_engine_xetex_p: \sys_if_output_dvi_p:
+\AtBeginDocument
   {
-    \@@_patch_node_for_cell:n 
-      { \skip_horizontal:n { 0.5 \box_wd:N \l_@@_cell_box } }
+    \bool_lazy_or:nnTF \sys_if_engine_xetex_p: \sys_if_output_dvi_p:
+      {
+        \@@_patch_node_for_cell:n 
+          { \skip_horizontal:n { 0.5 \box_wd:N \l_@@_cell_box } }
+      }
+      { \@@_patch_node_for_cell:n { } }
   }
-  { \@@_patch_node_for_cell:n { } }
 %    \end{macrocode}
 % 
 % 
@@ -4337,7 +4368,7 @@
     \bool_if:NT \g_@@_aux_found_bool
       { 
         \@@_pre_code_before: 
-        #1 
+        \legacy_if:nF { measuring@ } { #1 } 
       } 
   }
 %    \end{macrocode}
@@ -7949,7 +7980,12 @@
     \cs_set_eq:NN \ShowCellNames \@@_ShowCellNames
     \cs_set_eq:NN \TikzEveryCell \@@_TikzEveryCell
     \cs_set_eq:NN \line \@@_line
-    \g_@@_pre_code_after_tl
+%    \end{macrocode}
+% The LaTeX-style boolean |\ifmeasuring@| is used by \pkg{amsmath} during the
+% phase of measure in environments such as |{align}|, etc. We save a little time
+% by avoiding executing the |\g_@@_pre_code_after_tl| during that stage.
+%    \begin{macrocode}
+    \legacy_if:nF { measuring@ } { \g_@@_pre_code_after_tl }
     \tl_gclear:N \g_@@_pre_code_after_tl
 %    \end{macrocode}
 % When |light-syntax| is used, we insert systematically a |\CodeAfter| in the
@@ -13563,7 +13599,7 @@
 % the preamble of the array, we want to fix that color in the box we construct.
 % We do that with |\set at color| and not |\color_ensure_current:| (in order to use
 % |\color_ensure_current:| safely, you should load \pkg{l3backend} before the
-% |\documentclass| with |\RequirePackage{expl3}|).
+% |\documentclass|).
 %    \begin{macrocode}
         \tl_if_empty:NTF \l_@@_color_tl
           { \int_compare:nNnT { #2 } = \c_one_int \set at color }
@@ -16886,8 +16922,9 @@
 %    \begin{macrocode}
 \msg_new:nnnn { nicematrix } { Unknown~key~for~package } 
   { 
-    The~key~'\l_keys_key_str'~is~unknown. \\
-    That~key~will~be~ignored. \\
+    You~have~used~the~key~'\l_keys_key_str'~when~loading~nicematrix~
+    but~that~key~is~unknown. \\
+    It~will~be~ignored. \\
     For~a~list~of~the~available~keys,~type~H~<return>.
   }
   {
@@ -16895,7 +16932,7 @@
     footnote,~
     footnotehyper,~
     messages-for-Overleaf,~
-    renew-dots,~and~
+    renew-dots~and~
     renew-matrix.
   }
 %    \end{macrocode}
@@ -16902,7 +16939,7 @@
 %
 %
 %    \begin{macrocode}
-\keys_define:nn { nicematrix / Package }
+\keys_define:nn { nicematrix }
   {
     renew-dots .bool_set:N = \l_@@_renew_dots_bool ,
     renew-dots .value_forbidden:n = true ,
@@ -16913,7 +16950,7 @@
     footnotehyper .bool_set:N = \g_@@_footnotehyper_bool ,
     unknown .code:n = \@@_error:n { Unknown~key~for~package } 
   }
-\ProcessKeysOptions { nicematrix / Package }
+\ProcessKeyOptions 
 %    \end{macrocode}
 %
 % 

Modified: trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2025-03-31 19:48:23 UTC (rev 74800)
+++ trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2025-03-31 19:48:37 UTC (rev 74801)
@@ -18,16 +18,26 @@
 %% and version 1.3 or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 %% 
-\def\myfileversion{7.1a}
-\def\myfiledate{2025/03/04}
+\def\myfileversion{7.1b}
+\def\myfiledate{2025/03/30}
 \RequirePackage{pgfcore}
 \usepgfmodule{shapes}
-\RequirePackage{l3keys2e}
 \ProvidesExplPackage
   {nicematrix}
   {\myfiledate}
   {\myfileversion}
   {Enhanced arrays with the help of PGF/TikZ}
+\msg_new:nnn { nicematrix } { latex-too-old }
+  {
+    Your~LaTeX~release~is~too~old. \\
+    You~need~at~least~a~the~version~of~2023-11-01
+  }
+\providecommand { \IfFormatAtLeastTF } { \@ifl at t@r \fmtversion }
+\IfFormatAtLeastTF
+  { 2023-11-01 }
+  { }
+  { \msg_fatal:nn { nicematrix } { latex-too-old } }
+
 \ProvideDocumentCommand{\IfPackageLoadedT}{mm}
   {\IfPackageLoadedTF{#1}{#2}{}}
 
@@ -369,6 +379,7 @@
       { command \space \c_backslash_str \g__nicematrix_name_env_str }
       { environment \space \{ \g__nicematrix_name_env_str \} }
   }
+\tl_new:N \g__nicematrix_cell_after_hook_tl % 2025/03/22
 \tl_new:N \l__nicematrix_code_tl
 \tl_new:N \l__nicematrix_pgf_node_code_tl
 \tl_new:N \g__nicematrix_pre_code_before_tl
@@ -1415,12 +1426,15 @@
           }
       }
   }
-\bool_lazy_or:nnTF \sys_if_engine_xetex_p: \sys_if_output_dvi_p:
+\AtBeginDocument
   {
-    \__nicematrix_patch_node_for_cell:n
-      { \skip_horizontal:n { 0.5 \box_wd:N \l__nicematrix_cell_box } }
+    \bool_lazy_or:nnTF \sys_if_engine_xetex_p: \sys_if_output_dvi_p:
+      {
+        \__nicematrix_patch_node_for_cell:n
+          { \skip_horizontal:n { 0.5 \box_wd:N \l__nicematrix_cell_box } }
+      }
+      { \__nicematrix_patch_node_for_cell:n { } }
   }
-  { \__nicematrix_patch_node_for_cell:n { } }
 \cs_new_protected:Npn \__nicematrix_instruction_of_type:nnn #1 #2 #3
   {
     \bool_if:nTF { #1 } \tl_gput_left:ce \tl_gput_right:ce
@@ -1832,7 +1846,7 @@
     \bool_if:NT \g__nicematrix_aux_found_bool
       {
         \__nicematrix_pre_code_before:
-        #1
+        \legacy_if:nF { measuring@ } { #1 }
       }
   }
 \cs_new_protected:Npn \__nicematrix_recreate_cell_nodes:
@@ -3951,7 +3965,7 @@
     \cs_set_eq:NN \ShowCellNames \__nicematrix_ShowCellNames
     \cs_set_eq:NN \TikzEveryCell \__nicematrix_TikzEveryCell
     \cs_set_eq:NN \line \__nicematrix_line
-    \g__nicematrix_pre_code_after_tl
+    \legacy_if:nF { measuring@ } { \g__nicematrix_pre_code_after_tl }
     \tl_gclear:N \g__nicematrix_pre_code_after_tl
     \cs_set_eq:NN \CodeAfter \prg_do_nothing:
     \seq_gclear:N \g__nicematrix_submatrix_names_seq
@@ -9528,8 +9542,9 @@
 \bool_new:N \g__nicematrix_footnote_bool
 \msg_new:nnnn { nicematrix } { Unknown~key~for~package }
   {
-    The~key~'\l_keys_key_str'~is~unknown. \\
-    That~key~will~be~ignored. \\
+    You~have~used~the~key~'\l_keys_key_str'~when~loading~nicematrix~
+    but~that~key~is~unknown. \\
+    It~will~be~ignored. \\
     For~a~list~of~the~available~keys,~type~H~<return>.
   }
   {
@@ -9537,10 +9552,10 @@
     footnote,~
     footnotehyper,~
     messages-for-Overleaf,~
-    renew-dots,~and~
+    renew-dots~and~
     renew-matrix.
   }
-\keys_define:nn { nicematrix / Package }
+\keys_define:nn { nicematrix }
   {
     renew-dots .bool_set:N = \l__nicematrix_renew_dots_bool ,
     renew-dots .value_forbidden:n = true ,
@@ -9551,7 +9566,7 @@
     footnotehyper .bool_set:N = \g__nicematrix_footnotehyper_bool ,
     unknown .code:n = \__nicematrix_error:n { Unknown~key~for~package }
   }
-\ProcessKeysOptions { nicematrix / Package }
+\ProcessKeyOptions
 \__nicematrix_msg_new:nn { footnote~with~footnotehyper~package }
   {
     You~can't~use~the~option~'footnote'~because~the~package~



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