texlive[65841] Master/texmf-dist: witharrows (15feb23)
commits+karl at tug.org
commits+karl at tug.org
Wed Feb 15 21:36:40 CET 2023
Revision: 65841
http://tug.org/svn/texlive?view=revision&revision=65841
Author: karl
Date: 2023-02-15 21:36:40 +0100 (Wed, 15 Feb 2023)
Log Message:
-----------
witharrows (15feb23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.tex
trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
Modified: trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex 2023-02-15 15:14:20 UTC (rev 65840)
+++ trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex 2023-02-15 20:36:40 UTC (rev 65841)
@@ -94,7 +94,7 @@
\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 @@
\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 @@
\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 @@
\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 @@
\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 @@
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 @@
~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 @@
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 @@
documentation ici présente, ainsi que le code source commenté et un historique des versions.
+\tableofcontents
-
\end{document}
Modified: trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.tex 2023-02-15 15:14:20 UTC (rev 65840)
+++ trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.tex 2023-02-15 20:36:40 UTC (rev 65841)
@@ -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 at x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g__witharrows_right_x_dim - \pgf at x - 0.3333 ex }
\path \pgfextra { \tl_gset:Nx \g_tmpa_tl \tikz at text@width } ;
\tl_if_empty:NF \g_tmpa_tl
{
Modified: trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx 2023-02-15 15:14:20 UTC (rev 65840)
+++ trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx 2023-02-15 20:36:40 UTC (rev 65841)
@@ -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 @@
%
% \bigskip
% Then, we can give the traditional declaration of a package written with
-% |expl3|:
+% |L3|:
% \begin{macrocode}
%<*LaTeX>
\RequirePackage{l3keys2e}
@@ -2978,12 +2978,12 @@
% \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 @@
% \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 @@
% 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 @@
}
}
% \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 @@
% \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 @@
% 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 at x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g_@@_right_x_dim - \pgf at 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 @@
%<*LaTeX>
node [ anchor = west ]
{
+ \skip_horizontal:n { 0.3333 ex }
\begin { minipage } { \l_tmpa_dim }
\tikz at text@action
\pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl
@@ -6558,7 +6559,7 @@
{ 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 @@
\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 @@
}
% \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}
Modified: trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty 2023-02-15 15:14:20 UTC (rev 65840)
+++ trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty 2023-02-15 20:36:40 UTC (rev 65841)
@@ -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 at x - \pgfkeysvalueof { / pgf / inner~xsep } }
+ \dim_set:Nn \l_tmpa_dim { \g__witharrows_right_x_dim - \pgf at x - 0.3333 ex }
\path \pgfextra { \tl_gset:Nx \g_tmpa_tl \tikz at 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 at text@action
\pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl
More information about the tex-live-commits
mailing list.