summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/witharrows
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-08 21:07:10 +0000
committerKarl Berry <karl@freefriends.org>2020-09-08 21:07:10 +0000
commit3741b8b40f8f8c90286ae327cb29eadc441fb84e (patch)
tree13d718edb6f3d277f7306f10cadfaa142b3fe7ac /Master/texmf-dist/doc/generic/witharrows
parent8e729e92f045234de5911140817f9815cecc614f (diff)
witharrows (8sep20)
git-svn-id: svn://tug.org/texlive/trunk@56296 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/witharrows')
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdfbin266688 -> 270033 bytes
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex40
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows.pdfbin638897 -> 643250 bytes
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows.tex38
4 files changed, 55 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
index 3c95de9c427..10b2e831912 100644
--- a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
+++ b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
index 95b3e772566..86b7f660f96 100644
--- a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
+++ b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
@@ -49,8 +49,8 @@
Title = L’extension witharrows ,
Subject = Une extension pour plain-TeX et LaTeX ,
Author = F. Pantigny
+ }
}
-}
\NewDocumentEnvironment {scope} {} {} {}
@@ -468,8 +468,16 @@ la page~\pageref{NestedEnv}.
Jusqu'à présent, nous n'avons utilisé l'environnement |{WithArrows}| qu'avec deux colonnes. Néanmoins, il est
possible de l'utiliser avec un nombre arbitraire de colonnes grâce à l'option |format|. La valeur donnée à cette
option est similaire au préambule d'un environnement |{array}|: il s'agit d'une séquence de lettres |r|, |c| et
-|l|. La valeur initiale de cette option |format| est, en fait, |rl|.
+|l| mais aussi |R|, |C| et |L|.
+\smallskip
+\colorbox{yellow!50}{\textbf{Nouveau 2.6}}\enskip
+Les lettres |R|, |C| et |L| placent des groupes vides |{}| qui permettent un espacement correct lorsque ces
+colonnes contiennent des symboles de type |\mathrel| (comme $=$, $\le$, etc.) ou |\mathbin| (comme $+$, $×$, etc.).
+Ce système est inspiré par l'environnement |{IEEEeqnarray}| de \pkg{IEEEtrantools}.
+
+\smallskip
+La valeur initiale du paramètre |format| est, en fait, |rL|.
\bigskip
Par exemple, si on veut seulement une colonne alignée à gauche, on peut utiliser l'option |format=l|.
@@ -492,7 +500,7 @@ Dans l'exemple suivant, on utilise cinq colonnes toutes centrées (l'environneme
présenté p.~\pageref{DispWithArrows}).
\begin{Verbatim}
-\begin{DispWithArrows*}[~emphase#format = ccccc@,
+\begin{DispWithArrows*}[~emphase#format = cCcCc@,
wrap-lines,
interline=1mm]
k & \;\le\; & t & \;\le\; & k+1 \\
@@ -504,7 +512,7 @@ k & \;\le\; & t & \;\le\; & k+1 \\
\frac{1}{k+1} & \le & \ln(k+1)-\ln(k) & \le & \frac{1}{k}
\end{DispWithArrows*}
\end{Verbatim}
-\begin{DispWithArrows*}[format = ccccc,
+\begin{DispWithArrows*}[format = cCcCc,
wrap-lines,
interline=1mm]
k & \;\le\; & t & \;\le\; & k+1 \\
@@ -2464,13 +2472,13 @@ E & \Longleftrightarrow \frac{(x+4)}3 + \frac{5x+3}5 = 7
\subsection{Boucle numérotée automatique}
Supposons que nous voulions tracer une boucle avec des flèches numérotées. Dans ce but, il est
-possible d'écrire une commande dédiée |\BoucleNumérotée| qui fera le travail quand elle
+possible d'écrire une commande dédiée |\NumberedLoop| qui fera le travail quand elle
sera utilisée dans le |code-after|. Dans l'exemple suivant, nous avons écrit cette commande avec
|\NewDocumentCommand| de \pkg{xparse} et |\foreach| de \pkg{pgffor} (ces deux
extensions sont chargées quand \pkg{witharrows} est chargé.).
\begin{Verbatim}
-\NewDocumentCommande \NombreedLoop {}
+\NewDocumentCommande \NomberedLoop {}
{\foreach \j dans {2,...,\WithArrowsNbLines}
{ \pgfmathtruncatemacro{\i}{\j-1}
\Arrow[rr]{\i}{\j}{\i} }
@@ -2484,7 +2492,7 @@ compteur).
\bigskip
\begin{Verbatim}
-$\begin{WithArrows}[~emphase#code-after = \BoucleNumérotée@]
+$\begin{WithArrows}[~emphase#code-after = \NumberedLoop@]
a.\;& f \text{ est continue sur } E \\
b.\;& f \text{ est continue en } 0 \\
c.\;& f \text{ est bornée sur la sphère unité} \\
@@ -2495,14 +2503,14 @@ e.\;& f \text{ est lipschitzienne}
\bigskip
\begin{scope}
-\NewDocumentCommand \BoucleNumérotée {}
+\NewDocumentCommand \NumberedLoop {}
{\foreach \j in {2,...,\WithArrowsNbLines}
{ \pgfmathtruncatemacro{\i}{\j-1}
\Arrow[rr]{\i}{\j}{\i} }
\Arrow[rr,xoffset=1cm,tikz=<-]{1}{\WithArrowsNbLines}{\WithArrowsNbLines}}
-$\begin{WithArrows}[code-after = \BoucleNumérotée]
+$\begin{WithArrows}[code-after = \NumberedLoop]
a.\;& f \text{ est continue sur } E \\
b.\;& f \text{ est continue en } 0 \\
c.\;& f \text{ est bornée sur la sphère unité} \\
@@ -2523,7 +2531,7 @@ tikz-code = {\draw (~#1) to node {\footnotesize (~#3)} (~#2) ;}
\WithArrowsOptions{tikz-code = {\draw (#1) to node {\footnotesize (#3)} (#2) ;}}
-$\begin{WithArrows}[code-after = \BoucleNumérotée]
+$\begin{WithArrows}[code-after = \NumberedLoop]
a.\;& f \text{ est continue on } E \\
b.\;& f \text{ est continue dans } 0 \\
c.\;& f \text{ est bornée sur la sphère unité} \\
@@ -2537,7 +2545,17 @@ e.\;& f \text{ est lipschitzienne}
\section*{Autre documentation}
Le document |witharrows.pdf| (fourni avec l'extension \pkg{witharrows}) contient une traduction anglaise de la
-documentation ici présente, ainsi que le code source commenté et un historique des versions.
+documentation ici présente, ainsi que le code source commenté et un historique des versions.
+
+
+\bigskip
+Les versions successives du fichier |witharrows.sty| fournies par TeXLive sont disponibles sur le serveur
+\textsc{svn} de TeXLive :
+
+{
+\small
+\url{https:www.tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/nicematrix/witharrows.sty}
+}
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf b/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
index 3d89c2d2429..7b350f06316 100644
--- a/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
+++ b/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows.tex b/Master/texmf-dist/doc/generic/witharrows/witharrows.tex
index 2b94910abee..3e806744d6e 100644
--- a/Master/texmf-dist/doc/generic/witharrows/witharrows.tex
+++ b/Master/texmf-dist/doc/generic/witharrows/witharrows.tex
@@ -18,8 +18,8 @@
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%%
-\def\myfileversion{2.5.1}
-\def\myfiledate{2020/07/28}
+\def\myfileversion{2.6}
+\def\myfiledate{2020/09/08}
\input tikz.tex
\input expl3-generic.tex
\usetikzlibrary{arrows.meta,bending}
@@ -71,10 +71,19 @@
\sort_return_same:
}
}
+\cs_new_protected:Npn \__witharrows_convert_to_str_seq:N #1
+ {
+ \seq_clear:N \l_tmpa_seq
+ \seq_map_inline:Nn #1
+ {
+ \seq_put_left:Nx \l_tmpa_seq { \tl_to_str:n { ##1 } }
+ }
+ \seq_set_eq:NN #1 \l_tmpa_seq
+ }
\cs_new_protected:Npn \__witharrows_set_seq_of_str_from_clist:Nn #1 #2
{
\seq_set_from_clist:Nn #1 { #2 }
- \seq_set_map:NNn #1 #1 { \tl_to_str:n { ##1 } }
+ \__witharrows_convert_to_str_seq:N #1
}
\cs_new_protected:Npn \__witharrows_save:N #1
{
@@ -327,7 +336,7 @@
\tl_if_empty:nTF { #1 }
{ \__witharrows_error:n { Invalid~option~format } }
{
- \regex_match:nnTF { \A[rcl]*\Z } { #1 }
+ \regex_match:nnTF { \A[rclRCL]*\Z } { #1 }
{ \tl_set:Nn \l__witharrows_format_str { #1 } }
{ \__witharrows_error:n { Invalid~option~format } }
} ,
@@ -592,7 +601,7 @@
\int_zero_new:N \l__witharrows_pos_of_arrow_int
\int_zero_new:N \l__witharrows_jump_int
\int_set:Nn \l__witharrows_jump_int 1
- \str_set:Nn \l__witharrows_format_str { rl }
+ \str_set:Nn \l__witharrows_format_str { rL }
\skip_zero:N \l__witharrows_interline_skip
\tl_clear_new:N \l__witharrows_code_before_tl
\tl_clear_new:N \l__witharrows_code_after_tl
@@ -612,7 +621,7 @@
{
\seq_pop_right:NNTF \l__witharrows_format_seq \l__witharrows_type_col_str
{
- \use:x
+ \use:e
{
\int_gdecr:N \g__witharrows_col_int
\__witharrows_construct_halign:
@@ -621,21 +630,26 @@
\cs_set_eq:cN { \l__witharrows_command_name_str } \__witharrows_Arrow
}
\str_if_eq:VnT \l__witharrows_type_col_str { c } \hfil
+ \str_if_eq:VnT \l__witharrows_type_col_str { C } \hfil
\str_if_eq:VnT \l__witharrows_type_col_str { r } \hfill
+ \str_if_eq:VnT \l__witharrows_type_col_str { R } \hfill
\int_gincr:N \g__witharrows_col_int
\int_gset:Nn \g__witharrows_static_col_int { \int_use:N \g__witharrows_col_int }
\c_math_toggle_token
- {
- { }
- \bool_if:NT \l__witharrows_displaystyle_bool \displaystyle
- ####
- }
+ \str_if_eq:VnT \l__witharrows_type_col_str { C } { { } }
+ \str_if_eq:VnT \l__witharrows_type_col_str { L } { { } }
+ \bool_if:NT \l__witharrows_displaystyle_bool \displaystyle
+ ##
+ \str_if_eq:VnT \l__witharrows_type_col_str { C } { { } }
+ \str_if_eq:VnT \l__witharrows_type_col_str { R } { { } }
\c_math_toggle_token
\int_compare:nNnTF \g__witharrows_col_int = \l__witharrows_nb_cols_int
- { \__witharrows_construct_nodes: }
+ \__witharrows_construct_nodes:
{
\str_if_eq:VnT \l__witharrows_type_col_str { l } \hfil
+ \str_if_eq:VnT \l__witharrows_type_col_str { L } \hfil
\str_if_eq:VnT \l__witharrows_type_col_str { c } \hfil
+ \str_if_eq:VnT \l__witharrows_type_col_str { C } \hfil
\bool_if:NT \l__witharrows_in_DispWithArrows_bool { \tabskip = \c_zero_skip }
&
}