texlive[63087] Master/texmf-dist: witharrows (20apr22)
commits+karl at tug.org
commits+karl at tug.org
Wed Apr 20 21:42:55 CEST 2022
Revision: 63087
http://tug.org/svn/texlive?view=revision&revision=63087
Author: karl
Date: 2022-04-20 21:42:55 +0200 (Wed, 20 Apr 2022)
Log Message:
-----------
witharrows (20apr22)
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/source/generic/witharrows/witharrows.ins
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 2022-04-20 19:42:41 UTC (rev 63086)
+++ trunk/Master/texmf-dist/doc/generic/witharrows/witharrows-french.tex 2022-04-20 19:42:55 UTC (rev 63087)
@@ -80,14 +80,26 @@
\end{abstract}
-\vspace{1cm}
-Dans la suite, on décrira l'extension LaTeX \pkg{witharrows} (néanmoins \pkg{witharrows} peut aussi être utilisé en
-plain-TeX : voir à ce sujet p.~\pageref{plain-TeX}). 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}. Les flèches sont tracées avec Tikz et donc plusieurs
-compilations peuvent être nécessaires.
+\vspace{1cm}
+L'extension LaTeX \pkg{witharrows} est entièrement contenue dans le fichier |witharrows.sty|. Ce
+fichier peut être placé dans le répertoire courant ou dans une arborescence |texmf|. Le mieux reste néanmoins
+d'installer \pkg{witharrows} avec une distribution TeX comme MiKTeX, TeX~Live ou MacTeX.
+\medskip
+En fait, \pkg{witharrows} est aussi une extension utilisable avec plain-TeX et dans ce cas, le seul fichier
+nécessaire est le fichier |witharrows.tex| : voir à ce sujet p.~\pageref{plain-TeX}. Dans la suite, on décrira
+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{nicematrix} avec
+l'instruction habituelle : |\usepackage{witharrows}|.
+
+\medskip
+Les flèches sont tracées avec Tikz et donc \textbf{plusieurs compilations peuvent être nécessaires}.\footnote{Si
+ vous utilisez Overleaf, Overleaf effectue automatiquement le nombre de compilations nécessaire.}
+
\bigskip
Cette extension fournit un environnement |{WithArrows}| pour construire des alignements d'équations
avec des flèches pour les explications sur le côté droit.
@@ -243,9 +255,7 @@
\interitem
Il est possible d'utiliser l'option «|text width|» pour contrôler la largeur du texte associé à la
-flèche.\footnote{Il est possible d'éviter les coupures de mots dans ces étiquettes:
-utiliser l'option Tikz «|align = flush left|» en LaTeX et «|align = {flushleft,nothyphenated}|» en
-ConTeXt.}
+flèche.
\newcounter{fnnohyphen}
\setcounter{fnnohyphen}{\thefootnote}
%
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 2022-04-20 19:42:41 UTC (rev 63086)
+++ trunk/Master/texmf-dist/doc/generic/witharrows/witharrows.tex 2022-04-20 19:42:55 UTC (rev 63087)
@@ -6,7 +6,7 @@
%%
%% witharrows.dtx (with options: `plain-TeX')
%%
-%% Copyright (C) 2017-2021 by F. Pantigny
+%% Copyright (C) 2017-2022 by F. Pantigny
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -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.6d}
-\def\myfiledate{2022/01/01}
+\def\myfileversion{2.7}
+\def\myfiledate{2022/04/20}
\input tikz.tex
\input expl3-generic.tex
\usetikzlibrary{arrows.meta,bending}
@@ -121,7 +121,7 @@
{
WithArrows / arrow / .style =
{
- align = left ,
+ align = flush~left ,
auto = left ,
WithArrows / arrow / tips ,
bend~left = 45 ,
Modified: trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx 2022-04-20 19:42:41 UTC (rev 63086)
+++ trunk/Master/texmf-dist/source/generic/witharrows/witharrows.dtx 2022-04-20 19:42:55 UTC (rev 63087)
@@ -15,8 +15,8 @@
%
% \fi
% \iffalse
-\def\myfileversion{2.6d}
-\def\myfiledate{2022/01/01}
+\def\myfileversion{2.7}
+\def\myfiledate{2022/04/20}
%
%
%<*batchfile>
@@ -98,15 +98,29 @@
% \end{abstract}
%
%
-% \vspace{1cm} In this document, we describe the LaTeX extension
-% \pkg{witharrows} (however, \pkg{witharrows} can also be used with plain-TeX:
-% see p.~\pageref{plain-TeX}). This package can be used with |xelatex|,
-% |lualatex|, |pdflatex| but also by the classical workflow
-% |latex|-|dvips|-|ps2pdf| (or Adobe Distiller). This package loads the packages
-% \pkg{l3keys2e}, \pkg{varwidth}, \pkg{tikz} and the Tikz libraries
-% \pkg{arrows.meta} and \pkg{bending}. The arrows are drawn with Tikz and that's
-% why several compilations may be necessary.
+% \vspace{1cm}
+% The package \pkg{witharrows} is entirely contained in the file
+% |witharrows.sty|. This file may be put in the current directory or in a
+% |texmf| tree. However, the best is to install \pkg{witharrows} with a TeX
+% distribution such as MiKTeX, TeX Live or MacTeX.
%
+% \medskip
+% In fact, \pkg{witharrows} may also be used with plain-TeX and, in that case,
+% the only required file is |witharrows.tex|: see p.~\pageref{plain-TeX}. In what
+% follows, we describe the LaTeX package.
+%
+% \medskip
+% This package can be used with |xelatex|, |lualatex|, |pdflatex| but also by
+% the classical workflow |latex|-|dvips|-|ps2pdf| (or Adobe Distiller). This
+% package loads the packages \pkg{l3keys2e}, \pkg{varwidth}, \pkg{tikz} and the
+% Tikz libraries \pkg{arrows.meta} and \pkg{bending}. The final user only has to
+% load the package with the classical instruction: |\usepackage{witharrows}|.
+%
+% \medskip
+% The arrows are drawn with Tikz and that's why \textbf{several compilations may
+% be necessary}.\footnote{If you use Overleaf, Overleaf will do automatically
+% the right number of compilations.}
+%
% \bigskip
% This package provides an environment |{WithArrows}| to construct alignments of
% equations with arrows for the explanations on the right side:
@@ -267,9 +281,7 @@
%
% \interitem
% It's possible to use the Tikz option ``|text width|'' to control the width of
-% the text associated to the arrow.\footnote{It's possible to avoid the
-% hyphenations of the words: use the Tikz option ``|align = flush left|'' in
-% LaTeX and ``|align = {flushleft,nothyphenated}|'' in ConTeXt.}
+% the text associated to the arrow.
% \newcounter{fnnohyphen}
% \setcounter{fnnohyphen}{\thefootnote}
%
@@ -543,7 +555,6 @@
% \begin{Verbatim}
% \begin{DispWithArrows*}[~emphase#format = cCcCc@,
% wrap-lines,
-% tikz = {align = flush left},
% interline=1mm]
% k & \;\le\; & t & \;\le\; & k+1 \\
% \frac{1}{k+1} & \le & \frac{1}{t} & \le & \frac{1}{k}
@@ -556,7 +567,6 @@
% \end{Verbatim}
% \begin{DispWithArrows*}[format = cCcCc,
% wrap-lines,
-% tikz = {align = flush left},
% interline=1mm]
% k & \;\le\; & t & \;\le\; & k+1 \\
% \frac{1}{k+1} & \le & \frac{1}{t} & \le & \frac{1}{k}
@@ -2671,7 +2681,6 @@
%
%
% \medskip
-% We use |\seq_set_map_x:NNn| which has been introduced the 2020/07/16.
% \begin{macrocode}
\msg_new:nnn { witharrows } { expl3~too~old }
{
@@ -2869,7 +2878,7 @@
% |\@ifpackageloaded| in the core of the functions because |\@ifpackageloaded|
% is available only in the preamble.}
% \begin{macrocode}
-\AtBeginDocument
+\AtBeginDocument
{
\clist_map_inline:nn
{
@@ -3031,11 +3040,10 @@
{
WithArrows / arrow / .style =
{
- align = left ,
+ align = flush~left ,
% \end{macrocode}
%
-% We have put the option |align = left| because we want to give the user the
-% possibility of using |\\| in the labels.
+% Before the version 2.7, it was |align = left|.
% \begin{macrocode}
auto = left ,
%<*LaTeX>
@@ -3055,7 +3063,7 @@
% |\WithArrowsOptions| and |{DispWithArrows}|.
% \begin{macrocode}
%<*LaTeX>
-\AtBeginDocument
+\AtBeginDocument
{
\bool_if:NTF \c_@@_amsmath_loaded_bool
{
@@ -3073,8 +3081,9 @@
%
% Nevertheless, we want the extension \pkg{witharrows} available without
% \pkg{amsmath}. That's why we give a definition of |\spread at equation| if
-% \pkg{amsmath} is not loaded (we put the code in a |\AtBeginDocument| because
-% the flag |\c_@@_amsmath_loaded_bool| is itself set in a |\AtBeginDocument|).
+% \pkg{amsmath} is not loaded (we put the code in the hook |begindocument|
+% because the flag |\c_@@_amsmath_loaded_bool| is itself set in the hook
+% |begindocument|).
% \begin{macrocode}
{
%</LaTeX>
@@ -6309,6 +6318,18 @@
node [ anchor = west ]
{
\begin { minipage } { \l_tmpa_dim }
+ \tikz at text@action
+ \pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl
+ \tl_if_eq:NnTF \l_tmpa_tl { \tikz at align@left at header }
+ { \pgfutil at raggedright }
+ {
+ \tl_if_eq:NnTF \l_tmpa_tl { \tikz at align@right at header }
+ { \pgfutil at raggedleft }
+ {
+ \tl_if_eq:NnT \l_tmpa_tl { \tikz at align@center at header }
+ { \centering }
+ }
+ }
#3
\end { minipage }
} ;
@@ -7951,6 +7972,11 @@
%
% Version 2.6d: correction of a bug (cf. question 628461 on TeX StackExchange).
%
+% \subsection*{Changes between 2.6b and 2.7}
+%
+% Correction of a bug: when the key |wrap-lines| was in force, the content of
+% the annotations was not ``flush left'' by default as it should be (but justified).
+%
% \PrintIndex
%
% \tableofcontents
Modified: trunk/Master/texmf-dist/source/generic/witharrows/witharrows.ins
===================================================================
--- trunk/Master/texmf-dist/source/generic/witharrows/witharrows.ins 2022-04-20 19:42:41 UTC (rev 63086)
+++ trunk/Master/texmf-dist/source/generic/witharrows/witharrows.ins 2022-04-20 19:42:55 UTC (rev 63087)
@@ -1,5 +1,5 @@
%%
-%% Copyright (C) 2017-2021 by F. Pantigny
+%% Copyright (C) 2017-2022 by F. Pantigny
%%
%%
%% This file may be distributed and/or modified under the
@@ -17,7 +17,7 @@
\usedir{tex/latex/witharrows}
\preamble
-Copyright (C) 2017-2021 by F. Pantigny
+Copyright (C) 2017-2022 by F. Pantigny
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
Modified: trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty 2022-04-20 19:42:41 UTC (rev 63086)
+++ trunk/Master/texmf-dist/tex/generic/witharrows/witharrows.sty 2022-04-20 19:42:55 UTC (rev 63087)
@@ -6,7 +6,7 @@
%%
%% witharrows.dtx (with options: `LaTeX')
%%
-%% Copyright (C) 2017-2021 by F. Pantigny
+%% Copyright (C) 2017-2022 by F. Pantigny
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -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.6d}
-\def\myfiledate{2022/01/01}
+\def\myfileversion{2.7}
+\def\myfiledate{2022/04/20}
\RequirePackage{tikz}
\usetikzlibrary{arrows.meta,bending}
\RequirePackage{l3keys2e}
@@ -195,7 +195,7 @@
{
WithArrows / arrow / .style =
{
- align = left ,
+ align = flush~left ,
auto = left ,
font = \small \itshape ,
WithArrows / arrow / tips ,
@@ -1598,6 +1598,18 @@
node [ anchor = west ]
{
\begin { minipage } { \l_tmpa_dim }
+ \tikz at text@action
+ \pgfkeysgetvalue { / tikz / node~halign~header } \l_tmpa_tl
+ \tl_if_eq:NnTF \l_tmpa_tl { \tikz at align@left at header }
+ { \pgfutil at raggedright }
+ {
+ \tl_if_eq:NnTF \l_tmpa_tl { \tikz at align@right at header }
+ { \pgfutil at raggedleft }
+ {
+ \tl_if_eq:NnT \l_tmpa_tl { \tikz at align@center at header }
+ { \centering }
+ }
+ }
#3
\end { minipage }
} ;
More information about the tex-live-commits
mailing list.