From 83422963871d3f8dcb7460e580122b33e78f77c0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 14 Sep 2021 20:25:23 +0000 Subject: nicematrix (14sep21) git-svn-id: svn://tug.org/texlive/trunk@60509 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/nicematrix/nicematrix-french.pdf | Bin 471024 -> 476252 bytes .../doc/latex/nicematrix/nicematrix-french.tex | 107 +++++++++++++++++++-- .../texmf-dist/doc/latex/nicematrix/nicematrix.pdf | Bin 1380062 -> 1387232 bytes 3 files changed, 99 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/doc/latex') diff --git a/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf b/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf index 0ae9b001659..fae69c03b0c 100644 Binary files a/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf and b/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.pdf differ diff --git a/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex b/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex index 52aee279929..28723ff94b4 100644 --- a/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex +++ b/Master/texmf-dist/doc/latex/nicematrix/nicematrix-french.tex @@ -865,7 +865,7 @@ clé |standard-cline|). \begin{BVerbatim}[baseline=c,boxwidth=10cm] \setlength{\arrayrulewidth}{2pt} \begin{NiceTabular}{cccc} \hline -A&B&C&D \\ ~emphase#\cline{2-2}@ +A&B&C&D \\ ~emphase#\cline{2}@ A&B&C&D \\ \hline \end{NiceTabular} \end{BVerbatim} @@ -875,13 +875,18 @@ A&B&C&D \\ \hline \begin{NiceTabular}[c]{cccc} \hline A&B&C&D \\ -\cline{2-2} +\cline{2} A&B&C&D \\ \hline \end{NiceTabular} \end{scope} +\medskip +\colorbox{yellow!50}{\textbf{Nouveau 6.2}}\enskip +Dans les environnements de +\pkg{nicematrix}, une instruction |\cline{|\textsl{\texttt{i}}|}| est +équivalente à |\cline{|\textsl{\texttt{i}}|-|\textsl{\texttt{i}}|}|. \subsection{L'épaisseur et la couleur des filets} @@ -1971,7 +1976,11 @@ clé |width|. La valeur initiale de ce paramètre est |\linewidth|. Pour se rapprocher davantage de l'environnement |{tabularx}|, \pkg{nicematrix} propose aussi un environnement |{NiceTabularX}| qui prend en premier argument -(obligatoire) la largeur voulue pour le tableau. +(obligatoire) la largeur voulue pour le tableau.\footnote{Si \pkg{tabularx} est + chargé, on doit obligatoirement utiliser |{NiceTabularX}| pour utiliser les + colonnes `X` (ceci est dû à un problème de conflit de définition des + spécificateurs de colonne `X`).} + Comme avec les extensions \pkg{tabu} et \pkg{tabularray}, le spécificateur |X| accepte entre crochets un argument optionnel qui est une liste de clés. @@ -4406,11 +4415,6 @@ pointillés de \pkg{nicematrix} : \NiceMatrixOptions{letter-for-dotted-lines=;} \end{Verbatim} -\bigskip -L'extension \pkg{nicematrix} n'est pas compatible avec la classe \cls{aastex63}. -Si vous souhaitez utiliser \pkg{nicematrix} with \cls{aastex63}, envoyez-moi un -courrier électronique et j'essaierai de résoudre les incompatibilités. - \bigskip L'extension \pkg{nicematrix} n'est pas compatible avec la classe \cls{ieeeaccess} (car cette classe n'est pas compatible avec PGF/Tikz). @@ -4421,6 +4425,15 @@ L'extension \pkg{nicematrix} n'est pas compatible avec la classe \cls{ieeeaccess \label{tikz-key-examples} +La clé |tikz| de la commande |\Block| n'est disponible que lorsque Tikz est +chargé.\footnote{Par défaut, \pkg{nicematrix} ne charge que \textsc{pgf}, qui + est une sous-couche de Tikz} + +Pour l'exemple suivant, la bibliothèque \tikz{patterns} de Tikz doit aussi être chargée. + +\begin{Verbatim} +\usetikzlibrary{patterns} +\end{Verbatim} \begin{Verbatim} \ttfamily \small @@ -4921,6 +4934,84 @@ Bien sûr, ce tableau ne pourra pas être coupé par un saut de page. \end{NiceMatrix}\] \end{scope} +\bigskip +Dans ce tableau, les instructions |\SubMatrix| sont exécutés après la +composition du tableau et les traits verticaux sont donc tracés sans espacer les +colonnes. + + +\bigskip +\colorbox{yellow!50}{\textbf{Nouveau 6.2}}\enskip En fait, on peut avec la clé +|vlines-in-sub-matrix| choisir un spécificateur dans le préambule du tableau +pour indiquer des filets verticaux qui seront tracés dans les |\SubMatrix| +uniquement (en espaçant les colonnes). + +\medskip +\begin{Verbatim} +\setlength{\extrarowheight}{1mm} +\[\begin{NiceArray} + [ + ~emphase#vlines-in-sub-matrix=I@, + last-col, + code-for-last-col = \scriptstyle \color{blue} + ] + {rrrrIr} +12 & -8 & 7 & 5 & 3 \\ + 3 & -18 & 12 & 1 & 4 \\ +-3 & -46 & 29 &-2 &-15 \\ + 9 & 10 &-5 &4 & 7 \\[1mm] +12 & -8 & 7 &5 & 3 \\ +0 & 64 &-41 & 1 & 19 & L_2 \gets L_1-4L_2 \\ +0 & -192 &123 &-3 &-57 & L_3 \gets L_1+4L_3 \\ +0 & -64 & 41 &-1 &-19 & L_4 \gets 3L_1-4L_4 \\[1mm] +12 & -8 &7 &5 & 3 \\ +0 & 64 &-41 &1 &19 \\ +0 & 0 &0 &0 & 0 & L_3 \gets 3L_2+L_3 \\[1mm] +12 & -8 &7 &5 & 3 \\ +0 & 64 &-41 & 1 & 19 \\ +\CodeAfter + \SubMatrix({1-1}{4-5}) + \SubMatrix({5-1}{8-5}) + \SubMatrix({9-1}{11-5}) + \SubMatrix({12-1}{13-5}) +\end{NiceArray}\] +\end{Verbatim} + + + +\medskip +\begin{scope} +\setlength{\extrarowheight}{1mm} +\[\begin{NiceArray} + [ + vlines-in-sub-matrix=I, + last-col, + code-for-last-col = \scriptstyle \color{blue} + ] + {rrrrIr} +12 & -8 & 7 & 5 & 3 \\ + 3 & -18 & 12 & 1 & 4 \\ +-3 & -46 & 29 &-2 &-15 \\ + 9 & 10 &-5 &4 & 7 \\[1mm] +12 & -8 & 7 &5 & 3 \\ +0 & 64 &-41 & 1 & 19 & L_2 \gets L_1-4L_2 \\ +0 & -192 &123 &-3 &-57 & L_3 \gets L_1+4L_3 \\ +0 & -64 & 41 &-1 &-19 & L_4 \gets 3L_1-4L_4 \\[1mm] +12 & -8 &7 &5 & 3 \\ +0 & 64 &-41 &1 &19 \\ +0 & 0 &0 &0 & 0 & L_3 \gets 3L_2+L_3 \\[1mm] +12 & -8 &7 &5 & 3 \\ +0 & 64 &-41 & 1 & 19 \\ +\CodeAfter + \SubMatrix({1-1}{4-5}) + \SubMatrix({5-1}{8-5}) + \SubMatrix({9-1}{11-5}) + \SubMatrix({12-1}{13-5}) +\end{NiceArray}\] +\end{scope} + + + \subsection{Comment surligner les cases d'une matrice} diff --git a/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf b/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf index 026c149a495..eddc8362184 100644 Binary files a/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf and b/Master/texmf-dist/doc/latex/nicematrix/nicematrix.pdf differ -- cgit v1.2.3