summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nicematrix
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-16 03:03:08 +0000
committerNorbert Preining <norbert@preining.info>2022-11-16 03:03:08 +0000
commitfa9eff5f7febdf005dca510a70e57ffe92257c2c (patch)
tree667b828ec7d7c551a788849018749eee6fdb4337 /macros/latex/contrib/nicematrix
parent5e7ed3f53bdf940ec6dc2327ccf586cd540aa9b9 (diff)
CTAN sync 202211160303
Diffstat (limited to 'macros/latex/contrib/nicematrix')
-rw-r--r--macros/latex/contrib/nicematrix/nicematrix-french.pdfbin511095 -> 511133 bytes
-rw-r--r--macros/latex/contrib/nicematrix/nicematrix-french.tex25
-rw-r--r--macros/latex/contrib/nicematrix/nicematrix.dtx68
-rw-r--r--macros/latex/contrib/nicematrix/nicematrix.pdfbin1324298 -> 1324991 bytes
4 files changed, 58 insertions, 35 deletions
diff --git a/macros/latex/contrib/nicematrix/nicematrix-french.pdf b/macros/latex/contrib/nicematrix/nicematrix-french.pdf
index 4dfeea879f..191739e8f6 100644
--- a/macros/latex/contrib/nicematrix/nicematrix-french.pdf
+++ b/macros/latex/contrib/nicematrix/nicematrix-french.pdf
Binary files differ
diff --git a/macros/latex/contrib/nicematrix/nicematrix-french.tex b/macros/latex/contrib/nicematrix/nicematrix-french.tex
index 352fb51efb..7ada2b36db 100644
--- a/macros/latex/contrib/nicematrix/nicematrix-french.tex
+++ b/macros/latex/contrib/nicematrix/nicematrix-french.tex
@@ -1794,7 +1794,7 @@ Stéphanie \\
\bigskip
On peut aussi utiliser dans la commande |\rowlistcolors| une série de couleurs
définie par la commande |\definecolorseries| de \pkg{xcolor} (et initialisée
-avec la commande |\resetcolorseries|\footnote{Pour l'initialisation, on a
+avec |\resetcolorseries|\footnote{Pour l'initialisation, on a
utilisé dans l'exemple qui suit le compteur |iRow| qui, quand il est utilisé
dans le |\CodeBefore| (ou le |\CodeAfter|) désigne le nombre de rangées du
tableau : cf~p.~\pageref{iRow}. Cela permet un ajustement de la gradation des
@@ -2228,16 +2228,12 @@ réglages supplémentaires).
\medskip
Lorsque l'extension \pkg{varwidth} est chargée, ces colonnes |V| de
-\pkg{varwidth} sont prises en charge par \pkg{nicematrix}. Dans le cadre de
-\pkg{nicematrix}, l'un des intérêts des colonnes de type |V| par rapport aux
-colonnes de type |p|, |m| ou |b| est que, pour les cases d'une telle colonne,
-le nœud PGF-Tikz créé pour le contenu d'une telle case a une largeur ajustée
-au contenu de la cellule en question : cf. p.~\pageref{node-V}.
+\pkg{varwidth} sont prises en charge par \pkg{nicematrix}.
\medskip
\begin{Verbatim}
\begin{NiceTabular}[corners=NW,hvlines]{~emphase#V{3cm}V{3cm}V{3cm}@}
-& un très très très très long texte & un très très très très long texte \\
+& un texte & un très très très très long texte \\
un très très très très long texte \\
un très très très très long texte
\end{NiceTabular}
@@ -2246,13 +2242,20 @@ un très très très très long texte
\medskip
\begin{center}
\begin{NiceTabular}[corners=NW,hvlines]{V{3cm}V{3cm}V{3cm}}
-& un très très très très long texte & un très très très très long texte \\
+& un texte & un très très très très long texte \\
un très très très très long texte \\
un très très très très long texte
\end{NiceTabular}
\end{center}
+Dans le cadre de
+\pkg{nicematrix}, l'un des intérêts des colonnes de type |V| par rapport aux
+colonnes de type |p|, |m| ou |b| est que, pour les cases d'une telle colonne,
+le nœud PGF-Tikz créé pour le contenu d'une telle case a une largeur ajustée
+au contenu de la cellule en question : cf. p.~\pageref{node-V}.
+
+\medskip
Remarquons que l'extension \pkg{varwidth} a quelques problèmes (au moins dans sa
version 0.92). Par exemple, avec LuaLaTeX, elle ne fonctionne pas si le contenu
commence par une instruction |\color|.
@@ -4983,9 +4986,9 @@ doit être chargé avant le |\documentclass|:
\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.
+L'extension \pkg{nicematrix} n'est pas parfaitement compatible avec les classes
+et extensions de \LuaTeX-ja: 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
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
diff --git a/macros/latex/contrib/nicematrix/nicematrix.pdf b/macros/latex/contrib/nicematrix/nicematrix.pdf
index bae5622a6d..7f09289c8a 100644
--- a/macros/latex/contrib/nicematrix/nicematrix.pdf
+++ b/macros/latex/contrib/nicematrix/nicematrix.pdf
Binary files differ