summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nicematrix/nicematrix-french.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-20 03:01:19 +0000
committerNorbert Preining <norbert@preining.info>2024-02-20 03:01:19 +0000
commit203d8df9dde93676afcceb5ace315faeda77d016 (patch)
tree648ea4ae015ff2a7b20bd239d3377cca6dcabfe3 /macros/latex/contrib/nicematrix/nicematrix-french.tex
parente11a34ebeb96a1e568cc937df3b614062ddb0adf (diff)
CTAN sync 202402200301
Diffstat (limited to 'macros/latex/contrib/nicematrix/nicematrix-french.tex')
-rw-r--r--macros/latex/contrib/nicematrix/nicematrix-french.tex76
1 files changed, 33 insertions, 43 deletions
diff --git a/macros/latex/contrib/nicematrix/nicematrix-french.tex b/macros/latex/contrib/nicematrix/nicematrix-french.tex
index e6026723d3..f7b2c07ef0 100644
--- a/macros/latex/contrib/nicematrix/nicematrix-french.tex
+++ b/macros/latex/contrib/nicematrix/nicematrix-french.tex
@@ -1240,9 +1240,7 @@ localement la couleur des filets (alors que la commande |\arrayrulecolor| agit
globalement !). Elle est à privilégier.
\medskip
-\begin{scope}
-\hfuzz=10cm
-\begin{Code}[width=9.5cm]
+\begin{Code}[width=15cm]
\begin{NiceTabular}{|ccc|}[\emph{rules/color=[gray]{0.9},rules/width=1pt}]
\hline
rose & tulipe & lys \\
@@ -1251,6 +1249,7 @@ muguet & dahlia & souci \\
\hline
\end{NiceTabular}
\end{Code}
+\hspace{-5cm}
\begin{NiceTabular}{|ccc|}[rules/color=[gray]{0.9},rules/width=1pt]
\hline
rose & tulipe & lys \\
@@ -1258,7 +1257,7 @@ arum & iris & violette \\
muguet & dahlia & souci \\
\hline
\end{NiceTabular}
-\end{scope}
+
\medskip
En fait, dans cet exemple, au lieu de |\hline|, il aurait mieux valu utiliser la
@@ -2292,9 +2291,7 @@ utilise la clé |corners| pour demander de considérer le coin \emph{north east}
\medskip
\index{corners (clé d'un environnement)|textit}
-\begin{scope}
-\hfuzz=11cm
-\begin{Code}[width=9cm]
+\begin{Code}[width=15cm]
\begin{NiceTabular}{cccccc}[\emph{corners=NE},margin,hvlines,first-row,first-col]
\CodeBefore
\emph{\rowlistcolors{1}{blue!15, }}
@@ -2309,6 +2306,7 @@ utilise la clé |corners| pour demander de considérer le coin \emph{north east}
6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\
\end{NiceTabular}
\end{Code}
+\hspace{-6cm}
\begin{NiceTabular}{ccccccc}[corners=NE,margin,hvlines,first-row,first-col]
\CodeBefore
\rowlistcolors{1}{blue!15, }
@@ -2322,7 +2320,7 @@ utilise la clé |corners| pour demander de considérer le coin \emph{north east}
5 & 1 & 5 & 10 & 10 & 5 & 1 \\
6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\
\end{NiceTabular}
-\end{scope}
+
\medskip
L'exemple précédent utilise les clés |first-row| et |first-col| qui sont
@@ -2339,9 +2337,7 @@ Dans l'exemple suivant, on demande explicitement le coloriage de la colonne~$0$
(qui est la «première colonne» et qui existe du fait de la clé |first-col|).
\medskip
-\begin{scope}
-\hfuzz=11cm
-\begin{Code}[width=9cm]
+\begin{Code}[width=15cm]
\begin{NiceTabular}{cccccc}[\emph{corners=NE},margin,hvlines,first-row,first-col]
\CodeBefore
\rowlistcolors{1}{blue!15, }
@@ -2357,6 +2353,7 @@ Dans l'exemple suivant, on demande explicitement le coloriage de la colonne~$0$
6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\
\end{NiceTabular}
\end{Code}
+\hspace{-6cm}
\begin{NiceTabular}{ccccccc}[corners=NE,margin,hvlines,first-row,first-col]
\CodeBefore
\rowlistcolors{1}{blue!15, }
@@ -2371,7 +2368,7 @@ Dans l'exemple suivant, on demande explicitement le coloriage de la colonne~$0$
5 & 1 & 5 & 10 & 10 & 5 & 1 \\
6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\
\end{NiceTabular}
-\end{scope}
+
\bigskip
@@ -3019,7 +3016,7 @@ L_4 & a_{41} & a_{42} & a_{43} & a_{44} & L_4 \\
& C_1 & \Cdots & & C_4 &
\end{pNiceArray}$
\end{Code}
-%
+
\begin{scope}
\NiceMatrixOptions{code-for-first-row = \color{red},
code-for-first-col = \color{blue},
@@ -3027,13 +3024,13 @@ L_4 & a_{41} & a_{42} & a_{43} & a_{44} & L_4 \\
code-for-last-col = \color{magenta}}
\begin{displaymath}
\begin{pNiceArray}{cc|cc}[first-row,last-row=5,first-col,last-col,nullify-dots]
- & C_1 & \multicolumn1c{\Cdots} & & C_4 & \\
+ & C_1 & \multicolumn{1}{c}{\Cdots} & & C_4 & \\
L_1 & a_{11} & a_{12} & a_{13} & a_{14} & L_1 \\
\Vdots & a_{21} & a_{22} & a_{23} & a_{24} & \Vdots \\
\hline
& a_{31} & a_{32} & a_{33} & a_{34} & \\
L_4 & a_{41} & a_{42} & a_{43} & a_{44} & L_4 \\
- & C_1 & \multicolumn1c{\Cdots} & & C_4 &
+ & C_1 & \multicolumn{1}{c}{\Cdots} & & C_4 &
\end{pNiceArray}
\end{displaymath}
\end{scope}
@@ -3378,7 +3375,7 @@ C[a_1^{(p)},a_1] & \Cdots & C[a_1^{(p)},a_n]
C[a_n^{(p)},a_1] & \Cdots & C[a_n^{(p)},a_n]
& & C[a_n^{(p)},a_1^{(p)}] & \Cdots & C[a_n^{(p)},a_n^{(p)}]
\end{bNiceMatrix}
-\end{Code}
+\end{Code}%
\end{scope}
@@ -3904,9 +3901,7 @@ construction de la matrice : aucun espace n'est inséré par la commande
colonne avec |@{\hspace{1.5em}}| dans le préambule du tableau.
\medskip
-\begin{scope}
-\hfuzz=15cm
-\begin{Code}[width=11cm]
+\begin{Code}[width=15cm]
\[\begin{NiceArray}{ccc\emph{@{\hspace{1.5em}}}c}[cell-space-limits=2pt,\emph{margin}]
1 & 1 & 1 & x \\
\dfrac{1}{4} & \dfrac{1}{2} & \dfrac{1}{4} & y \\
@@ -3916,7 +3911,7 @@ colonne avec |@{\hspace{1.5em}}| dans le préambule du tableau.
\SubMatrix({1-4}{3-4})}
\end{NiceArray}\]
\end{Code}
-\end{scope}
+\hspace{-4cm}
$\begin{NiceArray}{ccc@{\hspace{1.5em}}c}[cell-space-limits=2pt,margin]
1 & 1 & 1 & x \\
\dfrac{1}{4} & \dfrac{1}{2} & \dfrac{1}{4} & y \\
@@ -4024,9 +4019,7 @@ préfixe |sub-matrix|, c'est-à-dire qu'elles sont alors nommées
|sub-matrix/left-xshift|, |sub-matrix/right-xshift|, |sub-matrix/xshift|, etc.
\medskip
-\begin{scope}
-\hfuzz=12cm
-\begin{Code}[width=11cm]
+\begin{Code}[width=15cm]
$\begin{NiceArray}{cc@{\hspace{5mm}}l}[cell-space-limits=2pt]
& & \frac{1}{2} \\
& & \frac{1}{4} \\[1mm]
@@ -4038,7 +4031,7 @@ c & d & \frac{1}{2}c+\frac{1}{4}d \\
\SubMatrix({3-3}{4-3})
\end{NiceArray}$
\end{Code}
-\end{scope}
+\hspace{-4cm}
$\begin{NiceArray}{cc@{\hspace{5mm}}l}[cell-space-limits=2pt]
& & \frac12 \\
& & \frac14 \\[1mm]
@@ -4054,9 +4047,7 @@ c & d & \frac12c+\frac14d \\
Voici le même exemple avec la clé |slim| pour l'une des sous-matrices.
\medskip
-\begin{scope}
-\hfuzz=12cm
-\begin{Code}[width=11cm]
+\begin{Code}[width=15cm]
$\begin{NiceArray}{cc@{\hspace{5mm}}l}[cell-space-limits=2pt]
& & \frac{1}{2} \\
& & \frac{1}{4} \\[1mm]
@@ -4068,8 +4059,7 @@ c & d & \frac{1}{2}c+\frac{1}{4}d \\
\SubMatrix({3-3}{4-3})
\end{NiceArray}$
\end{Code}
-\end{scope}
-%
+\hspace{-4cm}
$\begin{NiceArray}{cc@{\hspace{5mm}}l}[cell-space-limits=2pt]
& & \frac12 \\
& & \frac14 \\[1mm]
@@ -4140,7 +4130,6 @@ dans cette clé, les nœuds de la forme \verb+i-|j+ sont interprétés avec
\emph{pas} autorisée.}
\medskip
-\begin{scope}
\begin{Code}
$\begin{NiceArray}{ccc@{}w{c}{5mm}@{}ccc}
& & && -1 & 1 & 2 \\
@@ -4155,8 +4144,8 @@ $\begin{NiceArray}{ccc@{}w{c}{5mm}@{}ccc}
\SubMatrix({4-1}{6-3})[\emph{code = \MyDraw}]
\SubMatrix({4-5}{6-7})[\emph{code = \MyDraw}]
\end{NiceArray}$
-\end{Code}
-\end{scope}
+\end{Code}%
+
\[\begin{NiceArray}{ccc@{}w{c}{5mm}@{}ccc}
@@ -4498,7 +4487,7 @@ tableau en un seul paragraphe.
Il existe une clé |tabularnote| qui permet d'insérer du texte dans la zone
des notes avant les notes numérotées.
-\index{tabularnote@\texttt{\{TabularNote\}}}
+\index{tabularnote-env@\texttt{\{TabularNote\}}}
\index{notes (clé pour paramétrer les notes de\newline tableau)}
Une syntaxe alternative est proposée : il est possible d'utiliser
@@ -4557,7 +4546,7 @@ Wallis & John & 87 \\
\bottomrule
\end{NiceTabular}
\end{table}
-\end{Code}
+\end{Code}%
\end{scope}
@@ -5195,7 +5184,8 @@ dans les cases du tableau.\footnote{La raison en est que lorsque l'option |light
\colorbox{yellow!50}{\textbf{Nouveau 6.27}}\enskip La clé
|light-syntax-expanded| a le même comportement que la clé |light-syntax| mais
avec cette différence que le corps de l'environnement est complètement développé
-(au sens de TeX) avant découpe en lignes (mais après l'extraction de l'éventuel
+(au sens de TeX\footnote{Plus précisément, il s'agit d'une expansion de type |e|
+de L3.}) avant découpe en lignes (mais après l'extraction de l'éventuel
|\CodeAfter|).
@@ -5930,8 +5920,8 @@ utilise explicitement la variable publique |\g_nicematrix_code_before_tl|.
\index{crossbox@\texttt{\textbackslash crossbox} (définie dans un exemple)|textit}
-\begin{scope}
-\fvset{commandchars=\§\¤\μ}
+
+
\begin{Code}
\ExplSyntaxOn
\cs_new_protected:Nn \__pantigny_crossbox:nnn
@@ -5952,8 +5942,8 @@ utilise explicitement la variable publique |\g_nicematrix_code_before_tl|.
}
}
\ExplSyntaxOff
-\end{Code}
-\end{scope}
+\end{Code}%
+
\ExplSyntaxOn
@@ -6792,7 +6782,7 @@ avec l'environnement |{NiceMatrixBlock}| et l'option |auto-columns-width|.
0 64 -41 1 19 ;
\end{pNiceMatrix}$
\emph{\end{NiceMatrixBlock}}
-\end{Code}
+\end{Code}%
\end{scope}
\medskip
@@ -6873,7 +6863,7 @@ avec leur largeur maximale grâce à la clé booléenne |delimiters/max-width|.
\end{pNiceMatrix}$
...
\emph{\end{NiceMatrixBlock}}
-\end{Code}
+\end{Code}%
\end{scope}
\medskip
@@ -7317,7 +7307,7 @@ de parenthèses ont été rajoutées avec |\SubMatrix| dans le |\CodeBefore|.
\end{Verbatim}
\begin{scope}
-\small
+\footnotesize
\begin{Code}
\[\begin{NiceArray}{*{6}{c}@{\hspace{6mm}}*{5}{c}}[nullify-dots]
\CodeBefore [create-cell-nodes]
@@ -7344,7 +7334,7 @@ de parenthèses ont été rajoutées avec |\SubMatrix| dans le |\CodeBefore|.
\CodeAfter
\tikz \draw [gray,shorten > = 1mm, shorten < = 1mm] (9-4.north) to [bend left] (4-9.west) ;
\end{NiceArray}\]
-\end{Code}
+\end{Code}%
\end{scope}