diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex | 65 |
1 files changed, 29 insertions, 36 deletions
diff --git a/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex b/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex index 6f18a9c5e64..767b9733124 100644 --- a/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex +++ b/Master/texmf-dist/doc/latex/nicematrix/nicematrix.tex @@ -1194,9 +1194,7 @@ environment, to fix the color of the rules. This key sets the value locally (whereas |\arrayrulecolor| acts globally!) and should be prefered. \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 \\ @@ -1205,6 +1203,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 \\ @@ -1212,7 +1211,7 @@ arum & iris & violette \\ muguet & dahlia & souci \\ \hline \end{NiceTabular} -\end{scope} + \medskip In fact, in that example, instead of |\hline|, it would have a better choice to @@ -2200,6 +2199,7 @@ Jane \\ Alexandra \\ \end{NiceTabular} \end{Code} +\hspace{-1cm} \begin{NiceTabular}{c} \CodeBefore \definecolorseries{BlueWhite}{rgb}{last}{blue}{white} @@ -2223,9 +2223,7 @@ which are in the ``corners''. In the following example, we use the key \medskip \index{corners (key of an environment)|textit} -\begin{scope} -\hfuzz=11cm -\begin{Code}[width=9cm] +\begin{Code}[width=15cm] \begin{NiceTabular}{ccccccc}[\emph{corners=NE},margin,hvlines,first-row,first-col] \CodeBefore \emph{\rowlistcolors{1}{blue!15, }} @@ -2240,6 +2238,7 @@ which are in the ``corners''. In the following example, we use the key 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, } @@ -2253,7 +2252,6 @@ which are in the ``corners''. In the following example, we use the key 5 & 1 & 5 & 10 & 10 & 5 & 1 \\ 6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\ \end{NiceTabular} -\end{scope} \medskip The previous example uses the keys |first-row| and |first-col| which are @@ -2270,9 +2268,7 @@ In the following example, we require a color in the column~$0$ (which is the «first column» and which exists because the key |first-col| has been used). \medskip -\begin{scope} -\hfuzz=11cm -\begin{Code}[width=9cm] +\begin{Code}[width=15cm] \begin{NiceTabular}{ccccccc}[\emph{corners=NE},margin,hvlines,first-row,first-col] \CodeBefore \rowlistcolors{1}{blue!15, } @@ -2288,6 +2284,7 @@ In the following example, we require a color in the column~$0$ (which is the 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, } @@ -2302,7 +2299,7 @@ In the following example, we require a color in the column~$0$ (which is the 5 & 1 & 5 & 10 & 10 & 5 & 1 \\ 6 & 1 & 6 & 15 & 20 & 15 & 6 & 1 \\ \end{NiceTabular} -\end{scope} + \bigskip @@ -3294,7 +3291,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} @@ -3812,9 +3809,7 @@ and you have added by hand some space between the third and fourth column with |@{\hspace{1.5em}}| in the preamble of the array. \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 \\ @@ -3824,7 +3819,7 @@ and you have added by hand some space between the third and fourth column with \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 \\ @@ -3931,9 +3926,8 @@ the prefix |sub-matrix| which means that their names are therefore |sub-matrix/left-xshift|, |sub-matrix/right-xshift|, |sub-matrix/xshift|, etc. \bigskip -\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] @@ -3945,7 +3939,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] @@ -3961,9 +3955,7 @@ c & d & \frac12c+\frac14d \\ Here is the same example with the key |slim| used for one of the submatrices. \medskip -\begin{scope} -\hfuzz=12cm -\begin{Code}[width=11cm] +\begin{Code}[width=15cm] $\begin{NiceArray}{cc@{\hspace{5mm}}l}[cell-space-limits=2pt] & & \frac12 \\ & & \frac14 \\[1mm] @@ -3975,7 +3967,7 @@ c & d & \frac12c+\frac14d \\ \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] @@ -4059,7 +4051,7 @@ $\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{Code}% @@ -4453,7 +4445,7 @@ Wallis & John & 87 \\ \bottomrule \end{NiceTabular} \end{table} -\end{Code} +\end{Code}% \end{center} @@ -5074,7 +5066,8 @@ environment of LaTeX which only put TeX commands before and after the content.} \medskip \colorbox{yellow!50}{\textbf{New 6.27}}\enskip The key |light-syntax-expanded| has the same behaviour as the key |light-syntax| but the body of the -environment is expanded (in the TeX sens) before being splitted in lines (but +environment is expanded (in the TeX sens\footnote{More precisely, it's a +expansion of type |e| of L3.}) before being splitted in lines (but after the extraction of a potential |\CodeAfter|). @@ -5819,7 +5812,7 @@ using the public variable |\g_nicematrix_code_before_tl|. } } \ExplSyntaxOff -\end{Code} +\end{Code}% @@ -6632,7 +6625,7 @@ with the environment |{NiceMatrixBlock}| and its option |auto-columns-width|. 0 64 -41 1 19 ; \end{pNiceMatrix}$ \emph{\end{NiceMatrixBlock}} -\end{Code} +\end{Code}% \end{small} \medskip @@ -6711,7 +6704,7 @@ composed with the maximal width, thanks to the boolean key \end{pNiceMatrix}$ ... \emph{\end{NiceMatrixBlock}} -\end{Code} +\end{Code}% \end{small} \medskip @@ -6770,7 +6763,7 @@ array can't be broken by a page break. \begin{Code} \setlength{\extrarowheight}{1mm} -\[\begin{NiceMatrix}[ r, last-col=6, code-for-last-col = \scriptstyle \color{blue} ] +\[\begin{NiceMatrix}[r, last-col=6, code-for-last-col = \scriptstyle \color{blue}] 12 & -8 & 7 & 5 & 3 \\ 3 & -18 & 12 & 1 & 4 \\ -3 & -46 & 29 &-2 &-15 \\ @@ -7148,7 +7141,7 @@ parenthesis have been added with |\SubMatrix| in the |\CodeBefore|. fit=~#1}} \end{Verbatim} -\begin{small} +\begin{footnotesize} \begin{Code} \[\begin{NiceArray}{*{6}{c}@{\hspace{6mm}}*{5}{c}}[nullify-dots] \CodeBefore [create-cell-nodes] @@ -7175,8 +7168,8 @@ parenthesis have been added with |\SubMatrix| in the |\CodeBefore|. \CodeAfter \tikz \draw [gray,shorten > = 1mm, shorten < = 1mm] (9-4.north) to [bend left] (4-9.west) ; \end{NiceArray}\] -\end{Code} -\end{small} +\end{Code}% +\end{footnotesize} @@ -7220,7 +7213,7 @@ package, which must be loaded previously). 1 & 7 \\ 1 \end{NiceTabular}} -\end{Code} +\end{Code}% \begin{center} |