summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-15 20:36:40 +0000
committerKarl Berry <karl@freefriends.org>2023-02-15 20:36:40 +0000
commit865e4bc1e1b0ee68b7c96f02feef1d26ac2747f6 (patch)
tree3b07a2889d2ff6ab1cccd522d38a2aa75c90dac5
parent2b8fc6329456175f2e4195a706ef651d7df9fe63 (diff)
witharrows (15feb23)
git-svn-id: svn://tug.org/texlive/trunk@65841 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdfbin272837 -> 278782 bytes
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex23
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows.pdfbin559421 -> 559782 bytes
-rw-r--r--Master/texmf-dist/doc/generic/witharrows/witharrows.tex8
-rw-r--r--Master/texmf-dist/source/generic/witharrows/witharrows.dtx27
-rw-r--r--Master/texmf-dist/tex/generic/witharrows/witharrows.sty9
6 files changed, 34 insertions, 33 deletions
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
index 01445044345..3ed2d0f411d 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 cf2c940912a..4e81cb1194f 100644
--- a/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
+++ b/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
@@ -94,7 +94,7 @@ l'extension LaTeX.
\medskip
Cette extension peut être utilisée avec |xelatex|, |lualatex|, |pdflatex| mais aussi avec le cheminement classique
|latex|-|dvips|-|ps2pdf| (ou Adobe Distiller). L'extension \pkg{witharrows} charge les extensions \pkg{l3keys2e},
-\pkg{xparse}, \pkg{tikz}, \pkg{varwidth} ainsi que les bibliothèques Tikz \pkg{arrows.meta} et \pkg{bending}. L'utilisateur final n'a qu'à charger l'extension \pkg{witharrows} avec
+\pkg{tikz}, \pkg{varwidth} ainsi que les bibliothèques Tikz \pkg{arrows.meta} et \pkg{bending}. L'utilisateur final n'a qu'à charger l'extension \pkg{witharrows} avec
l'instruction habituelle : |\usepackage{witharrows}|.
\medskip
@@ -281,7 +281,7 @@ A & = \bigl((a+b)+1\bigr)^2
\bigskip
Dans les environnements |{DispWithArrows}| et |{DispWithArrows*}|, il y a une
option |wrap-lines|. Lorsque cette option est utilisée, les lignes des étiquettes sont
-automatiquement coupées sur la marge droite : voir p.~\pageref{wrap-lines}.
+automatiquement coupées sur la marge droite : voir p.~\pageref{DispWithArrows}.
\interitem
Si on veut changer la fonte du texte associé à une flèche, on peut, bien entendu, placer une commande comme
@@ -1317,7 +1317,7 @@ P & \vartriangleleft Q
\end{WithArrows}\]
\medskip
-The package \pkg{witharrows} fournit quelques outils pour faciliter l'utilisation de ces nœuds :
+L'extension \pkg{witharrows} fournit quelques outils pour faciliter l'utilisation de ces nœuds :
\begin{itemize}
\item la commande |\WithArrowsLastEnv| donne le numéro du dernier environnement de niveau~$0$ (c'est-à-dire
non imbriqué dans un autre environnement de \pkg{witharrows}) ;
@@ -1633,7 +1633,7 @@ S_{2(p+1)}
\bigskip
Les environnements |{DispWithArrows}| et |{DispWithArrows*}| fournissent également une option
-|wrap-lines|. Avec cette option, les lignes de l'étiquette sont automatiquement coupées à droite.\footnotemark[\thefnnohyphen]\label{wrap-lines}
+|wrap-lines|. Avec cette option, les lignes de l'étiquette sont automatiquement coupées à droite.
\begin{Verbatim}
\begin{DispWithArrows*}[displaystyle,~emphase#wrap-lines@]
@@ -2169,7 +2169,7 @@ détectées (par exemple, si une flèche arrive après la dernière ligne de l'e
\bigskip
\subsection{Note pour les utilisateurs de AUCTeX}
-Dans un éditeur de texte paramétré par éditer du LaTeX, les environnements |{DispWithArrows}| et
+Dans un éditeur de texte paramétré pour éditer du LaTeX, les environnements |{DispWithArrows}| et
|{DispWithArrows*}| devraient être formatés comme l'environnement |{equation}| de LaTeX c'est-à-dire avec un
formatage adapté au mode mathématique.
@@ -2200,7 +2200,7 @@ Par exemple, vous pouvez définir un environnement |{DWA}| qui va être un alias
Si vous utilisez cet environnement |{DWA}| en mode mathématique, vous aurez le message d'erreur suivant :
\begin{BVerbatim}
-L'environnement {DWA} should be used only outside math mode.
+The environment {DWA} should be used only outside math mode.
\end{BVerbatim}
\interitem
@@ -2469,7 +2469,7 @@ plus courte que la rangée d'arrivée. Cet exemple nécessite l'extension \pkg{c
~emphase# font = \tiny }]@
~emphase# let \p1 = (~#1),@
~emphase# \p2 = (~#2)@
- ~emphase# dans \ifdim \x1 > \x2@
+ ~emphase# and \ifdim \x1 > \x2@
~emphase# (\p1) -- node {~#3} (\x1,\y2) -- (\p2)@
~emphase# \else@
~emphase# (\p1) -- (\x2,\y1) -- node {~#3} (\p2)@
@@ -2520,12 +2520,11 @@ E & \Longleftrightarrow \frac{(x+4)}3 + \frac{5x+3}5 = 7
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 |\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é.).
+|\foreach| de \pkg{pgffor} (cette extension est chargée quand \pkg{witharrows} est chargé.).
\begin{Verbatim}
-\NewDocumentCommande \NomberedLoop {}
- {\foreach \j dans {2,...,\WithArrowsNbLines}
+\NewDocumentCommand \NomberedLoop {}
+ {\foreach \j in {2,...,\WithArrowsNbLines}
{ \pgfmathtruncatemacro{\i}{\j-1}
\Arrow[rr]{\i}{\j}{\i} }
\Arrow[rr,xoffset=1cm,tikz=<-]{1}{\WithArrowsNbLines}{\WithArrowsNbLines}}
@@ -2594,6 +2593,6 @@ Le document |witharrows.pdf| (fourni avec l'extension \pkg{witharrows}) contient
documentation ici présente, ainsi que le code source commenté et un historique des versions.
-
+\tableofcontents
\end{document}
diff --git a/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf b/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
index 2cae02ea86a..c04e447231f 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 09477d5d734..dace0233931 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.8}
-\def\myfiledate{2023/01/01}
+\def\myfileversion{2.8a}
+\def\myfiledate{2023/02/14}
\input tikz.tex
\input expl3-generic.tex
\usetikzlibrary{arrows.meta,bending}
@@ -1320,10 +1320,10 @@
\cs_generate_variant:Nn \__witharrows_draw_arrow:nnn { n n o }
\tl_const:Nn \c__witharrows_tikz_code_wrap_lines_tl
{
+ \pgfset { inner~sep = 0pt}
\draw ( #1 ) to node ( __witharrows_label ) { } ( #2 ) ;
\pgfpointanchor { wa - \l__witharrows_prefix_str - __witharrows_label } { west }
- \dim_set:Nn \l_tmpa_dim
- { \g__witharrows_right_x_dim - \pgf@x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g__witharrows_right_x_dim - \pgf@x - 0.3333 ex }
\path \pgfextra { \tl_gset:Nx \g_tmpa_tl \tikz@text@width } ;
\tl_if_empty:NF \g_tmpa_tl
{
diff --git a/Master/texmf-dist/source/generic/witharrows/witharrows.dtx b/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
index 6c28c3c7569..80573b1d6fc 100644
--- a/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
+++ b/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
@@ -15,8 +15,8 @@
%
% \fi
% \iffalse
-\def\myfileversion{2.8}
-\def\myfiledate{2023/01/01}
+\def\myfileversion{2.8a}
+\def\myfiledate{2023/02/14}
%
%
%<*batchfile>
@@ -2704,7 +2704,7 @@ version 2005/12/01 or later.
%
% \bigskip
% Then, we can give the traditional declaration of a package written with
-% |expl3|:
+% |L3|:
% \begin{macrocode}
%<*LaTeX>
\RequirePackage{l3keys2e}
@@ -2978,12 +2978,12 @@ version 2005/12/01 or later.
% \end{macrocode}
%
% \bigskip
-% The command |\@@_save:N| saves a \pkg{expl3} variable by creating a global
+% The command |\@@_save:N| saves a L3 variable by creating a global
% version of the variable. For a variable named |\l_|\texttt{\slshape
% name}|_|\texttt{\slshape type}, the corresponding global variable will be
% named |\g_|\texttt{\slshape name}|_|\texttt{\slshape type}. The type of the
% variable is determinated by the suffix \texttt{\slshape type} and is used to
-% apply the corresponding \pkg{expl3} commands.
+% apply the corresponding L3 commands.
% \begin{macrocode}
\cs_new_protected:Npn \@@_save:N #1
{
@@ -3007,7 +3007,7 @@ version 2005/12/01 or later.
% \end{macrocode}
%
% \medskip
-% The command |\@@_restore:N| affects to the \pkg{expl3} variable the value of
+% The command |\@@_restore:N| affects to the L3 variable the value of
% the (previously) set value of the corresponding \emph{global} variable.
% \begin{macrocode}
\cs_new_protected:Npn \@@_restore:N #1
@@ -4816,7 +4816,7 @@ version 2005/12/01 or later.
% The command |\MultiArrow| is available in |code-after|, and we have a special
% version of |\Arrow|, called ``|\Arrow| in |code-after|'' in the
% documentation.\footnote{As of now, |\MultiArrow| has no option, and that's
-% why its internal name is a name of \pkg{expl3} with the signature |:nn|
+% why its internal name is a name of L3 with the signature |:nn|
% whereas |\Arrow| in |code-after| provides options and has the name of a
% function defined with |\NewDocumentCommand|.}
% \begin{macrocode}
@@ -5104,7 +5104,7 @@ version 2005/12/01 or later.
}
}
% \end{macrocode}
-% According to the documentation of \pkg{expl3}, the previous addition in
+% According to the documentation of L3, the previous addition in
% ``|#1 + \l_@@_interline_skip|'' is really an addition of skips (=glues).
%
%
@@ -6410,6 +6410,7 @@ version 2005/12/01 or later.
% \begin{macrocode}
\tl_const:Nn \c_@@_tikz_code_wrap_lines_tl
{
+ \pgfset { inner~sep = 0pt}
% \end{macrocode}
% First, we draw the arrow without the label.
% \begin{macrocode}
@@ -6424,8 +6425,7 @@ version 2005/12/01 or later.
% Here is the use of |\g_@@_right_x_dim| which has been computed previously with
% the |v|-nodes.
% \begin{macrocode}
- \dim_set:Nn \l_tmpa_dim
- { \g_@@_right_x_dim - \pgf@x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g_@@_right_x_dim - \pgf@x - 0.3333 ex }
% \end{macrocode}
% We retrieve in |\g_tmpa_tl| the current value of the Tikz parameter
% ``|text width|''.\footnote{In fact, it's not the current value of
@@ -6454,6 +6454,7 @@ version 2005/12/01 or later.
%<*LaTeX>
node [ anchor = west ]
{
+ \skip_horizontal:n { 0.3333 ex }
\begin { minipage } { \l_tmpa_dim }
\tikz@text@action
\pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl
@@ -6558,7 +6559,7 @@ version 2005/12/01 or later.
{ final } \l_tmpa_tl
% \end{macrocode}
% We recall that |\prop_get:cnN| retrieves token lists (here |\l_tmpa_tl| and
-% |\l_tmpb_tl|). We don't need to do an explicit conversion in \pkg{expl3}
+% |\l_tmpb_tl|). We don't need to do an explicit conversion in L3
% integers because such token lists can be used directly in |\int_compare:nNnTF|.
% \begin{macrocode}
\prop_get:cnN
@@ -6871,7 +6872,7 @@ version 2005/12/01 or later.
\cs_new_protected:Npn \@@_MultiArrow_i:nn #1 #2
{
% \end{macrocode}
-% That's why we construct a ``clist'' of \pkg{expl3} from the specification of
+% That's why we construct a ``clist'' of L3 from the specification of
% list given by the user. The construction of the ``clist'' must be global in
% order to exit the |\foreach| and that's why we will construct the list in
% |\g_tmpa_clist|.
@@ -6897,7 +6898,7 @@ version 2005/12/01 or later.
}
% \end{macrocode}
% We extract the minimum in |\l_tmpa_tl| (it must be an integer but we store it
-% in a token list of \pkg{expl3}).
+% in a token list of L3).
% \begin{macrocode}
\clist_pop:NN \g_tmpa_clist \l_tmpa_tl
% \end{macrocode}
diff --git a/Master/texmf-dist/tex/generic/witharrows/witharrows.sty b/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
index f4a208a7f1c..1d2931ffc84 100644
--- a/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
+++ b/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
@@ -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.8}
-\def\myfiledate{2023/01/01}
+\def\myfileversion{2.8a}
+\def\myfiledate{2023/02/14}
\RequirePackage{tikz}
\usetikzlibrary{arrows.meta,bending}
\RequirePackage{l3keys2e}
@@ -1644,10 +1644,10 @@
\cs_generate_variant:Nn \__witharrows_draw_arrow:nnn { n n o }
\tl_const:Nn \c__witharrows_tikz_code_wrap_lines_tl
{
+ \pgfset { inner~sep = 0pt}
\draw ( #1 ) to node ( __witharrows_label ) { } ( #2 ) ;
\pgfpointanchor { wa - \l__witharrows_prefix_str - __witharrows_label } { west }
- \dim_set:Nn \l_tmpa_dim
- { \g__witharrows_right_x_dim - \pgf@x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g__witharrows_right_x_dim - \pgf@x - 0.3333 ex }
\path \pgfextra { \tl_gset:Nx \g_tmpa_tl \tikz@text@width } ;
\tl_if_empty:NF \g_tmpa_tl
{
@@ -1660,6 +1660,7 @@
\path ( __witharrows_label.west )
node [ anchor = west ]
{
+ \skip_horizontal:n { 0.3333 ex }
\begin { minipage } { \l_tmpa_dim }
\tikz@text@action
\pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl