From bbbfa0a90645d4da46b1492f6513b28a01eb78da Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 7 Oct 2022 03:03:15 +0000 Subject: CTAN sync 202210070303 --- .../latex/contrib/nicematrix/nicematrix-french.pdf | Bin 511473 -> 511095 bytes .../latex/contrib/nicematrix/nicematrix-french.tex | 5 ++ macros/latex/contrib/nicematrix/nicematrix.dtx | 84 ++++++++++++--------- macros/latex/contrib/nicematrix/nicematrix.pdf | Bin 1325255 -> 1324298 bytes 4 files changed, 55 insertions(+), 34 deletions(-) (limited to 'macros/latex/contrib/nicematrix') diff --git a/macros/latex/contrib/nicematrix/nicematrix-french.pdf b/macros/latex/contrib/nicematrix/nicematrix-french.pdf index 0ae8f26c90..4dfeea879f 100644 Binary files a/macros/latex/contrib/nicematrix/nicematrix-french.pdf and b/macros/latex/contrib/nicematrix/nicematrix-french.pdf differ diff --git a/macros/latex/contrib/nicematrix/nicematrix-french.tex b/macros/latex/contrib/nicematrix/nicematrix-french.tex index f7fa1fe561..352fb51efb 100644 --- a/macros/latex/contrib/nicematrix/nicematrix-french.tex +++ b/macros/latex/contrib/nicematrix/nicematrix-french.tex @@ -4982,6 +4982,11 @@ doit être chargé avant le |\documentclass|: \documentclass{sn-jnl} \end{Verbatim} +\medskip +L'extension \pkg{nicematrix} n'est pas parfaitement compatible avec la classe +\cls{ltjarticle}: la détection des coins vides (cf. p.~\pageref{corners}) risque +d'être erronée dans certaines circonstances. + \medskip L'extension \pkg{nicematrix} n'est pas parfaitement compatible avec l'extension \pkg{arydshln} (parce que cette extension redéfinit de nombreuses commandes diff --git a/macros/latex/contrib/nicematrix/nicematrix.dtx b/macros/latex/contrib/nicematrix/nicematrix.dtx index 659e7fa56a..ed200cd901 100644 --- a/macros/latex/contrib/nicematrix/nicematrix.dtx +++ b/macros/latex/contrib/nicematrix/nicematrix.dtx @@ -17,8 +17,8 @@ % % \fi % \iffalse -\def\myfileversion{6.13a} -\def\myfiledate{2022/09/17} +\def\myfileversion{6.13b} +\def\myfiledate{2022/10/06} % % %<*batchfile> @@ -4910,6 +4910,11 @@ version 2005/12/01 or later. % \end{Verbatim} % % \bigskip +% The package \pkg{nicematrix} is not fully compatible with the class +% \cls{ltjarticle}: the detection of the empty corners (cf. +% p.~\pageref{corners}) may be wrong. +% +% \bigskip % The package \pkg{nicematrix} is not fully compatible with the package % \pkg{arydshln} (because this package redefines many internal of \pkg{array}). % By any means, in the context of \pkg{nicematrix}, it's recommended to draw @@ -5949,9 +5954,12 @@ version 2005/12/01 or later. % \begin{macrocode} \@@_msg_new:nn { Internal~error } { - A~fatal~internal~error~have~occurred.\\ - If~you~see~this~message,~contact~the~author~of~the~package~'nicematrix'~ - because~this~error~should~not~have~occurred. + Potential~problem~when~using~nicematrix.\\ + The~package~nicematrix~have~detected~a~modification~of~the~ + standard~environment~{array}~(of~the~package~array).~Maybe~you~will~encounter~ + some~slight~problems~when~using~nicematrix.~If~you~don't~want~to~see~ + this~message~again,~load~nicematrix~with:~\token_to_str:N + \usepackage[no-test-for-array]{nicematrix}. } % \end{macrocode} % @@ -5970,7 +5978,7 @@ version 2005/12/01 or later. { \peek_meaning:NTF \ignorespaces { \@@_security_test_i:w } - { \@@_fatal:n { Internal~error } } + { \@@_error:n { Internal~error } } #1 } % \end{macrocode} @@ -5979,7 +5987,7 @@ version 2005/12/01 or later. % \begin{macrocode} \cs_new_protected:Npn \@@_security_test_i:w \ignorespaces #1 { - \peek_meaning:NF \unskip { \@@_fatal:n { Internal~error } } + \peek_meaning:NF \unskip { \@@_error:n { Internal~error } } #1 } % \end{macrocode} @@ -5992,11 +6000,16 @@ version 2005/12/01 or later. \@ifpackageloaded { mdwtab } { \@@_fatal:n { mdwtab~loaded } } { - \hbox_set:Nn \l_tmpa_box + \bool_if:NF \c_@@_no_test_for_array_bool { - \begin { tabular } { c > { \@@_security_test:n } c c } - text & & text - \end { tabular } + \group_begin: + \hbox_set:Nn \l_tmpa_box + { + \begin { tabular } { c > { \@@_security_test:n } c c } + text & & text + \end { tabular } + } + \group_end: } } } @@ -6420,7 +6433,7 @@ version 2005/12/01 or later. \tl_set_rescan:Nno #1 { - \char_set_catcode_other:N > + \char_set_catcode_other:N >_ \char_set_catcode_other:N < } #1 @@ -8428,16 +8441,6 @@ version 2005/12/01 or later. \bool_if:NT \l_@@_small_bool \scriptstyle } % \end{macrocode} -% -% \bigskip -% For unexplained reason, with XeTeX (and not with the other engines), the -% environments of \pkg{nicematrix} were all composed in black and do not take -% into account the color of the encompassing text. As a workaround, you peek the -% color in force at the beginning of the environment and we use it now (in each -% cell of the array). -% \begin{macrocode} - \color { nicematrix } -% \end{macrocode} % % \begin{macrocode} \g_@@_row_style_tl @@ -8657,7 +8660,14 @@ version 2005/12/01 or later. \pgfnode { rectangle } { base } - { \box_use_drop:N \l_@@_cell_box } + { +% \end{macrocode} +% The following instruction |\set@color| has been added on 2022/10/06. It's +% necessary only with XeLaTeX and not with the other engines (we don't know why). +% \begin{macrocode} + \set@color + \box_use_drop:N \l_@@_cell_box + } { \@@_env: - \int_use:N \c@iRow - \int_use:N \c@jCol } { } \str_if_empty:NF \l_@@_name_str @@ -8955,13 +8965,6 @@ version 2005/12/01 or later. \cs_new_protected:Npn \@@_pre_array_ii: { % \end{macrocode} -% For unexplained reason, with XeTeX (and not with the other engines), the -% environments of \pkg{nicematrix} were all composed in black and do not take -% into account the color of the encompassing text. As a workaround, you peek the -% color in force at the beginning of the environment and we will use it in each cell. -% \begin{macrocode} - \xglobal \colorlet { nicematrix } { . } -% \end{macrocode} % The number of letters |X| in the preamble of the array. % \begin{macrocode} \int_gzero:N \g_@@_total_X_weight_int @@ -14459,7 +14462,6 @@ version 2005/12/01 or later. } } % \end{macrocode} -% Enf of |\AddToHook|. % % \medskip % \begin{macrocode} @@ -17670,15 +17672,26 @@ version 2005/12/01 or later. { \seq_put_right:Nn \l_@@_tikz_seq { { #1 } } } { \@@_error:n { tikz~key~without~tikz } } , tikz .value_required:n = true , - fill .tl_set:N = \l_@@_fill_tl , + fill .code:n = + \tl_set_rescan:Nnn + \l_@@_fill_tl + { \char_set_catcode_other:N ! } + { #1 } , fill .value_required:n = true , - draw .tl_set:N = \l_@@_draw_tl , + draw .code:n = + \tl_set_rescan:Nnn + \l_@@_draw_tl + { \char_set_catcode_other:N ! } + { #1 } , draw .default:n = default , rounded-corners .dim_set:N = \l_@@_rounded_corners_dim , rounded-corners .default:n = 4 pt , color .code:n = \@@_color:n { #1 } - \tl_set:Nn \l_@@_draw_tl { #1 } , + \tl_set_rescan:Nnn + \l_@@_draw_tl + { \char_set_catcode_other:N ! } + { #1 } , color .value_required:n = true , borders .clist_set:N = \l_@@_borders_clist , borders .value_required:n = true , @@ -19961,6 +19974,7 @@ version 2005/12/01 or later. footnote,~ footnotehyper,~ messages-for-Overleaf,~ + no-test-for-array,~ renew-dots,~and renew-matrix. } @@ -19977,6 +19991,8 @@ version 2005/12/01 or later. messages-for-Overleaf .bool_set:N = \c_@@_messages_for_Overleaf_bool , footnote .bool_set:N = \c_@@_footnote_bool , footnotehyper .bool_set:N = \c_@@_footnotehyper_bool , + no-test-for-array .bool_set:N = \c_@@_no_test_for_array_bool , + no-test-for-array .default:n = true , unknown .code:n = \@@_error:n { Unknown~key~for~package } } \ProcessKeysOptions { NiceMatrix / Package } diff --git a/macros/latex/contrib/nicematrix/nicematrix.pdf b/macros/latex/contrib/nicematrix/nicematrix.pdf index d2b0a1ca61..bae5622a6d 100644 Binary files a/macros/latex/contrib/nicematrix/nicematrix.pdf and b/macros/latex/contrib/nicematrix/nicematrix.pdf differ -- cgit v1.2.3