diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-16 03:03:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-16 03:03:08 +0000 |
commit | fa9eff5f7febdf005dca510a70e57ffe92257c2c (patch) | |
tree | 667b828ec7d7c551a788849018749eee6fdb4337 /macros/latex/contrib/nicematrix/nicematrix.dtx | |
parent | 5e7ed3f53bdf940ec6dc2327ccf586cd540aa9b9 (diff) |
CTAN sync 202211160303
Diffstat (limited to 'macros/latex/contrib/nicematrix/nicematrix.dtx')
-rw-r--r-- | macros/latex/contrib/nicematrix/nicematrix.dtx | 68 |
1 files changed, 44 insertions, 24 deletions
diff --git a/macros/latex/contrib/nicematrix/nicematrix.dtx b/macros/latex/contrib/nicematrix/nicematrix.dtx index ed200cd901..479c0b204b 100644 --- a/macros/latex/contrib/nicematrix/nicematrix.dtx +++ b/macros/latex/contrib/nicematrix/nicematrix.dtx @@ -17,8 +17,8 @@ % % \fi % \iffalse -\def\myfileversion{6.13b} -\def\myfiledate{2022/10/06} +\def\myfileversion{6.13c} +\def\myfiledate{2022/11/15} % % %<*batchfile> @@ -133,6 +133,9 @@ version 2005/12/01 or later. % and \pkg{amsmath} but with extended features. % \end{abstract} % +% +% +% % \vspace{1cm} % \hspace{1cm} % $\begin{bNiceArray}{cccc}[first-row,first-col, @@ -1236,11 +1239,11 @@ version 2005/12/01 or later. % inter-rule space (as possible with \pkg{colortbl} for instance). % % \begin{itemize} -% \item the key |multiplicity| is the number to consecutive rules that will be +% \item the key |multiplicity| is the number of consecutive rules that will be % drawn: for instance, a value of $2$ will create double rules such those % created by |\hline\hline| or \verb+||+ in the preamble of an environment; % -% \item the key |color| sets the color of the rule ; +% \item the key |color| sets the color of the rules ; % % \item the key |sep-color| sets the color between two successive rules (should be % used only in conjonction with |multiplicity|). @@ -1793,7 +1796,7 @@ version 2005/12/01 or later. % of the colors to the size of the tabular.}). % % \smallskip -% \begin{BVerbatim}[boxwidth=12cm,baseline=c] +% \begin{BVerbatim}[boxwidth=13cm,baseline=c] % \begin{NiceTabular}{c} % \CodeBefore % ~emphase#\definecolorseries{BlueWhite}{rgb}{last}{blue}{white}@ @@ -1867,7 +1870,7 @@ version 2005/12/01 or later. % \bigskip % One should remark that all the previous commands are compatible with the % commands of \pkg{booktabs} (|\toprule|, |\midrule|, |\bottomrule|, etc). -% However, \pkg{booktabs} is not loaded by \pkg{nicematrix}. +% However, \pkg{booktabs} is \emph{not} loaded by \pkg{nicematrix}. % % \medskip % \begin{scope} @@ -2211,15 +2214,12 @@ version 2005/12/01 or later. % % \smallskip % When the package \pkg{varwidth} is loaded, the columns |V| of \pkg{varwidth} -% are supported by \pkg{nicematrix}. Concerning \pkg{nicematrix}, one of the -% interests of this type of columns is that, for a cell of a column of type~|V|, -% the PGF/Tikz node created by \pkg{nicematrix} for the content of that cell has -% a width adjusted to the content of the cell : cf. p.~\pageref{node-V}. +% are supported by \pkg{nicematrix}. % % \medskip % \begin{Verbatim} % \begin{NiceTabular}[corners=NW,hvlines]{~emphase#V{3cm}V{3cm}V{3cm}@} -% & some very very very long text & some very very very long text \\ +% & some text & some very very very long text \\ % some very very very long text \\ % some very very very long text % \end{NiceTabular} @@ -2228,13 +2228,19 @@ version 2005/12/01 or later. % \medskip % \begin{center} % \begin{NiceTabular}[corners=NW,hvlines]{V{3cm}V{3cm}V{3cm}} -% & some very very very long text & some very very very long text \\ +% & some text & some very very very long text \\ % some very very very long text \\ % some very very very long text % \end{NiceTabular} % \end{center} % % \bigskip +% Concerning \pkg{nicematrix}, one of the +% interests of this type of columns is that, for a cell of a column of type~|V|, +% the PGF/Tikz node created by \pkg{nicematrix} for the content of that cell has +% a width adjusted to the content of the cell : cf. p.~\pageref{node-V}. + +% \bigskip % One should remark that the extension \pkg{varwidth} (at least in its version % 0.92) has some problems: for instance, with LuaLaTeX, it does not work when % the content begins with |\color|. @@ -4910,13 +4916,13 @@ 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. +% The package \pkg{nicematrix} is not fully compatible with the packages and classes +% of \LuaTeX-ja: the detection of the empty corners (cf. % p.~\pageref{corners}) +% may be wrong in some circonstances. % % \bigskip % The package \pkg{nicematrix} is not fully compatible with the package -% \pkg{arydshln} (because this package redefines many internal of \pkg{array}). +% \pkg{arydshln} (because this package redefines many internals of \pkg{array}). % By any means, in the context of \pkg{nicematrix}, it's recommended to draw % dashed rules with the tools provided by \pkg{nicematrix}, by creating a % customized line style with |custom-line|: cf.~p.~\pageref{custom-line}. @@ -4933,7 +4939,7 @@ version 2005/12/01 or later. % loaded.\footnote{By default, \pkg{nicematrix} only loads \textsc{pgf}, which is % a sub-layer of Tikz.} % -% For the following example, we need also the Tikz library |patterns|. +% For the following example, we also need the Tikz library |patterns|. % % \begin{Verbatim} % \usetikzlibrary{patterns} @@ -4988,7 +4994,7 @@ version 2005/12/01 or later. % \medskip % First, we write a command |\stars| similar the well-known commands % |\arabic|, |\alph|, |\Alph|, etc. which produces a number of stars equal to -% its argument \footnote{In fact: the value of its argument.} +% its argument\footnote{In fact: the value of its argument.}. % \begin{Verbatim} % \ExplSyntaxOn % \NewDocumentCommand ~emphase#\stars@ { m } @@ -8987,7 +8993,7 @@ version 2005/12/01 or later. % \footnote{cf. |\nicematrix@redefine@check@rerun|}. % \begin{macrocode} \bool_if:NT \c_@@_booktabs_loaded_bool - { \tl_put_left:Nn \@BTnormal \@@_create_row_node_i: } % modified in 6.10a + { \tl_put_left:Nn \@BTnormal \@@_create_row_node_i: } \box_clear_new:N \l_@@_cell_box \normalbaselines % \end{macrocode} @@ -10048,7 +10054,7 @@ version 2005/12/01 or later. % \end{macrocode} % % \bigskip -% We want to write on the |aux| file all the informations corresponding to the +% We write on the |aux| file all the informations corresponding to the % current environment. % \begin{macrocode} \iow_now:Nn \@mainaux { \ExplSyntaxOn } @@ -13631,7 +13637,13 @@ version 2005/12/01 or later. { \@@_qpoint:n { row - \int_use:N \l_@@_initial_i_int - base } \dim_set:Nn \l_@@_y_initial_dim - { \pgf@y + ( \box_ht:N \strutbox + \extrarowheight ) * \arraystretch } + { + \fp_to_dim:n + { + \pgf@y + + ( \box_ht:N \strutbox + \extrarowheight ) * \arraystretch + } + } % modified 6.13c \int_step_inline:nnn \l_@@_first_col_int \g_@@_col_total_int { \cs_if_exist:cT @@ -13653,7 +13665,8 @@ version 2005/12/01 or later. { \@@_qpoint:n { row - \int_use:N \l_@@_final_i_int - base } \dim_set:Nn \l_@@_y_final_dim - { \pgf@y - ( \box_dp:N \strutbox ) * \arraystretch } + { \fp_to_dim:n { \pgf@y - ( \box_dp:N \strutbox ) * \arraystretch } } + % modified 6.13c \int_step_inline:nnn \l_@@_first_col_int \g_@@_col_total_int { \cs_if_exist:cT @@ -19207,10 +19220,17 @@ version 2005/12/01 or later. { \@@_qpoint:n { row - \l_@@_first_i_tl - base } \dim_set:Nn \l_@@_y_initial_dim - { \pgf@y + ( \box_ht:N \strutbox + \extrarowheight ) * \arraystretch } + { + \fp_to_dim:n + { + \pgf@y + + ( \box_ht:N \strutbox + \extrarowheight ) * \arraystretch + } + } % modified 6.13c \@@_qpoint:n { row - \l_@@_last_i_tl - base } \dim_set:Nn \l_@@_y_final_dim - { \pgf@y - ( \box_dp:N \strutbox ) * \arraystretch } + { \fp_to_dim:n { \pgf@y - ( \box_dp:N \strutbox ) * \arraystretch } } + % modified 6.13c \int_step_inline:nnn \l_@@_first_col_int \g_@@_col_total_int { \cs_if_exist:cT |