texlive[67216] Master/texmf-dist: nicematrix (25may23)

commits+karl at tug.org commits+karl at tug.org
Thu May 25 22:37:35 CEST 2023


Revision: 67216
          http://tug.org/svn/texlive?view=revision&revision=67216
Author:   karl
Date:     2023-05-25 22:37:34 +0200 (Thu, 25 May 2023)
Log Message:
-----------
nicematrix (25may23)

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	2023-05-25 20:37:24 UTC (rev 67215)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex	2023-05-25 20:37:34 UTC (rev 67216)
@@ -1808,7 +1808,10 @@
     rowcolor}, etc.)}
 \colorbox{yellow!50}{\textbf{Nouveau 6.18}}
 
-une spécification d'opacité selon la forme \texttt{opacity = \textsl{valeur}}.
+une spécification d'opacité selon la forme \texttt{opacity =
+  \textsl{valeur}}.\footnote{Attention : cette fonctionnalité génère des instructions de
+  transparence dans le \textsc{pdf} résultant et certains lecteurs de
+  \textsc{pdf} n'acceptent pas la transparence.}
 \end{itemize}
 
 

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	2023-05-25 20:37:24 UTC (rev 67215)
+++ trunk/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex	2023-05-25 20:37:34 UTC (rev 67216)
@@ -1755,7 +1755,9 @@
 the extension \pkg{xcolor};
 \item \index{opacity (key of commands such as\newline \texttt{\textbackslash rowcolor}, etc.)}
 \colorbox{yellow!50}{\textbf{New 6.18}}\par\nobreak
-a specification of opacity f the form \texttt{opacity = \textsl{value}}.
+a specification of opacity of the form \texttt{opacity =
+  \textsl{value}}.\footnote{Caution : that feature creates instructions of
+  transparency in the \textsc{pdf} and some \textsc{pdr} don't support such instructions.}
 \end{itemize}
 
 \bigskip

Modified: trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2023-05-25 20:37:24 UTC (rev 67215)
+++ trunk/Master/texmf-dist/source/latex/nicematrix/nicematrix-code.dtx	2023-05-25 20:37:34 UTC (rev 67216)
@@ -17,8 +17,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{6.19}
-\def\myfiledate{2023/05/15}
+\def\myfileversion{6.19a}
+\def\myfiledate{2023/05/25}
 %
 %
 %<*batchfile>
@@ -1743,7 +1743,10 @@
         \seq_map_indexed_inline:Nn \g_@@_notes_seq
           {
             \tl_if_eq:nnT { { #1 } { #2 } } { ##2 } 
-              { \int_set:Nn \l_tmpa_int { ##1 } \seq_map_break: }
+              { 
+                \int_set:Nn \l_tmpa_int { ##1 } 
+                \seq_map_break: 
+              }
           }
         \int_compare:nNnF \l_tmpa_int = \c_zero_int 
           { \int_add:Nn \l_tmpa_int \g_@@_notes_caption_int }
@@ -1829,31 +1832,20 @@
           { \int_gzero:N \c at tabularnote }
 %    \end{macrocode}
 % Now, we try to detect duplicate notes in the caption.
+% Be careful! We must put |\tl_if_in:NnF| and not |\tl_if_in:NnT|!
 %    \begin{macrocode}
-        \bool_set_false:N \l_tmpa_bool
-        \seq_map_inline:Nn \g_@@_notes_in_caption_seq
-          { \@@_if_eq_two_three:nnn ##1 { #2 } }
-%    \end{macrocode}
-% Be careful! We must put |\bool_if:NF| and not |\bool_if:NT|!
-%    \begin{macrocode}
-        \bool_if:NF \l_tmpa_bool
+        \seq_if_in:NnF \g_@@_notes_in_caption_seq { { #1 } { #2 } }
           { \@@_error:n { Identical~notes~in~caption } }
       }
       {
 %    \end{macrocode}
 % In the following code, we are in the first composition of the caption or at
-% the first |\tabularnote| of the second composition. We have
-% to see whether the text of our tabular note is among the texts of the
-% tabularnotes stored in |\g_@@_notes_in_caption_seq|. For that, we will loop on 
-% |\g_@@_notes_in_caption_seq| and we will raise |\l_tmpa_bool| if the text is found.
+% the first |\tabularnote| of the second composition. 
 %    \begin{macrocode}
-        \bool_set_false:N \l_tmpa_bool
-        \seq_map_inline:Nn \g_@@_notes_in_caption_seq
-          { \@@_if_eq_two_three:nnn ##1 { #2 } }
-        \bool_if:NTF \l_tmpa_bool
+        \seq_if_in:NnTF \g_@@_notes_in_caption_seq { { #1 } { #2 } }
           {
 %    \end{macrocode}
-% Now, we known that are in the second composition of the caption since we are
+% Now, we know that are in the second composition of the caption since we are
 % reading a tabular note which has yet been read. Now, the value of
 % |\g_@@_notes_caption_int| won't change anymore: it's the number of uses
 % \emph{without optional argument} of the command |\tabularnote| in the caption.
@@ -1884,16 +1876,6 @@
   }
 %    \end{macrocode}
 %      
-%    \begin{macrocode}
-\cs_new_protected:Npn \@@_if_eq_two_three:nnn #1 #2 #3
-  { 
-    \tl_if_eq:nnT { #2 } { #3 } 
-      { 
-        \bool_set_true:N \l_tmpa_bool 
-        \seq_map_break: 
-      } 
-  }
-%    \end{macrocode}
 %
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_count_novalue_first:nn #1 #2 
@@ -9218,7 +9200,8 @@
 %
 % In the |\CodeAfter|, the command |\@@_line:nn| will be linked to |\line|. This
 % command takes two arguments which are the specifications of two cells in the
-% array (in the format $i$-$j$) and draws a dotted line between these cells. 
+% array (in the format $i$-$j$) and draws a dotted line between these cells. In
+% fact, if also works with names of blocks.
 % 
 % \medskip
 % First, we write a command with the following behaviour:
@@ -9284,7 +9267,10 @@
       { 
         \@@_error:nnn { unknown~cell~for~line~in~CodeAfter } { #1 } { #2 }
       } 
-      { \@@_draw_line_ii:nn { #1 } { #2 } }
+%    \end{macrocode}
+% The test of |measuring@| is a security (cf. question 686649 on TeX StackExchange). 
+%    \begin{macrocode}
+      { \legacy_if:nF { measuring@ } { \@@_draw_line_ii:nn { #1 } { #2 } } }
   }
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2023-05-25 20:37:24 UTC (rev 67215)
+++ trunk/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty	2023-05-25 20:37:34 UTC (rev 67216)
@@ -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.19}
-\def\myfiledate{2023/05/15}
+\def\myfileversion{6.19a}
+\def\myfiledate{2023/05/25}
 \RequirePackage{pgfcore}
 \usepgfmodule{shapes}
 \RequirePackage{l3keys2e}
@@ -548,7 +548,10 @@
         \seq_map_indexed_inline:Nn \g__nicematrix_notes_seq
           {
             \tl_if_eq:nnT { { #1 } { #2 } } { ##2 }
-              { \int_set:Nn \l_tmpa_int { ##1 } \seq_map_break: }
+              {
+                \int_set:Nn \l_tmpa_int { ##1 }
+                \seq_map_break:
+              }
           }
         \int_compare:nNnF \l_tmpa_int = \c_zero_int
           { \int_add:Nn \l_tmpa_int \g__nicematrix_notes_caption_int }
@@ -601,17 +604,11 @@
         \int_compare:nNnT
           \c at tabularnote = \g__nicematrix_notes_caption_int
           { \int_gzero:N \c at tabularnote }
-        \bool_set_false:N \l_tmpa_bool
-        \seq_map_inline:Nn \g__nicematrix_notes_in_caption_seq
-          { \__nicematrix_if_eq_two_three:nnn ##1 { #2 } }
-        \bool_if:NF \l_tmpa_bool
+        \seq_if_in:NnF \g__nicematrix_notes_in_caption_seq { { #1 } { #2 } }
           { \__nicematrix_error:n { Identical~notes~in~caption } }
       }
       {
-        \bool_set_false:N \l_tmpa_bool
-        \seq_map_inline:Nn \g__nicematrix_notes_in_caption_seq
-          { \__nicematrix_if_eq_two_three:nnn ##1 { #2 } }
-        \bool_if:NTF \l_tmpa_bool
+        \seq_if_in:NnTF \g__nicematrix_notes_in_caption_seq { { #1 } { #2 } }
           {
             \bool_gset_true:N \g__nicematrix_caption_finished_bool
             \int_gset_eq:NN \g__nicematrix_notes_caption_int \c at tabularnote
@@ -633,14 +630,6 @@
         \seq_clear:N \l__nicematrix_notes_labels_seq
       }
   }
-\cs_new_protected:Npn \__nicematrix_if_eq_two_three:nnn #1 #2 #3
-  {
-    \tl_if_eq:nnT { #2 } { #3 }
-      {
-        \bool_set_true:N \l_tmpa_bool
-        \seq_map_break:
-      }
-  }
 \cs_new_protected:Npn \__nicematrix_count_novalue_first:nn #1 #2
   { \tl_if_novalue:nT { #1 } { \int_gincr:N \g__nicematrix_notes_caption_int } }
 \cs_new_protected:Npn \__nicematrix_pgf_rect_node:nnnnn #1 #2 #3 #4 #5
@@ -4898,7 +4887,7 @@
       {
         \__nicematrix_error:nnn { unknown~cell~for~line~in~CodeAfter } { #1 } { #2 }
       }
-      { \__nicematrix_draw_line_ii:nn { #1 } { #2 } }
+      { \legacy_if:nF { measuring@ } { \__nicematrix_draw_line_ii:nn { #1 } { #2 } } }
   }
 \hook_gput_code:nnn { begindocument } { . }
   {



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