diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-25 22:05:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-25 22:05:11 +0000 |
commit | e7df7311c6a26469dff38edbf3ddc6fe5357716e (patch) | |
tree | 72bd515e3b281baacb46f5e6450916a709f6e4d5 /Master/texmf-dist/tex | |
parent | d8fee81a14d1b16e6db51db1631b039f1ac9b6dd (diff) |
nicematrix (25feb23)
git-svn-id: svn://tug.org/texlive/trunk@66151 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty b/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty index 7b4b2fbf8b6..85326ddede9 100644 --- a/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty +++ b/Master/texmf-dist/tex/latex/nicematrix/nicematrix.sty @@ -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.14} -\def\myfiledate{2023/02/18} +\def\myfileversion{6.15} +\def\myfiledate{2023/02/25} \RequirePackage{pgfcore} \usepgfmodule{shapes} @@ -3389,8 +3389,11 @@ { * { - \int_compare:nNnTF \l__nicematrix_last_col_int < 0 - \c@MaxMatrixCols + \int_case:nnF \l__nicematrix_last_col_int + { + { -2 } { \c@MaxMatrixCols } + { -1 } { \int_eval:n { \c@MaxMatrixCols + 1 } } + } { \int_eval:n { \l__nicematrix_last_col_int - 1 } } } { #2 } @@ -6940,6 +6943,7 @@ - base } } + \dim_sub:Nn \l_tmpa_dim { 0.5 \arrayrulewidth } % added 2023-02-21 \pgfpointanchor { \__nicematrix_env: - #1 - #2 - block @@ -8268,8 +8272,12 @@ \int_compare:nNnTF \l__nicematrix_last_col_int = { -2 } { \__nicematrix_fatal:n { too~much~cols~for~matrix } } { - \bool_if:NF \l__nicematrix_last_col_without_value_bool - { \__nicematrix_fatal:n { too~much~cols~for~matrix~with~last~col } } + \int_compare:nNnTF \l__nicematrix_last_col_int = { -1 } + { \__nicematrix_fatal:n { too~much~cols~for~matrix } } + { + \bool_if:NF \l__nicematrix_last_col_without_value_bool + { \__nicematrix_fatal:n { too~much~cols~for~matrix~with~last~col } } + } } } { \__nicematrix_fatal:n { too~much~cols~for~array } } @@ -8295,7 +8303,7 @@ \__nicematrix_msg_new:nn { too~much~cols~for~matrix~with~last~col } { Too~much~columns.\\ - In~the~row~\int_eval:n { \c@iRow - 1 },~ + In~the~row~\int_eval:n { \c@iRow },~ you~try~to~use~more~columns~ than~allowed~by~your~\__nicematrix_full_name_env:.\__nicematrix_message_hdotsfor:\ The~maximal~number~of~columns~is~\int_eval:n { \l__nicematrix_last_col_int - 1 }~ @@ -8304,17 +8312,19 @@ \__nicematrix_msg_new:nn { too~much~cols~for~matrix } { Too~much~columns.\\ - In~the~row~\int_eval:n { \c@jCol - 1 },~ + In~the~row~\int_eval:n { \c@iRow },~ you~try~to~use~more~columns~than~allowed~by~your~ \__nicematrix_full_name_env:.\__nicematrix_message_hdotsfor:\ Recall~that~the~maximal~ - number~of~columns~for~a~matrix~is~fixed~by~the~LaTeX~counter~ - 'MaxMatrixCols'.~Its~current~value~is~\int_use:N \c@MaxMatrixCols.~ + number~of~columns~for~a~matrix~(excepted~the~potential~exterior~ + columns)~is~fixed~by~the~LaTeX~counter~'MaxMatrixCols'.~ + Its~current~value~is~\int_use:N \c@MaxMatrixCols\ (use~ + \token_to_str:N \setcounter\ to~change~that~value).~ This~error~is~fatal. } \__nicematrix_msg_new:nn { too~much~cols~for~array } { Too~much~columns.\\ - In~the~row~\int_eval:n { \c@jCol - 1 },~ + In~the~row~\int_eval:n { \c@iRow },~ ~you~try~to~use~more~columns~than~allowed~by~your~ \__nicematrix_full_name_env:.\__nicematrix_message_hdotsfor:\ The~maximal~number~of~columns~is~ \int_use:N \g__nicematrix_static_num_of_col_int\ |