summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
Diffstat (limited to 'macros')
-rw-r--r--macros/generic/witharrows/README.md8
-rw-r--r--macros/generic/witharrows/witharrows-french.pdfbin253675 -> 257959 bytes
-rw-r--r--macros/generic/witharrows/witharrows-french.tex733
-rw-r--r--macros/generic/witharrows/witharrows.dtx387
-rw-r--r--macros/generic/witharrows/witharrows.pdfbin577204 -> 587398 bytes
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-english/CHANGES4
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english-sample.pdfbin96433 -> 95502 bytes
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.dtx147
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.ins2
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.pdfbin547119 -> 547331 bytes
-rw-r--r--macros/latex/contrib/datetime2/CHANGES4
-rw-r--r--macros/latex/contrib/datetime2/README4
-rw-r--r--macros/latex/contrib/datetime2/datetime2.dtx33
-rw-r--r--macros/latex/contrib/datetime2/datetime2.ins4
-rw-r--r--macros/latex/contrib/datetime2/datetime2.pdfbin685060 -> 685020 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-babel.pdfbin72937 -> 73269 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-calc.pdfbin28801 -> 28801 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-filedate.pdfbin17006 -> 16654 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-hyperref.pdfbin62797 -> 62238 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-journal.pdfbin100517 -> 100536 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-styles.pdfbin53846 -> 53924 bytes
-rw-r--r--macros/latex/contrib/datetime2/samples/datetime2-sample-xe.pdfbin7343 -> 7018 bytes
-rw-r--r--macros/latex/contrib/l3kernel/CHANGELOG.md19
-rw-r--r--macros/latex/contrib/l3kernel/README.md2
-rw-r--r--macros/latex/contrib/l3kernel/expl3.dtx4
-rw-r--r--macros/latex/contrib/l3kernel/expl3.pdfbin585016 -> 584850 bytes
-rw-r--r--macros/latex/contrib/l3kernel/interface3.pdfbin1534391 -> 1534739 bytes
-rw-r--r--macros/latex/contrib/l3kernel/interface3.tex2
-rw-r--r--macros/latex/contrib/l3kernel/l3alloc.dtx8
-rw-r--r--macros/latex/contrib/l3kernel/l3basics.dtx10
-rw-r--r--macros/latex/contrib/l3kernel/l3bootstrap.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3box.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3candidates.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3clist.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3coffins.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3color-base.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3debug.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3deprecation.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3doc.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3docstrip.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3docstrip.pdfbin263427 -> 263278 bytes
-rw-r--r--macros/latex/contrib/l3kernel/l3expan.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3file.dtx43
-rw-r--r--macros/latex/contrib/l3kernel/l3final.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3flag.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-assign.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-aux.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-basics.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-convert.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-expo.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-extended.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-logic.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-parse.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-random.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-round.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-traps.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp-trig.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fp.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3fparray.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3int.dtx13
-rw-r--r--macros/latex/contrib/l3kernel/l3intarray.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3kernel-functions.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3keys.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3legacy.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3luatex.dtx29
-rw-r--r--macros/latex/contrib/l3kernel/l3msg.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3names.dtx33
-rw-r--r--macros/latex/contrib/l3kernel/l3prefixes.pdfbin59064 -> 59064 bytes
-rw-r--r--macros/latex/contrib/l3kernel/l3prg.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3prop.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3quark.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3regex.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3seq.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3skip.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3sort.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3str-convert.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3str.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3styleguide.pdfbin280134 -> 279983 bytes
-rw-r--r--macros/latex/contrib/l3kernel/l3styleguide.tex2
-rw-r--r--macros/latex/contrib/l3kernel/l3syntax-changes.pdfbin227863 -> 227703 bytes
-rw-r--r--macros/latex/contrib/l3kernel/l3syntax-changes.tex2
-rw-r--r--macros/latex/contrib/l3kernel/l3sys.dtx6
-rw-r--r--macros/latex/contrib/l3kernel/l3term-glossary.pdfbin186644 -> 186491 bytes
-rw-r--r--macros/latex/contrib/l3kernel/l3term-glossary.tex2
-rw-r--r--macros/latex/contrib/l3kernel/l3tl-analysis.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3tl.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3token.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/l3unicode.dtx2
-rw-r--r--macros/latex/contrib/l3kernel/source3.pdfbin5685304 -> 5696096 bytes
-rw-r--r--macros/latex/contrib/l3kernel/source3.tex2
-rw-r--r--macros/latex/contrib/onedown/ODw-danish.trsl8
-rw-r--r--macros/latex/contrib/onedown/ODw-dutch.trsl10
-rw-r--r--macros/latex/contrib/onedown/ODw-english.trsl2
-rw-r--r--macros/latex/contrib/onedown/ODw-fallback.trsl2
-rw-r--r--macros/latex/contrib/onedown/ODw-french.trsl6
-rw-r--r--macros/latex/contrib/onedown/ODw-german.trsl8
-rw-r--r--macros/latex/contrib/onedown/ODw-norwegian.trsl8
-rw-r--r--macros/latex/contrib/onedown/ODw-spanish.trsl160
-rw-r--r--macros/latex/contrib/onedown/ODw-swedish.trsl2
-rw-r--r--macros/latex/contrib/onedown/ODw-turkish.trsl2
-rw-r--r--macros/latex/contrib/onedown/README13
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-examples.pdfbin847441 -> 0 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-examples.tex31
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-ref.pdfbin210831 -> 0 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-ref.tex63
-rw-r--r--macros/latex/contrib/onedown/onedown.dtx116
-rw-r--r--macros/latex/contrib/onedown/onedown.pdfbin1010445 -> 1025146 bytes
-rw-r--r--macros/latex/contrib/xkcdcolors/README.md3
-rw-r--r--macros/latex/contrib/xkcdcolors/lppl-1-3c_license.txt416
-rw-r--r--macros/latex/contrib/xkcdcolors/xkcdcolors-manual.pdfbin208855 -> 208351 bytes
-rw-r--r--macros/latex/contrib/xkcdcolors/xkcdcolors-manual.tex14
-rw-r--r--macros/latex/contrib/xkcdcolors/xkcdcolors.sty20
112 files changed, 1793 insertions, 684 deletions
diff --git a/macros/generic/witharrows/README.md b/macros/generic/witharrows/README.md
index fa5444c5e1..a8453ea275 100644
--- a/macros/generic/witharrows/README.md
+++ b/macros/generic/witharrows/README.md
@@ -1,8 +1,8 @@
# Readme for the package witharrows
-Author : F. Pantigny (`fpantigny@wanadoo.fr`).
+Author: F. Pantigny (`fpantigny@wanadoo.fr`).
-CTAN page : `https://ctan.org/pkg/witharrows`
+CTAN page: `https://ctan.org/pkg/witharrows`
## License
The extension `witharrows` for TeX and LaTeX is distributed under the LPPL 1.3 license.
@@ -27,6 +27,6 @@ For a manual installation:
The files `witharrows.sty` and `witharrows.tex` will be generated.
-The file `witharrows.sty` is the only file necessary to use the extension `witharrows` with LaTeX (with `\usepakage{witharrows}`).
+The file `witharrows.sty` is the only file necessary to use the extension `witharrows` with LaTeX (with `\usepackage{witharrows}`).
-The file `witharrows.tex` is the only file necessary to use the extension `witharrows` with plain-TeX (with `\input{witharrows.tex}`).
+The file `witharrows.tex` is the only file necessary to use the extension `witharrows` with plain-TeX (with `\input{witharrows}`).
diff --git a/macros/generic/witharrows/witharrows-french.pdf b/macros/generic/witharrows/witharrows-french.pdf
index dfc63d2609..5460b3fb46 100644
--- a/macros/generic/witharrows/witharrows-french.pdf
+++ b/macros/generic/witharrows/witharrows-french.pdf
Binary files differ
diff --git a/macros/generic/witharrows/witharrows-french.tex b/macros/generic/witharrows/witharrows-french.tex
index 9d3f57b5b4..1c2f8481c8 100644
--- a/macros/generic/witharrows/witharrows-french.tex
+++ b/macros/generic/witharrows/witharrows-french.tex
@@ -2,6 +2,7 @@
\documentclass[dvipsnames]{article}% dvipsnames est pour xcolor (chargé par Tikz)
\usepackage{xltxtra}
\usepackage[french]{babel}
+\frenchsetup{og = « , fg = »}
\usepackage[xetex]{geometry}
\geometry{left=2.8cm,right=2.8cm,top=2.5cm,bottom=2.5cm,papersize={21cm,29.7cm}}
@@ -17,13 +18,22 @@
\usetikzlibrary{calc}
\usepackage[only,llbracket,rrbracket]{stmaryrd}
+% We use \MakeShortVerb of shortvrb and not \DefineShortVrb of fancyvrb
+% because we don't want the contents of short verbatim colored in gray
+\usepackage{shortvrb}
+\MakeShortVerb{\|}
+
+
\usepackage{fancyvrb}
\fvset{commandchars=\~\#\@,formatcom={\color{gray}}}
+
\usepackage{titlesec}
\titlespacing*{\section}{0pt}{6.5ex plus 1ex minus .2ex}{4.3ex plus .2ex}
\titlespacing*{\subsection}{0pt}{4.5ex plus 1ex minus .2ex}{2ex plus .2ex}
+\usepackage{fncylab} % à supprimer en 2020
+\labelformat{equation}{(#1)}
\def\interitem{\vskip 7mm plus 2 mm minus 3mm}
\def\emphase{\bgroup\color{RoyalPurple}\let\next=}
@@ -50,6 +60,7 @@
\begin{document}
+
\VerbatimFootnotes
\title{L'extension \pkg{witharrows} pour plain-TeX et LaTeX\thanks{Ce document correspond à la
@@ -59,8 +70,8 @@ version~\myfileversion\space de \pkg{witharrows}, à la date du~\myfiledate.}}
\maketitle
\begin{abstract}
-L'extension \pkg{witharrows} fournit des environments \verb|{WithArrows}| et
-\verb|{DispWithArrows}| similaires aux environnements \verb|{aligned}| et \verb|{align}| de
+L'extension \pkg{witharrows} fournit des environments |{WithArrows}| et
+|{DispWithArrows}| similaires aux environnements |{aligned}| et |{align}| de
l'\pkg{amsmath} mais avec la possibilité de dessiner des flèches sur le côté droit.
Ces flèches sont habituellement utilisées pour donner des explications concernant
le calcul mathématique présenté.
@@ -69,14 +80,14 @@ le calcul mathématique présenté.
\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 \verb|xelatex|,
-\verb|lualatex|, \verb|pdflatex| mais aussi avec le cheminement classique \verb|latex|-\verb|dvips|-\verb|ps2pdf|
+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{expl3}, \pkg{xparse}, \pkg{tikz}
ainsi que les extensions Tikz \pkg{arrows.meta} et \pkg{bending}. Les flèches sont tracées avec Tikz et donc
plusieurs compilations peuvent être nécessaires.
\bigskip
-Cette extension fournit un environnement \verb|{WithArrows}| pour construire des alignements d'équations
+Cette extension fournit un environnement |{WithArrows}| pour construire des alignements d'équations
avec des flèches pour les explications sur le côté droit.
\begin{Verbatim}
@@ -94,24 +105,23 @@ A & = (a+1)^2 \Arrow{on développe} \\
\medskip
-La flèche a été tracée avec la commande \verb|\Arrow| dans la rangée dont la flèche part. La commande \verb|\Arrow|
+La flèche a été tracée avec la commande |\Arrow| dans la rangée dont la flèche part. La commande |\Arrow|
doit être utilisée dans la seconde colonne (le mieux est de la mettre à la fin de la ligne comme dans l'exemple
précédent).
\medskip
-Comme on le voit, l'environnement \verb|{WithArrows}| est proche de l'environnement
-\verb|{aligned}| de l'\pkg{amsmath}. L'extension \pkg{witharrows}
-propose aussi un environnement \verb|{DispWithArrows}| qui est similaire à l'environnement \verb|{align}| de
-l'\pkg{amsmath}: cf. p. \pageref{DispWithArrows}.
+Comme on le voit, l'environnement |{WithArrows}| est proche de l'environnement |{aligned}| de l'\pkg{amsmath}.
+L'extension \pkg{witharrows} propose aussi un environnement |{DispWithArrows}| qui est similaire à l'environnement
+|{align}| de l'\pkg{amsmath}: cf. p. \pageref{DispWithArrows}.
\section{Options pour la forme des flèches}
-La commande \verb|\Arrow| a plusieurs options. Ces options peuvent être placées entre crochets, avant, ou après,
+La commande |\Arrow| a plusieurs options. Ces options peuvent être placées entre crochets, avant, ou après,
l'argument obligatoire.
-L'option \verb|jump| indique le nombre\footnote{Il n'est pas possible de donner une valeur négative à \verb|jump|.
+L'option |jump| indique le nombre\footnote{Il n'est pas possible de donner une valeur négative à |jump|.
Voir plus loin (p.~\pageref{Backwards}) la manière de tracer une flèche qui remonte.} de rangées que la flèche doit sauter (la valeur par défaut est, bien
entendu,~$1$).
@@ -147,8 +157,8 @@ A & = \bigl((a+b)+1\bigr)^2 \Arrow{}\Arrow{}[jump=2] \\
\end{WithArrows}$
\interitem
-L'option \verb|xoffset| décale la flèche vers la droite (habituellement, on ne souhaite pas que les flèches soient
-collées au texte). La valeur par défaut de \verb|xoffset| est de $3$~mm.
+L'option |xoffset| décale la flèche vers la droite (habituellement, on ne souhaite pas que les flèches soient
+collées au texte). La valeur par défaut de |xoffset| est de $3$~mm.
\begin{Verbatim}
$\begin{WithArrows}
A & = \bigl((a+b)+1\bigr)^2
@@ -165,8 +175,8 @@ A & = \bigl((a+b)+1\bigr)^2
\interitem
-Les flèches sont tracées avec Tikz. C'est pourquoi la commande \verb|\Arrow| a une option
-\verb|tikz| qui peut être utilisée pour donner à la flèche (en fait, à la commande \verb|\path| de
+Les flèches sont tracées avec Tikz. C'est pourquoi la commande |\Arrow| a une option
+|tikz| qui peut être utilisée pour donner à la flèche (en fait, à la commande |\path| de
Tikz) les options proposées par Tikz pour une telle flèche. L'exemple suivant fournit une flèche en trait épais.
\begin{Verbatim}
$\begin{WithArrows}
@@ -182,7 +192,7 @@ A & = (a+1)^2 \Arrow[tikz=thick]{on développe} \\
\interitem
Il est également possible de changer les pointes de flèche. Par exemple, nous pouvons tracer une flèche
-qui remonte vers le haut avec l'option Tikz~\verb|<-|.\label{Backwards}
+qui remonte vers le haut avec l'option Tikz~|<-|.\label{Backwards}
\begin{Verbatim}
$\begin{WithArrows}
@@ -197,7 +207,7 @@ A & = (a+1)^2 \Arrow[tikz=<-]{on factorise} \\
\end{WithArrows}$
\interitem
-Il est aussi possible de supprimer les deux pointes de flèche avec l'option Tikz «\verb|-|».
+Il est aussi possible de supprimer les deux pointes de flèche avec l'option Tikz «|-|».
\begin{Verbatim}
$\begin{WithArrows}
A & = (a+1)^2 \Arrow[~emphase#tikz=-@]{très classique} \\
@@ -212,7 +222,7 @@ A & = (a+1)^2 \Arrow[tikz=-]{très classique} \\
\interitem
Pour avoir des flèches droites et non incurvées, il convient d'utiliser l'option Tikz
-«\verb|bend left = 0|».
+«|bend left = 0|».
\begin{Verbatim}
$\begin{WithArrows}
A & = (a+1)^2 \Arrow~emphase#[tikz={bend left=0}]@{on développe} \\
@@ -227,12 +237,15 @@ A & = (a+1)^2 \Arrow[tikz={bend left=0}]{on développe} \\
\smallskip
En fait, il est possible de modifier de manière plus drastique la forme des flèches avec l'option
-\verb|tikz-code| (présentée p.~\pageref{tikz-code}).
+|tikz-code| (présentée p.~\pageref{tikz-code}).
\interitem
-Il est possible d'utiliser l'option «\verb|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
-avec l'option «\verb|align = flush left|» de Tikz.}
+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.}
+\newcounter{fnnohyphen}
+\setcounter{fnnohyphen}{\thefootnote}
%
\begin{Verbatim}
$\begin{WithArrows}
@@ -253,16 +266,15 @@ A & = \bigl((a+b)+1\bigr)^2
\bigskip
-Dans les environnements \verb|{DispWithArrows}| et \verb|{DispWithArrows*}|, il y a une
-option \verb|wrap-lines|. Lorsque cette option est utilisée, les lignes des étiquettes sont
+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}.
\interitem
-Si on veut changer la fonte du texte associé à une flèche, on peut, bien entendu, placer une commande comme
-\verb|\bfseries|, \verb|\large| ou \verb|\sffamily| au début du texte.
-Mais, par défaut, les étiquettes sont composées avec une combinaison
-de \verb|\small| et \verb|\itshape|. En ajoutant \verb|\bfseries| au début du texte, on ne va pas supprimer le
-\verb|\small| et le \verb|\itshape| et, par conséquent, on aura un texte en gras, italique et petite taille.
+Si on veut changer la fonte du texte associé à une flèche, on peut, bien entendu, placer une commande comme
+|\bfseries|, |\large| ou |\sffamily| au début du texte. Mais, par défaut, les étiquettes sont composées avec une
+combinaison de |\small| et |\itshape|. En ajoutant |\bfseries| au début du texte, on ne va pas supprimer le
+|\small| et le |\itshape| et, par conséquent, on aura un texte en gras, italique et petite taille.
%
\begin{Verbatim}
$\begin{WithArrows}
@@ -277,13 +289,13 @@ A & = (a+1)^2 \Arrow{\bfseries on développe} \\
\end{WithArrows}$
\interitem
-Il est possible de placer des commandes \verb|\\| dans le texte pour forcer des retours à la ligne\footnote{Par
+Il est possible de placer des commandes |\\| dans le texte pour forcer des retours à la ligne\footnote{Par
défaut, ce n'est pas possible dans un nœud Tikz. Néanmoins, dans \pkg{witharrows},
-les nœuds sont construits avec l'option \verb|align=left|, et, ainsi, cela devient possible.}. Néanmoins, si on utilise des commandes \verb|\\|, une instruction de fonte placée au début
-du texte aura un effet seulement jusqu'à la première occurrence de~\verb|\\| (comme
-dans un environnement \verb|{tabular}|). C'est pourquoi Tikz fournit une option
-\verb|font| pour modifier la fonte de tout le texte de l'étiquette. Cette fois-ci, si on utilise une option
-\verb|tikz={font={\bfseries}}|, la spécification par défaut constituée par \verb|\small| et \verb|\itshape| va être
+les nœuds sont construits avec l'option |align=left|, et, ainsi, cela devient possible.}. Néanmoins, si on utilise des commandes |\\|, une instruction de fonte placée au début
+du texte aura un effet seulement jusqu'à la première occurrence de~|\\| (comme
+dans un environnement |{tabular}|). C'est pourquoi Tikz fournit une option
+|font| pour modifier la fonte de tout le texte de l'étiquette. Cette fois-ci, si on utilise une option
+|tikz={font={\bfseries}}|, la spécification par défaut constituée par |\small| et |\itshape| va être
écrasée.
%
\begin{Verbatim}
@@ -299,16 +311,16 @@ A & = (a+1)^2 \Arrow[tikz={font={\bfseries}}]{on développe} \\
\end{WithArrows}$
\medskip
-Si on veut exactement le même résultat que précédemment, on doit donner à l'option \verb|font| la valeur
-\verb|\itshape\small\bfseries|.
+Si on veut exactement le même résultat que précédemment, on doit donner à l'option |font| la valeur
+|\itshape\small\bfseries|.
\interitem
-Presque toutes les options peuvent être données entre crochets à l'environnement \verb|{WithArrows}|. Il ne doit
-pas y avoir d'espace entre le \verb|\begin{WithArrows}| et le crochet ouvrant (\verb|[|) des options de
+Presque toutes les options peuvent être données entre crochets à l'environnement |{WithArrows}|. Il ne doit
+pas y avoir d'espace entre le |\begin{WithArrows}| et le crochet ouvrant (|[|) des options de
l'environnement. Ces options s'appliquent à toutes les flèches de l'environnement.\footnote{Elles s'appliquent
- aussi aux environnements imbriqués dans un environnement \verb|{WithArrows}| donné (avec des exceptions attendues
- pour les options \verb|interline|, \verb|code-before| et \verb|code-after|).}
+ aussi aux environnements imbriqués dans un environnement |{WithArrows}| donné (avec des exceptions attendues
+ pour les options |interline|, |code-before| et |code-after|).}
%
\begin{Verbatim}
$\begin{WithArrows}[~emphase#tikz=blue@]
@@ -326,12 +338,11 @@ A & = \bigl((a+b)+1\bigr)^2 \Arrow{premier développement} \\
\interitem
-L'environnement \verb|{WithArrows}| a une option \verb|displaystyle|. Avec cette option,
-tous les éléments sont composés en \verb|\displaystyle| (comme dans un environnement
-\verb|{aligned}| de l'\pkg{amsmath}).
+L'environnement |{WithArrows}| a une option |displaystyle|. Avec cette option, tous les éléments sont composés en
+|\displaystyle| (comme dans un environnement |{aligned}| de l'\pkg{amsmath}).
\medskip
-Sans l'option \verb|displaystyle|:
+Sans l'option |displaystyle|:
%
\begin{Verbatim}
$\begin{WithArrows}
@@ -355,7 +366,7 @@ $\begin{WithArrows}
\medskip
-Le même exemple avec l'option \verb|displaystyle|:\par\nobreak
+Le même exemple avec l'option |displaystyle|:\par\nobreak
$\begin{WithArrows}[displaystyle]
\int_0^1 (x+1)^2 dx
@@ -369,14 +380,14 @@ $\begin{WithArrows}[displaystyle]
\interitem
-Presque toutes les options peuvent aussi être fixées au niveau du document avec la commande
-\verb|\WithArrowsOptions|. Dans ce cas, la portée des déclarations est le groupe TeX courant (de telles
-déclarations sont parfois qualifiées de «semi-globales»). Par exemple, si nous voulons que tous les environnements
-\verb|{WithArrows}| soient composés en \verb|\displaystyle| avec des flèches bleues, nous pouvons écrire
-\verb|\WithArrowsOptions{displaystyle,tikz=blue}|.\footnote{Il est aussi possible de configurer \pkg{witharrows} en
- modifiant le style Tikz \verb|WithArrows/arrow| qui est le style utilisé par \pkg{witharrows} lors du tracé d'une
+Presque toutes les options peuvent aussi être fixées au niveau du document avec la commande |\WithArrowsOptions|.
+Dans ce cas, la portée des déclarations est le groupe TeX courant (de telles déclarations sont parfois qualifiées
+de «semi-globales»). Par exemple, si nous voulons que tous les environnements |{WithArrows}| soient composés en
+|\displaystyle| avec des flèches bleues, nous pouvons écrire
+|\WithArrowsOptions{displaystyle,tikz=blue}|.\footnote{Il est aussi possible de configurer \pkg{witharrows} en
+ modifiant le style Tikz |WithArrows/arrow| qui est le style utilisé par \pkg{witharrows} lors du tracé d'une
flèche. Par exemple, pour avoir les étiquettes en bleu et en caractères droits, on peut utiliser l'instruction
- suivante : \verb|\tikzset{WithArrows/arrow/.append style = {blue,font = {}}}|.}
+ suivante : |\tikzset{WithArrows/arrow/.append style = {blue,font = {}}}|.}
\begin{Verbatim}
~emphase#\WithArrowsOptions{displaystyle,tikz=blue}@
@@ -398,15 +409,15 @@ $\begin{WithArrows}
\interitem
-La commande \verb|\Arrow| est reconnue seulement dans les environnements \verb|{WithArrows}|. Si on
-dispose d'une commande \verb|\Arrow| précédemment définie, il est possible de continuer à l'utiliser à
-l'extérieur des environnements \verb|{WithArrows}|.
-
-Néanmoins, une commande \verb|\Arrow| définie précédemment pourrait encore être utile dans un environnement \verb|{WithArrows}|.
-Si vous voulez l'utiliser dans un tel environnement, il est possible de changer le nom de la commande \verb|\Arrow| de
-l'extension \pkg{witharrows} grâce à une option \verb|command-name|\footnote{Pour des raisons historiques, il y a
- un alias pour cette option : \verb|CommandeName|.} dédiée. Le nouveau nom de la commande doit être fourni à
-l'option \emph{sans} la contre-oblique.
+La commande |\Arrow| est reconnue seulement dans les environnements de \pkg{witharrows}. Si on dispose d'une
+commande |\Arrow| précédemment définie, il est possible de continuer à l'utiliser à l'extérieur des environnements
+de \pkg{witharrows}.
+
+Néanmoins, une commande |\Arrow| définie précédemment pourrait encore être utile dans un environnement
+|{WithArrows}|. Si vous voulez l'utiliser dans un tel environnement, il est possible de changer le nom de la
+commande |\Arrow| de l'extension \pkg{witharrows} grâce à une option |command-name|\footnote{Pour des raisons
+ historiques, il y a un alias pour cette option : |CommandeName|.} dédiée. Le nouveau nom de la commande doit être
+fourni à l'option \emph{sans} la contre-oblique.
%
\begin{Verbatim}
\NewDocumentCommand {\Arrow} {} {\longmapsto}
@@ -428,11 +439,11 @@ f & = \bigl(x \Arrow (x+1)^2\bigr)
\interitem
-L'environnement \verb|{WithArrows}| fournit aussi deux options \verb|code-before| et
-\verb|code-after|\footnote{Pour des raisons historiques, il y a aussi des alias pour ces options :
- \verb|CodeBefore| et \verb|CodeAfter|.} pour du code LaTeX qui sera exécuté au début et à la fin de
-l'environnement. Ces options ne sont pas conçues pour être utilisées comme des \emph{hooks} (elles sont disponibles
-uniquement au niveau de l'environnement et ne s'appliquent pas aux environnements imbriqués).
+L'environnement |{WithArrows}| fournit aussi deux options |code-before| et |code-after|\footnote{Pour des raisons
+ historiques, il y a aussi des alias pour ces options : |CodeBefore| et |CodeAfter|.} pour du code LaTeX qui sera
+exécuté au début et à la fin de l'environnement. Ces options ne sont pas conçues pour être utilisées comme des
+\emph{hooks} (elles sont disponibles uniquement au niveau de l'environnement et ne s'appliquent pas aux
+environnements imbriqués).
%
\begin{Verbatim}
$\begin{WithArrows}[~emphase#code-before = \color{blue}@]
@@ -447,21 +458,21 @@ A & = (a+b)^2 \Arrow{on développe} \\
\end{WithArrows}$
\medskip
-Des commandes spéciales sont disponibles dans le \verb|code-after| : une commande \verb|\WithArrowsNbLines| qui
-indique le nombre de lignes (=rangées) de l'environnement courant (pour TeX, il s'agit d'une commande et non d'un
-compteur), une forme spéciale de la commande \verb|\Arrow| et la commande \verb|\MultiArrow| : ces commandes sont
-décrites à partir de la page~\pageref{NestedEnv}.
+Des commandes spéciales sont disponibles dans le |code-after| : une commande |\WithArrowsNbLines| qui indique le
+nombre de lignes (=rangées) de l'environnement courant (pour TeX, il s'agit d'une commande et non d'un compteur),
+une forme spéciale de la commande |\Arrow| et la commande |\MultiArrow| : ces commandes sont décrites à partir de
+la page~\pageref{NestedEnv}.
\section{Nombre et formats des colonnes}
-Jusqu'à présent, nous n'avons utilisé l'environnement \verb|{WithArrows}| qu'avec deux colonnes. Néanmoins, il est
-possible de l'utiliser avec un nombre arbitraire de colonnes grâce à l'option \verb|format|. La valeur
-donnée à cette option est similaire au préambule d'un environnement \verb|{array}|: il s'agit d'une séquence de
-lettres \verb|r|, \verb|c| et \verb|l|. La valeur par défaut de cette option \verb|format| est, en fait, \verb|rl|.
+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 par défaut de cette option |format| est, en fait, |rl|.
\bigskip
-Par exemple, si on veut seulement une colonne alignée à gauche, on peut utiliser l'option \verb|format=l|.
+Par exemple, si on veut seulement une colonne alignée à gauche, on peut utiliser l'option |format=l|.
\begin{Verbatim}
$\begin{WithArrows}[~emphase#format = l@]
f(x) \ge g(x) \Arrow{on élève les deux membres au carré} \\
@@ -477,8 +488,8 @@ f(x)^2 - g(x)^2 \ge 0
\end{WithArrows}$
\interitem
-Dans l'exemple suivant, on utilise cinq colonnes toutes centrées (l'environnement
-\verb|{DispWithArrows*}| utilisé est présenté p.~\pageref{DispWithArrows}).
+Dans l'exemple suivant, on utilise cinq colonnes toutes centrées (l'environnement |{DispWithArrows*}| utilisé est
+présenté p.~\pageref{DispWithArrows}).
\begin{Verbatim}
\begin{DispWithArrows*}[~emphase#format = ccccc@,
@@ -510,11 +521,11 @@ k & \;\le\; & t & \;\le\; & k+1 \\
\section{Positionnement précis des flèches}
-L'environnement \verb|{WithArrows}| construit, lors de la composition du tableau,
-deux séries de nœuds représentés en rouge dans l'exemple suivant.\footnote{L'option
-\verb|show-nodes| peut être utilisée pour visualiser ces nœuds. Les nœuds sont en fait des nœuds Tikz de forme
-rectangulaire et de largeur nulle. Une flèche entre deux nœuds part de l'ancre sud (\emph{south
- anchor}) du premier nœud et arrive à l'ancre nord (\emph{north anchor}) du deuxième nœud.}
+L'environnement |{WithArrows}| construit, lors de la composition du tableau, deux séries de nœuds représentés en
+rouge dans l'exemple suivant.\footnote{L'option |show-nodes| peut être utilisée pour visualiser ces nœuds. Les
+ nœuds sont en fait des nœuds Tikz de forme rectangulaire et de largeur nulle. Une flèche entre deux nœuds part de
+ l'ancre sud (\emph{south anchor}) du premier nœud et arrive à l'ancre nord (\emph{north anchor}) du deuxième
+ nœud.}
\smallskip
@@ -536,7 +547,7 @@ nœuds du côté droit sont alignés verticalement sur le bord droit de l'aligne
appelés \emph{nœuds de droite}.
-Par défaut, les flèches utilisent les nœuds de droite. Nous dirons que ces flèches sont dans le mode \verb|rr| (\emph{r}
+Par défaut, les flèches utilisent les nœuds de droite. Nous dirons que ces flèches sont dans le mode |rr| (\emph{r}
for \emph{right} en anglais). Ces flèches sont verticales (nous dirons qu'une flèche est \emph{verticale} lorsque
ses deux extrémités sont à la même abscisse).
@@ -544,8 +555,8 @@ ses deux extrémités sont à la même abscisse).
\smallskip
Néanmoins, il est possible d'utiliser les nœuds de gauche, ou une combinaison de nœuds de gauche et de droite avec
-l'une des options \verb|lr|, \verb|rl| et \verb|ll| (\emph{l} for \emph{left} en anglais). Ces flèches sont, la
-plupart du temps, non verticales.
+l'une des options |lr|, |rl| et |ll| (\emph{l} for \emph{left} en anglais). Ces flèches sont, la plupart du temps,
+non verticales.
Therefore
@@ -566,7 +577,7 @@ et une option \texttt{jump} fixée à $2$}\\
\interitem
-Il y a aussi une option nommée \verb|i| (\emph{i} pour \emph{intermédiaire}). Avec cette option, la flèche est
+Il y a aussi une option nommée |i| (\emph{i} pour \emph{intermédiaire}). Avec cette option, la flèche est
verticale et calée à gauche.
\begin{Verbatim}
@@ -581,13 +592,13 @@ $\begin{WithArrows}
$\begin{WithArrows}
(a+b)(a+ib)(a-b)(a-ib)
& = (a+b)(a-b)\cdot(a+ib)(a-ib) \\
-& = (a^2-b^2)(a^2+b^2) \Arrow[i]{parce que $(x-y)(x+y)=x^2-y^2$}\\
+& = (a^2-b^2)(a^2+b^2) \Arrow[i]{parce que \((x-y)(x+y)=x^2-y²\)}\\
& = a^4-b^4
\end{WithArrows}$
\interitem
-L'environnement \verb|{WithArrows}| propose aussi une option \verb|group|. Avec cette option,
+L'environnement |{WithArrows}| propose aussi une option |group|. Avec cette option,
\emph{toutes} les flèches de l'environnement sont regroupées sur une même verticale calée à gauche.
%
\begin{Verbatim}[formatcom=\small\color{gray}]
@@ -613,7 +624,7 @@ $\begin{WithArrows}[displaystyle,group]
\bigskip
-L'environnement \verb|{WithArrows}| fournit encore une autre option, nommée \verb|groups| (avec un \emph{s} dans le
+L'environnement |{WithArrows}| fournit encore une autre option, nommée |groups| (avec un \emph{s} dans le
nom). Avec cette option, les flèches sont divisées en plusieurs «groupes». Chaque groupe est un ensemble de flèches
connectées entre elles\footnote{Plus précisément : pour chaque flèche $a$, notons $i(a)$ le numéro de sa rangée de
départ et
@@ -635,30 +646,30 @@ A & = B \Arrow{one} \\
\end{WithArrows}$
\bigskip
-Dans un environnement qui utilise l'option \verb|group| ou l'option \verb|groups|, il est encore possible de donner
-une option de position (\verb|ll|, \verb|lr|, \verb|rl|, \verb|rr| ou \verb|i|) à une flèche individuelle. Une
-telle flèche sera tracée indépendamment des groupes. Il est aussi possible de commencer un nouveau groupe avec
-l'option \verb|new-group| pour une certaine flèche.
+Dans un environnement qui utilise l'option |group| ou l'option |groups|, il est encore possible de donner une
+option de position (|ll|, |lr|, |rl|, |rr| ou |i|) à une flèche individuelle\footnote{Une telle flèche est
+ qualifiée d'\emph{indépendante} (\emph{independent} en anglais) dans la documentation technique.}. Une telle
+flèche sera tracée indépendamment des groupes. Il est aussi possible de commencer un nouveau groupe avec l'option
+|new-group| pour une certaine flèche.
\bigskip
-Si on le souhaite, on peut passer l'option \verb|group| ou \verb|groups| à la commande \verb|WithArrowsOptions| de
-telle sorte qu'elle deviendra la valeur par défaut (jusqu'à la fin du groupe TeX). Dans ce cas, il est encore
-possible de revenir au comportement par défaut pour un environnement \verb|{WithArrows}| donné avec l'option
-\verb|rr|: \verb|\begin{WithArrows}[rr]|.
+Si on le souhaite, on peut passer l'option |group| ou |groups| à la commande |WithArrowsOptions| de telle sorte
+qu'elle deviendra la valeur par défaut (jusqu'à la fin du groupe TeX courant). Dans ce cas, il est encore possible
+de revenir au comportement par défaut pour un environnement |{WithArrows}| donné avec l'option |rr|:
+|\begin{WithArrows}[rr]|.
\vspace{1cm}
-Dans l'exemple suivant, nous avons utilisé l'option \verb|group| pour l'environnement
-et l'option \verb|rr| pour la dernière flèche (c'est pourquoi cette dernière flèche n'est pas alignée avec les
-premières).
+Dans l'exemple suivant, nous avons utilisé l'option |groups| pour l'environnement et l'option |new-group| pour la
+dernière flèche (c'est pourquoi cette dernière flèche n'est pas alignée avec les premières).
-$\begin{WithArrows}[interline=1mm,group]
+$\begin{WithArrows}[interline=1mm,groups]
\sum\limits_{k=0}^n\frac{\cos kx}{\cos^k x}
& = \sum\limits_{k=0}^n \frac{\Re (e^{ikx})}{(\cos x)^k}
-\Arrow{$(\cos x)^k$ est réel} \\
+\Arrow{\((\cos x)^k\) est réel} \\
& = \sum\limits_{k=0}^n \Re\left(\frac{e^{ikx}}{(\cos x)^k}\right)
-\Arrow{$\Re(z+z')=\Re(z)+\Re(z')$}\\
+\Arrow{\(\Re(z+z')=\Re(z)+\Re(z')\)}\\
& = \Re \left(\sum\limits_{k=0}^n \left(\frac{e^{ix}}{\cos x}\right)^k\right)
\Arrow{somme de termes d'une suite géométrique} \\
& = \Re \left(\frac{1-\left(\frac{e^{ix}}{\cos x}\right)^{n+1}}{1-\frac{e^{ix}}{\cos x}} \right)
@@ -666,9 +677,9 @@ $\begin{WithArrows}[interline=1mm,group]
& = \Re \left(\frac{1-\frac{e^{i(n+1)x}}{\cos^{n+1}x}}{1-\frac{e^{ix}}{\cos x}}\right)
\Arrow{réduction au même dénominateur} \\
& = \Re \left(\frac{\frac{\cos^{n+1}x-e^{i(n+1)x}}{\cos^{n+1}x}}{\frac{\cos x-e^{ix}}{\cos x}}\right)
-\Arrow{$\Re(kz) = k\cdot\Re(z)$ lorsque $k$ est réel} \\
+\Arrow{\(\Re(kz) = k\cdot\Re(z)\) lorsque \(k\) est réel} \\
& = \frac1{\cos^n x}\Re \left(\frac{\cos^{n+1}x-e^{i(n+1)x}}{\cos x-e^{ix}}\right)
-\Arrow[rr]{forme algébrique des nombres complexes} \\
+\Arrow[new-group]{forme algébrique des nombres complexes} \\
& =\frac1{\cos^n x}\Re\left(\frac{\cos^{n+1}x-(\cos(n+1)x+i\sin(n+1)x)}{\cos x-(\cos x+i\sin x)}\right) \\
& =\frac1{\cos^n x}\Re\left(\frac{(\cos^{n+1}x-\cos(n+1)x)-i\sin(n+1)x}{-i\sin x}\right) \\
& = \frac1{\cos^nx}\cdot\frac{\sin(n+1)x}{\sin x}
@@ -679,7 +690,7 @@ $\begin{WithArrows}[interline=1mm,group]
\section{Les options «up» et «down» pour des flèches individuelles}
\label{up-and-down}
-Au niveau local, il y a deux options pour les flèches individuelles, nommée «\verb|up|» et «\verb|down|». L'exemple
+Au niveau local, il y a deux options pour les flèches individuelles, nommée «|up|» et «|down|». L'exemple
suivant illustre ces types de flèches:
@@ -695,34 +706,34 @@ A & = B
\end{Verbatim}
\vspace{1cm}
-\(\begin{WithArrows}
+$\begin{WithArrows}
A & = B
\Arrow[up]{une flèche de type \texttt{up}} \\
& = C + C + C + C + C + C + C + C \\
& = C + C + C + C + C + C + C + C
\Arrow[down]{une flèche de type \texttt{down}} \\
& = E + E
-\end{WithArrows}\)
+\end{WithArrows}$
-\vspace{1cm}
-Les options \verb|up| et \verb|down| nécessitent l'extension \pkg{varwidth} et l'extension Tikz
-\pkg{calc}. Si elles ne sont pas chargées, une erreur sera levée.
+\vspace{1cm}
+Les options |up| et |down| nécessitent l'extension \pkg{varwidth} et l'extension Tikz \pkg{calc}. Si elles ne sont
+pas chargées, une erreur sera levée.
\interitem
\section{Comparaison avec l'environnement \{aligned\}}
-L'environnement \verb|{WithArrows}| présente des similitudes avec l'environnement \verb|{aligned}| de l'extension
-\pkg{amsmath}. Ce sont seulement des similitudes car \verb|{WithArrows}| n'a pas été écrit en s'appuyant sur
-\verb|{aligned}|.\footnote{En fait, il est
-possible d'utiliser l'extension \pkg{witharrows} sans l'extension \pkg{amsmath}.}
+L'environnement |{WithArrows}| présente des similitudes avec l'environnement |{aligned}| de l'extension
+\pkg{amsmath}. Ce sont seulement des similitudes car |{WithArrows}| n'a pas été écrit en s'appuyant sur
+|{aligned}|.\footnote{En fait, il est possible d'utiliser l'extension \pkg{witharrows} sans l'extension
+ \pkg{amsmath}.}
\interitem
Comme dans les environnements de l'\pkg{amsmath}, il est possible de changer l'espacement entre deux rangées avec
-l'option de la commande \verb|\\| de fin de ligne (il est aussi possible d'utiliser \verb|\\*| mais cela a
-exactement le même effet que \verb|\\| puisqu'un environnement \verb|{WithArrows}| est toujours insécable). Cette
+l'option de la commande |\\| de fin de ligne (il est aussi possible d'utiliser |\\*| mais cela a
+exactement le même effet que |\\| puisqu'un environnement |{WithArrows}| est toujours insécable). Cette
option est conçu pour être utilisée avec des valeurs positives uniquement.
%
\begin{Verbatim}
@@ -740,11 +751,11 @@ A & = (a+1)^2 \Arrow{on développe} \\*[2ex]
\interitem
-Dans les environnements de l'\pkg{amsmath} (ou de \pkg{mathtools}), l'espace entre deux rangées
-est fixé par un paramètre appelé \verb|\jot| (il s'agit d'une dimension et non d'un ressort). C'est aussi le cas
-pour l'environnement \verb|{WithArrows}|. Une option \verb|jot| a été ajoutée à l'environnement \verb|{WithArrows}|
-dans le but de changer ce paramètre \verb|\jot| pour un environnement donné.\footnote{Il est aussi possible de
-changer \verb|\jot| avec l'environnement \verb|{spreadlines}| de \pkg{mathtools}.}
+Dans les environnements de l'\pkg{amsmath} (ou de \pkg{mathtools}), l'espace entre deux rangées est fixé par un
+paramètre appelé |\jot| (il s'agit d'une dimension et non d'un ressort). C'est aussi le cas pour l'environnement
+|{WithArrows}|. Une option |jot| a été ajoutée à l'environnement |{WithArrows}| dans le but de changer ce paramètre
+|\jot| pour un environnement donné.\footnote{Il est aussi possible de changer |\jot| avec l'environnement
+ |{spreadlines}| de \pkg{mathtools}.}
%
\begin{Verbatim}
$\begin{WithArrows}[displaystyle,~emphase#jot=2ex@]
@@ -763,8 +774,8 @@ F & = \frac12G \Arrow{on développe}\\
\bigskip
-Néanmoins, cette nouvelle valeur de \verb|\jot| sera aussi utilisée dans les nouveaux alignements
-inclus dans l'environnement~\verb|{WithArrows}|:
+Néanmoins, cette nouvelle valeur de |\jot| sera aussi utilisée dans les nouveaux alignements inclus dans
+l'environnement~|{WithArrows}|:
%
\begin{Verbatim}
$\begin{WithArrows}[jot=2ex]
@@ -782,7 +793,7 @@ x+2y & = 0
$\begin{WithArrows}[jot=2ex]
\varphi(x,y) = 0 & \Leftrightarrow (x+y)^2 + (x+2y)^2 = 0
-\Arrow{$x$ et $y$ sont réels}\\
+\Arrow{\(x\) et \(y\) sont réels}\\
& \Leftrightarrow \left\{
\begin{aligned}
x+y & = 0 \\
@@ -792,8 +803,8 @@ x+2y & = 0
\end{WithArrows}$
\bigskip
-Peut-être que cela ne correspond pas au résultat souhaité. C'est pourquoi une option
-\verb|interline| est fournie. Il est possible d'utiliser un ressort (\emph{skip}) pour cette option.
+Peut-être que cela ne correspond pas au résultat souhaité. C'est pourquoi une option |interline| est fournie. Il
+est possible d'utiliser un ressort (\emph{skip}) pour cette option.
%
\begin{Verbatim}
$\begin{WithArrows}[~emphase#interline=2ex@]
@@ -811,7 +822,7 @@ x+2y & = 0 \\
$\begin{WithArrows}[interline=2ex]
\varphi(x,y) = 0 & \Leftrightarrow (x+y)^2 + (x+2y)^2 = 0
-\Arrow{$x$ et $y$ sont réels}\\
+\Arrow{\(x\) et \(y\) sont réels}\\
& \Leftrightarrow \left\{
\begin{aligned}
x+y & = 0 \\
@@ -822,10 +833,9 @@ x+2y & = 0 \\
\interitem
-De même que l'environnement \verb|{aligned}|, \verb|{WithArrows}| a une option de placement qui peut prendre les valeurs
-\verb|t|, \verb|c| ou \verb|b|. Néanmoins, la valeur par défaut n'est pas \verb|c| mais \verb|t|.
-Si on le souhaite, il est possible d'avoir la valeur \verb|c| comme valeur par défaut
-en utilisant l'instruction \verb|\WithArrowsOptions{c}| au début du document.
+De même que l'environnement |{aligned}|, |{WithArrows}| a une option de placement qui peut prendre les valeurs |t|,
+|c| ou |b|. Néanmoins, la valeur par défaut n'est pas |c| mais |t|. Si on le souhaite, il est possible d'avoir la
+valeur |c| comme valeur par défaut en utilisant l'instruction |\WithArrowsOptions{c}| au début du document.
%
\begin{Verbatim}
Ainsi\enskip
@@ -842,7 +852,7 @@ A & = (a+1)^2 \Arrow{on développe} \\
\end{WithArrows}$
\bigskip
-La valeur \verb|c| peut être utile, par exemple, si on souhaite mettre une accolade :
+La valeur |c| peut être utile, par exemple, si on souhaite mettre une accolade :
\smallskip
\begin{Verbatim}
@@ -866,16 +876,15 @@ g(x) & = 5x^2-5x+6
\interitem
-Contrairement à \verb|{aligned}|, l'environnement \verb|{WithArrows}| utilise \verb|\textstyle| par
-défaut.
+Contrairement à |{aligned}|, l'environnement |{WithArrows}| utilise |\textstyle| par défaut.
-Là aussi, il est possible de changer ce comportement avec \verb|\WithArrowsOptions|:
+Là aussi, il est possible de changer ce comportement avec |\WithArrowsOptions|:
\quad \verb|\WithArrowsOptions{displaystyle}|.
\smallskip
-L'exemple suivant est composé avec \verb|{aligned}|:\par\nobreak
+L'exemple suivant est composé avec |{aligned}|:\par\nobreak
\smallskip
$\left\{
@@ -888,10 +897,10 @@ $\left\{
\medskip
-L'exemple suivant est composé avec \verb|{WithArrows}[c,displaystyle]|. Les résultats
+L'exemple suivant est composé avec |{WithArrows}[c,displaystyle]|. Les résultats
sont parfaitement identiques.\footnote{Dans les versions de l'\pkg{amsmath} antérieures au
-5~novembre~2016, un espace fin était ajouté sur la gauche de l'environnement \verb|{aligned}|.
-Les versions plus récentes n'ajoutent pas d'espace et \verb|{WithArrows}| non plus.}\par\nobreak
+5~novembre~2016, un espace fin était ajouté sur la gauche de l'environnement |{aligned}|.
+Les versions plus récentes n'ajoutent pas d'espace et |{WithArrows}| non plus.}\par\nobreak
\smallskip
$\left\{
@@ -907,10 +916,10 @@ $\left\{
\label{NestedEnv}
-Les environnements \verb|{WithArrows}| peuvent être imbriqués. Dans ce cas, les options fournies
+Les environnements |{WithArrows}| peuvent être imbriqués. Dans ce cas, les options fournies
à l'environnement englobant s'appliquent aussi aux environnements imbriqués (avec des
-exceptions tout à fait attendues pour \verb|interline|, \verb|code-before| et \verb|code-after|). La commande
-\verb|Arrow| peut être utilisée dans chaque environnement \verb|{WithArrows}|.
+exceptions tout à fait attendues pour |interline|, |code-before| et |code-after|). La commande
+|Arrow| peut être utilisée dans chaque environnement |{WithArrows}|.
\begin{Verbatim}[formatcom=\small\color{gray}]
$~emphase#\begin{WithArrows}@
@@ -969,12 +978,12 @@ $\begin{WithArrows}[code-after = \Arrow[v]{1-2}{2-2}{division par $2$} ]
\bigskip
-Une telle construction est possible en utilisant \verb|\Arrow| dans le \verb|code-after| :
-dans le \verb|code-after|, une version spéciale de la commande \verb|\Arrow| est disponible
-(nous l'appellerons «\verb|\Arrow| dans le \verb|code-after|»).
+Une telle construction est possible en utilisant |\Arrow| dans le |code-after| :
+dans le |code-after|, une version spéciale de la commande |\Arrow| est disponible
+(nous l'appellerons «|\Arrow| dans le |code-after|»).
\smallskip
-Une commande \verb|\Arrow| dans le \verb|code-after| prend trois arguments :
+Une commande |\Arrow| dans le |code-after| prend trois arguments :
\begin{itemize}
\item une spécification pour la rangée de départ de la flèche ;
\item une spécification pour la rangée d'arrivée ;
@@ -988,8 +997,8 @@ La spécification de rangée est construite avec la position de l'environnement
imbrications, suivie, après un trait d'union, par le numéro de la rangée.
\bigskip
-Dans l'exemple précédent, il y a deux environnements \verb|{WithArrows}| imbriqués dans l'environnement
-\verb|{WithArrows}| principal.
+Dans l'exemple précédent, il y a deux environnements |{WithArrows}| imbriqués dans l'environnement
+|{WithArrows}| principal.
\medskip
$\begin{WithArrows}[tikz-code = {\path (#1) to node {#3} (#2) ; }]
@@ -1009,10 +1018,11 @@ $\begin{WithArrows}[tikz-code = {\path (#1) to node {#3} (#2) ; }]
\end{WithArrows}$
\bigskip
-La flèche que nous voulons tracer part de la rangée~$2$ du sous-environnement
-\no $1$ (et, par conséquent, la spécification est \verb|1-2|) et arrive à la rangée~$2$
-du sous-environnement \no $2$ (et, par conséquent, la spécification est \verb|2-2|).
-Nous pouvons tracer la flèche avec une commande \verb|\Arrow| dans le \verb|code-after| de la manière suivante :
+La flèche que nous voulons tracer part de la rangée~$2$ du sous-environnement \no $1$ (et, par conséquent, la
+spécification est |1-2|) et arrive à la rangée~$2$ du sous-environnement \no $2$ (et, par conséquent, la
+spécification est |2-2|). Nous pouvons tracer la flèche avec une commande |\Arrow| dans le |code-after| de la
+manière suivante :
+
\begin{Verbatim}
$\begin{WithArrows}[~emphase#code-after = \Arrow{1-2}{2-2}{division par $2$}@ ]
\varphi(x,y)=0
@@ -1038,16 +1048,16 @@ $\begin{WithArrows}[code-after = \Arrow{1-2}{2-2}{division par $2$} ]
\end{WithArrows}$
\bigskip
-Les options autorisées pour une commande \verb|\Arrow| dans le \verb|code-after| sont : \verb|ll|, \verb|lr|,
-\verb|rl|, \verb|rr|, \verb|v|, \verb|xoffset|, \verb|tikz| et \verb|tikz-code|. Exceptée \verb|v|, qui est
-spécifique à \verb|\Arrow| dans le \verb|code-after|, toutes ces options ont leur signification habituelle.
+Les options autorisées pour une commande |\Arrow| dans le |code-after| sont : |ll|, |lr|, |rl|, |rr|, |v|,
+|xoffset|, |tikz| et |tikz-code|. Exceptée |v|, qui est spécifique à |\Arrow| dans le |code-after|, toutes ces
+options ont leur signification habituelle.
-Avec l'option \verb|v|, la flèche tracée est verticale à une abscisse calculée avec
+Avec l'option |v|, la flèche tracée est verticale à une abscisse calculée avec
la rangée de départ et la rangée d'arrivée uniquement : les lignes intermédiaires ne sont pas prises en compte
-contrairement à ce qui se passe avec l'option \verb|i|. Pour le moment, l'option \verb|i| n'est pas disponible
-pour la commande~\verb|\Arrow| dans le \verb|code-after|. Néanmoins, il est toujours possible
-de déplacer une flèche avec \verb|xoffset| (ou \verb|xshift| de Tikz).
+contrairement à ce qui se passe avec l'option |i|. Pour le moment, l'option |i| n'est pas disponible
+pour la commande~|\Arrow| dans le |code-after|. Néanmoins, il est toujours possible
+de déplacer une flèche avec |xoffset| (ou |xshift| de Tikz).
\begin{Verbatim}
$\begin{WithArrows}[code-after=\Arrow~emphase#[v]@{1-2}{2-2}{division by $2$}]
\varphi(x,y)=0
@@ -1074,10 +1084,10 @@ $\begin{WithArrows}[code-after = \Arrow[v]{1-2}{2-2}{division par $2$} ]
\interitem
-L'extension \pkg{witharrows} fournit une autre commande disponible dans le \verb|code-after| : la commande
-\verb|\MultiArrow|. Cette commande dessine un «rateau». La liste des rangées concernées par ce rateau
-est donnée dans le premier argument de la commande \verb|\MultiArrow|. La syntaxe utilisée pour décrire cette liste
-est celle de la commande \verb|\foreach| de \pkg{pgffor}.
+L'extension \pkg{witharrows} fournit une autre commande disponible dans le |code-after| : la commande
+|\MultiArrow|. Cette commande dessine un «rateau». La liste des rangées concernées par ce rateau
+est donnée dans le premier argument de la commande |\MultiArrow|. La syntaxe utilisée pour décrire cette liste
+est celle de la commande |\foreach| de \pkg{pgffor}.
\begin{Verbatim}
$\begin{WithArrows}[tikz = rounded corners,
@@ -1101,22 +1111,22 @@ A & = B \\
\end{WithArrows}$
\medskip
-Pour le moment, aucune option n'est disponible pour cette commande \verb|\MultiArrow|.
+Pour le moment, aucune option n'est disponible pour cette commande |\MultiArrow|.
\medskip
\section{Dessiner des flèches depuis l'extérieur des environnements \{WithArrows\}}
-Si on désire dessiner des flèches depuis l'extérieur des environnements \verb|{WithArrows}|, il est possible de le
+Si on désire dessiner des flèches depuis l'extérieur des environnements |{WithArrows}|, il est possible de le
faire en utilisant les nœuds Tikz créés par ces environnements.
-Le nom d'un nœud Tikz crée par \pkg{witharrows} est préfixé par \verb|wa-|. Ensuite, on trouve une liste de nombres
+Le nom d'un nœud Tikz crée par \pkg{witharrows} est préfixé par |wa-|. Ensuite, on trouve une liste de nombres
qui indique quelle est la position de l'environnement dans l'arbre d'imbrication des environnements. À la fin, on a
-le suffixe \verb|l| pour un nœud de gauche et le suffixe \verb|r| pour un nœud de droite.
+le suffixe |l| pour un nœud de gauche et le suffixe |r| pour un nœud de droite.
\smallskip
-À titre d'illustration, nous donnons un exemple d'environnements \verb|{WithArrows}| imbriqués et, pour chaque nœud
-de droite, le nom de ce nœud.\footnote{Il existe une option \verb|show-node-names| pour faire afficher les noms de
+À titre d'illustration, nous donnons un exemple d'environnements |{WithArrows}| imbriqués et, pour chaque nœud
+de droite, le nom de ce nœud.\footnote{Il existe une option |show-node-names| pour faire afficher les noms de
ces nœuds.}
@@ -1154,19 +1164,19 @@ P & \vartriangleleft Q
\medskip
The package \pkg{witharrows} fournit quelques outils pour faciliter l'utilisation de ces nœuds :
\begin{itemize}
-\item la commande \verb|\WithArrowsLastEnv| donne le numéro du dernier environnement de niveau~$0$ (c'est-à-dire
+\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}) ;
-\item un nom peut être donné à un environnement avec l'option \verb|name| et, dans ce cas, les nœuds créés dans
+\item un nom peut être donné à un environnement avec l'option |name| et, dans ce cas, les nœuds créés dans
l'environnement auront des alias construits en utilisant ce nom ;
-\item le style Tikz \verb|WithArrows/arrow| est le style utilisé par \pkg{witharrows} pour dessiner une
-flèche\footnote{Plus précisément, ce style est passé à Tikz via l'option «\verb|every path|» avant le dessin de la
- flèche (qui se fait avec l'instruction Tikz stockée dans \verb|tikz-code|). Ce style est modifié par l'option
- \verb|tikz| de \pkg{witharrows} (avec une portée correspondant au groupe TeX courant).} ;
+\item le style Tikz |WithArrows/arrow| est le style utilisé par \pkg{witharrows} pour dessiner une
+flèche\footnote{Plus précisément, ce style est passé à Tikz via l'option «|every path|» avant le dessin de la
+ flèche (qui se fait avec l'instruction Tikz stockée dans |tikz-code|). Ce style est modifié par l'option
+ |tikz| de \pkg{witharrows} (avec une portée correspondant au groupe TeX courant).} ;
-\item le style Tikz \verb|WithArrows/arrow/tips| est le style utilisé pour la pointe de flèche (ce style est
-lui-même chargé par le style \verb|WithArrows/arrow|).
+\item le style Tikz |WithArrows/arrow/tips| est le style utilisé pour la pointe de flèche (ce style est
+lui-même chargé par le style |WithArrows/arrow|).
\end{itemize}
Par exemple, nous pouvons tracer une flèche allant de \texttt{wa-\WithArrowsLastEnv-2-1-2-r.south}
@@ -1217,12 +1227,12 @@ P & \vartriangleleft Q
\end{tikzpicture}
\medskip
-Dans le cas présent, il aurait été plus facile d'utiliser une commande \verb|\Arrow| dans le \verb|code-after| mais
+Dans le cas présent, il aurait été plus facile d'utiliser une commande |\Arrow| dans le |code-after| mais
c'était seulement un exemple pour expliquer comment les nœuds Tikz créés par \pkg{witharrows} peuvent être utilisés.
\bigskip
-Dans l'exemple suivant, on crée deux environnements \verb|{WithArrows}| nommés
-«\verb|premier|» et «\verb|second|» et on dessine une flèche entre un nœud du premier et un nœud du second.
+Dans l'exemple suivant, on crée deux environnements |{WithArrows}| nommés «|premier|» et «|second|» et on dessine
+une flèche entre un nœud du premier et un nœud du second.
\begin{Verbatim}
$\begin{WithArrows}[~emphase#name=premier@]
@@ -1266,14 +1276,13 @@ A' & = B' \\
\section{L'environnement \{DispWithArrows\}}
\label{DispWithArrows}
-Comme dit précédemment, l'environnement \verb|{WithArrows}| présente des similitudes avec l'environnement
-\verb|{aligned}| de l'\pkg{amsmath} (et de \verb|mathtools|). L'extension \pkg{witharrows}
-fournit aussi un environnement \verb|{DispWithArrows}| qui est similaire aux
-environnements \verb|{align}| et \verb|{flalign}| de l'\pkg{amsmath}.
+Comme dit précédemment, l'environnement |{WithArrows}| présente des similitudes avec l'environnement |{aligned}| de
+l'\pkg{amsmath} (et de |mathtools|). L'extension \pkg{witharrows} fournit aussi un environnement |{DispWithArrows}|
+qui est similaire aux environnements |{align}| et |{flalign}| de l'\pkg{amsmath}.
\medskip
-L'environnement \verb|{DispWithArrows}| doit être utilisé \emph{hors} du mode mathématique. Comme
-\verb|{align}|, il doit être utilisé en mode horizontal.
+L'environnement |{DispWithArrows}| doit être utilisé \emph{hors} du mode mathématique. Comme
+|{align}|, il doit être utilisé en mode horizontal.
\begin{Verbatim}
\begin{~emphase#DispWithArrows@}
A & = (a+1)^2 \Arrow{on développe} \\
@@ -1286,12 +1295,12 @@ A & = (a+1)^2 \Arrow{on développe} \\
\end{DispWithArrows}
\medskip
-Il est possible d'utiliser la commande \verb|\notag| (ou \verb|\nonumber|) pour supprimer un numéro d'équation.
+Il est possible d'utiliser la commande |\notag| (ou |\nonumber|) pour supprimer un numéro d'équation.
-Il est possible d'utiliser la commande \verb|\tag| pour placer une étiquette spéciale (par ex. $\star$).
+Il est possible d'utiliser la commande |\tag| pour placer une étiquette spéciale (par ex. $\star$).
Il est aussi possible de placer un label pour une ligne de l'environnement avec la commande
-\verb|\label|.
+|\label|.
Ces commandes doivent être utilisées dans la dernière colonne de l'environnement.
\begin{Verbatim}
@@ -1304,15 +1313,15 @@ A & = (a+1)^2 \Arrow{on développe} ~emphase#\notag@ \\
A & = (a+1)^2 \Arrow{on développe} \notag \\
& = a^2 + 2a + 1 \tag{$\star$} \label{mon-équation}
\end{DispWithArrows}
-Un lien vers l'équation \eqref{mon-équation}. On a obtenu ce lien avec la commande
-\verb|\eqref{mon-équation}| (la commande \verb|\eqref| est une commande de l'extension \pkg{amsmath}).
+Un lien vers l'équation \ref{mon-équation}.\footnote{Dans ce document, les
+références ont été personnalisées avec |\labelformat{equation}{(#1)}|}
+
\medskip
-Si \pkg{amsmath} (ou \pkg{mathtools}) est chargée, il est toujours possible d'utiliser
-\verb|\tag*| qui, comme dans l'extension\pkg{amsmath}, compose le label sans les parenthèses.
-Par exemple, il est possible de l'utiliser pour mettre le symbole \verb|\square| de
-\pkg{amssymb}. Ce symbole est souvent utilisé pour marquer la fin d'une démonstration.\footnote{Signalons que l'environnement \verb|{DispWithArrows}| est compatible
-avec la commande \verb|\qedhere| de \pkg{amsthm}.}
+Si \pkg{amsmath} (ou \pkg{mathtools}) est chargée, il est possible d'utiliser |\tag*| qui compose le label
+sans les parenthèses. Par exemple, il est possible de l'utiliser pour mettre le symbole |\square| de
+\pkg{amssymb}. Ce symbole est souvent utilisé pour marquer la fin d'une démonstration.\footnote{Signalons que
+ l'environnement |{DispWithArrows}| est compatible avec la commande |\qedhere| de \pkg{amsthm}.}
\begin{Verbatim}
\begin{DispWithArrows}
A & = (a+1)^2 \Arrow{on développe} \notag \\
@@ -1325,12 +1334,12 @@ A & = (a+1)^2 \Arrow{on développe} \notag \\
\end{DispWithArrows}
\medskip
-Il est également possible de supprimer tous les numéros d'équations avec l'option booléenne \verb|notag| (ou
-\verb|nonumber|), au niveau global ou bien au niveau d'un environnement.
+Il est également possible de supprimer tous les numéros d'équations avec l'option booléenne |notag| (ou
+|nonumber|), au niveau global ou bien au niveau d'un environnement.
Enfin, il existe aussi
-un environnement \verb|{DispWithArrows*}| qui supprime tous les numéros.\footnote{Même dans ce cas, il est possible
-de mettre une étiquette manuellement avec la commande \verb|\tag|.}
+un environnement |{DispWithArrows*}| qui supprime tous les numéros.\footnote{Même dans ce cas, il est possible
+de mettre une étiquette manuellement avec la commande |\tag|.}
\begin{Verbatim}
\begin{~emphase#DispWithArrows*@}
A & = (a+1)^2 \Arrow{on développe} \\
@@ -1343,11 +1352,11 @@ A & = (a+1)^2 \Arrow{on développe} \\
\end{DispWithArrows*}
\medskip
-En fait, il y a une autre option, nommée \verb|tagged-lines|, qui peut être utilisée pour contrôler quelles lignes
+En fait, il y a une autre option, nommée |tagged-lines|, qui peut être utilisée pour contrôler quelles lignes
seront numérotées. La valeur de cette option est la liste des numéros de lignes (dans l'environnement) qui seront
numérotées (par le système de numérotage des équations). Par exemple, avec l'option
-\verb|tagged-lines = {first,3,last}|, seulement la première, la troisième et la dernière lignes seront numérotées.
-Il y a aussi une valeur spéciale \verb|all| qui signifie que toutes les lignes doivent être numérotées.
+|tagged-lines = {first,3,last}|, seulement la première, la troisième et la dernière lignes seront numérotées.
+Il y a aussi une valeur spéciale |all| qui signifie que toutes les lignes doivent être numérotées.
\begin{Verbatim}
\begin{DispWithArrows}[~emphase#tagged-lines = last@]
A & = A_1 \Arrow{première étape} \\
@@ -1362,9 +1371,9 @@ A & = A_1 \Arrow{première étape} \\
\end{DispWithArrows}
\bigskip
-Avec l'option \verb|fleqn|, l'environnement est composé calé à gauche (d'une manière similaire
-à l'option \verb|fleqn| des classes standard de LaTeX). Dans ce cas, la marge gauche peut être réglée avec
-l'option \verb|mathindent| (qui a un nom inspiré du paramètre \verb|\mathindent| de LaTeX). La valeur par défaut
+Avec l'option |fleqn|, l'environnement est composé calé à gauche (d'une manière similaire
+à l'option |fleqn| des classes standard de LaTeX). Dans ce cas, la marge gauche peut être réglée avec
+l'option |mathindent| (qui a un nom inspiré du paramètre |\mathindent| de LaTeX). La valeur par défaut
pour cette option est de 25~pt.
\begin{Verbatim}
@@ -1379,29 +1388,29 @@ A & = (a+1)^2 \Arrow{on développe} \\
\end{DispWithArrows}
\medskip
-\emph{Remarque} : Par conception, l'option \verb|fleqn| de \pkg{witharrows} est
-indépendante de l'option de classe \verb|fleqn| de LaTeX. En effet, puisque les environnement de
+\emph{Remarque} : Par conception, l'option |fleqn| de \pkg{witharrows} est
+indépendante de l'option de classe |fleqn| de LaTeX. En effet, puisque les environnement de
\pkg{witharrows} sont conçus pour être utilisés avec des flèches sur le côté droit, l'utilisateur
-peut souhaiter utiliser \pkg{witharrows} avec l'option \verb|fleqn| (de manière à avoir plus de place sur la droite
+peut souhaiter utiliser \pkg{witharrows} avec l'option |fleqn| (de manière à avoir plus de place sur la droite
des équations pour les flèches) tout en continuant à centrer les équations classiques.
\medskip
-Si l'option \verb|leqno| est utilisée comme option de classe, les labels seront composés
-à gauche également pour les environnements \verb|{DispWithArrows}|.\footnote{L'extension \pkg{amsmath} a une option \verb|leqno|
+Si l'option |leqno| est utilisée comme option de classe, les labels seront composés
+à gauche également pour les environnements |{DispWithArrows}|.\footnote{L'extension \pkg{amsmath} a une option |leqno|
mais \pkg{witharrows}, bien entendu, ne tient pas compte de cette option : \pkg{witharrows}
-vérifie seulement l'option \verb|leqno| de la classe du document.}
+vérifie seulement l'option |leqno| de la classe du document.}
\medskip
-Si l'extension \pkg{amsmath} est chargée, il est possible d'utiliser la commande \verb|\intertext| dans les
-environnements \verb|{DispWithArrows}|. Il est également possible d'utiliser l'environnement \verb|{subequations}|.
-Néanmoins, il existe pour les environnements \verb|{DispWithArrows}| une option \verb|subequations| qui demande
-d'encapsuler l'environnement dans un environnement \verb|{subequations}|.
+Si l'extension \pkg{amsmath} est chargée, il est possible d'utiliser la commande |\intertext| dans les
+environnements |{DispWithArrows}|. Il est également possible d'utiliser l'environnement |{subequations}|.
+Néanmoins, il existe pour les environnements |{DispWithArrows}| une option |subequations| qui demande
+d'encapsuler l'environnement dans un environnement |{subequations}|.
\medskip
-Dans l'exemple suivant, l'option \verb|subequations| est fixée via la commande \verb|\WithArrowsOptions|. Chacun
-des environnements suivants sera alors sous-numéroté (dans la portée de la commande \verb|WithArrowsOptions|).
+Dans l'exemple suivant, l'option |subequations| est fixée via la commande |\WithArrowsOptions|. Chacun
+des environnements suivants sera alors sous-numéroté (dans la portée de la commande |WithArrowsOptions|).
\begin{Verbatim}
~emphase#\WithArrowsOptions{subequations}@
@@ -1434,8 +1443,8 @@ D & = E \\
\bigskip
S'il n'y a pas suffisamment de place pour faire appraraître le numéro d'équation à la fin de la ligne, il n'y a pas
de positionnement automatique de ce numéro sur la ligne suivante (comme dans les environnements de
-l'\pkg{amsmath}) : il y aura surimpression de texte. Néanmoins, dans \verb|{DispWithArrows}|, l'utilisateur peut
-utiliser la commande \verb|\tagnextline| pour demander manuellement la composition du numéro sur la ligne suivante.
+l'\pkg{amsmath}) : il y aura surimpression de texte. Néanmoins, dans |{DispWithArrows}|, l'utilisateur peut
+utiliser la commande |\tagnextline| pour demander manuellement la composition du numéro sur la ligne suivante.
\begin{Verbatim}
\begin{DispWithArrows}[displaystyle]
S_{2(p+1)}
@@ -1466,9 +1475,8 @@ S_{2(p+1)}
\bigskip
-Les environnements \verb|{DispWithArrows}| et \verb|{DispWithArrows*}| fournissent également une option
-\verb|wrap-lines|. Avec cette option, les lignes de l'étiquette sont automatiquement coupées à droite.\footnote{Il
- est possible d'éviter la coupure des mots avec l'option «\verb|align = flush left|» de Tikz.}\label{wrap-lines}
+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}
\begin{Verbatim}
\begin{DispWithArrows*}[displaystyle,~emphase#wrap-lines@]
@@ -1492,21 +1500,21 @@ S_n
\end{DispWithArrows*}
\bigskip
-L'option \verb|wrap-lines| ne s'applique pas aux environnements \verb|{WithArrows}|
-imbriqués dans un environnement \verb|{DispWithArrows}| ou \verb|{DispWithArrows*}|. Néanmoins,
-elle s'applique aux instructions \verb|\Arrow| et \verb|\MultiArrow| du \verb|code-after|
+L'option |wrap-lines| ne s'applique pas aux environnements |{WithArrows}|
+imbriqués dans un environnement |{DispWithArrows}| ou |{DispWithArrows*}|. Néanmoins,
+elle s'applique aux instructions |\Arrow| et |\MultiArrow| du |code-after|
de l'environnement englobant.
\vspace{1cm}
-Nous avons dit que les environnements \verb|{DispWithArrows}| et \verb|{DispWithArrows*}|
+Nous avons dit que les environnements |{DispWithArrows}| et |{DispWithArrows*}|
devaient être utilisés en mode horizontal et non en mode vertical. Il y a néanmoins
-une exception. Ces environnements peuvent être utilisés directement après un \verb|\item| d'une liste
+une exception. Ces environnements peuvent être utilisés directement après un |\item| d'une liste
LaTeX. Dans ce cas, aucun espace vertical n'est ajouté avant l'environnement.\footnote{Il est possible de désactiver
- cette fonctionnalité avec l'option \verb|standard-behaviour-with-items|.}
+ cette fonctionnalité avec l'option |standard-behaviour-with-items|.}
\medskip
-Voici un exemple où, avec \verb|{DispWithArrows}|, on peut insérer l'équation dans un environnement
-\verb|{enumerate}| tout en utilisant l'option \verb|wrap-lines|.
+Voici un exemple où, avec |{DispWithArrows}|, on peut insérer l'équation dans un environnement
+|{enumerate}| tout en utilisant l'option |wrap-lines|.
\begin{Verbatim}
~emphase#\begin{enumerate}@
@@ -1539,34 +1547,34 @@ $e^{i\frac{2\pi}n}$}\\
\end{enumerate}
\vspace{1cm}
-L'environnement \verb|{DispWithArrows}| est similaire à l'environnement \verb|{align}| de
-l'\pkg{amsmath}. Néanmoins, \verb|{DispWithArrows}| n'est pas construit en utilisant \verb|{align}|
+L'environnement |{DispWithArrows}| est similaire à l'environnement |{align}| de
+l'\pkg{amsmath}. Néanmoins, |{DispWithArrows}| n'est pas construit en utilisant |{align}|
(en fait, il est possible d'utiliser \pkg{witharrows} sans \pkg{amsmath}).
-Il y a quelques différences entre \verb|{DispWithArrows}| et \verb|{align}|.
+Il y a quelques différences entre |{DispWithArrows}| et |{align}|.
\begin{itemize}
-\item L'environnement \verb|{DispWithArrows}| ne peut pas être inséré dans un environment
-\verb|{gather}| de l'\pkg{amsmath}.
-\item Un environment \verb|{DispWithArrows}| est toujours insécable (même avec
-\verb|\allowdisplaybreaks| de l'\pkg{amsmath}).
-\item Les commandes \verb|\label|, \verb|\tag|, \verb|\notag| et \verb|\nonumber| ne sont autorisées
+\item L'environnement |{DispWithArrows}| ne peut pas être inséré dans un environment
+|{gather}| de l'\pkg{amsmath}.
+\item Un environment |{DispWithArrows}| est toujours insécable (même avec
+|\allowdisplaybreaks| de l'\pkg{amsmath}).
+\item Les commandes |\label|, |\tag|, |\notag| et |\nonumber| ne sont autorisées
que dans la dernière colonne.
-\item Après un \verb|\item| d'une liste LaTeX, aucun espace vertical n'est ajouté (cela peut être
-modifié avec l'option \verb|standard-behaviour-with-items|).
+\item Après un |\item| d'une liste LaTeX, aucun espace vertical n'est ajouté (cela peut être
+modifié avec l'option |standard-behaviour-with-items|).
\item
\begin{bfseries}
-Enfin, par défaut, les éléments d'un environnement \verb|\{DispWithArrows\}|
-sont composés en \verb|textstyle| et non en \verb|displaystyle| (il est possible de modifier
-ce point avec l'option \verb|displaystyle|).
+Enfin, par défaut, les éléments d'un environnement |\{DispWithArrows\}|
+sont composés en |textstyle| et non en |displaystyle| (il est possible de modifier
+ce point avec l'option |displaystyle|).
\end{bfseries}
\end{itemize}
\bigskip
En ce qui concerne les références, l'extension \pkg{witharrows} est compatible avec les
-extensions \pkg{autonum}, \pkg{cleveref}, \pkg{fancyref}, \pkg{fncylab},
+extensions \pkg{autonum}, \pkg{cleveref}, \pkg{fancyref},
\pkg{hyperref}, \pkg{listlbls}, \pkg{prettyref}, \pkg{refcheck},
\pkg{refstyle}, \pkg{showlabels}, \pkg{smartref}, \pkg{typedref} et
-\pkg{varioref} et avec les options \verb|showonlyrefs| et \verb|showmanualtags| de
+\pkg{varioref} et avec les options |showonlyrefs| et |showmanualtags| de
\pkg{mathtools}.\footnote{Rappelons que \pkg{varioref}, \pkg{hyperref},
\pkg{cleveref} et \pkg{autonum} doivent être chargés dans cet ordre. L'extension
\pkg{witharrows} peut être chargée n'importe où.}
@@ -1578,19 +1586,19 @@ Elle n'est pas compatible avec \pkg{showkeys} (certains labels ne sont pas affic
\subsection*{L'option <...> de DispWithArrows}
-L'environnement \verb|{DispWithArrows}| propose une option \verb|left-brace|. Si cette option est présente, son
+L'environnement |{DispWithArrows}| propose une option |left-brace|. Si cette option est présente, son
contenu est composé à gauche, suivi d'une accolade (d'où le nom) puis du corps de
-l'environnement.\footnote{L'option \verb|left-brace| peut aussi être utilisée sans valeur: dans ce cas, seule
+l'environnement.\footnote{L'option |left-brace| peut aussi être utilisée sans valeur: dans ce cas, seule
l'accolade est tracée.}
-Pour la lisibilité, cette option \verb|left-brace| est aussi disponible avec une syntaxe spéciale : on peut la
-rentrer en la mettant entre chevrons (\verb|<| et \verb|>|) juste après le \verb|{DispWithArrows}| (et donc avant
+Pour la lisibilité, cette option |left-brace| est aussi disponible avec une syntaxe spéciale : on peut la
+rentrer en la mettant entre chevrons (|<| et |>|) juste après le |{DispWithArrows}| (et donc avant
les éventuels arguments optionnels entre crochets).
\bigskip
On peut alors faire des constructions avec distinctions de cas, comme dans l'exemple
-suivant.\footnote{L'environnement \verb|{cases}| de l'\pkg{amsmath} permet de réaliser de telles distinctions de
- cas mais on ne peut pas utiliser la numérotation automatique des équations. L'environnement \verb|{numcases}| de
+suivant.\footnote{L'environnement |{cases}| de l'\pkg{amsmath} permet de réaliser de telles distinctions de
+ cas mais on ne peut pas utiliser la numérotation automatique des équations. L'environnement |{numcases}| de
l'extension \pkg{cases} (de Donald Arseneau) permet d'utiliser ces numéros d'équations, mais, bien entendu, il
n'y a pas de composition de flèches.}
@@ -1615,8 +1623,8 @@ suivant.\footnote{L'environnement \verb|{cases}| de l'\pkg{amsmath} permet de rÃ
\end{DispWithArrows}
\interitem
-Dans l'exemple suivant, on sous-numérote les équations d'un système avec l'option \verb|subnumerate| (disponible
-quand l'\verb|amsmath| est chargé).
+Dans l'exemple suivant, on sous-numérote les équations d'un système avec l'option |subnumerate| (disponible
+quand l'|amsmath| est chargé).
\begin{Verbatim}
\begin{DispWithArrows}~emphase#< \label{système} (\ref*{système}) \Leftrightarrow >@%
@@ -1635,14 +1643,14 @@ xyz = -15 \label{dernière-équation}
\end{DispWithArrows}
\bigskip
-Le système complet est l'équation \eqref{système} (cette référence a été obtenue avec \verb|\eqref{système}|) et la
-dernière équation est l'équation \eqref{dernière-équation} (référence obtenue avec
-\verb|\eqref{dernière-équation}|). Notons que \verb|\ref*|, utilisé dans le code ci-dessus, est une variante de
-\verb|ref| proposée par \pkg{hyperref} pour composer une référence sans créer de lien.
+Le système complet est l'équation \ref{système} (cette référence a été obtenue avec |\ref{système}|) et la
+dernière équation est l'équation \ref{dernière-équation} (référence obtenue avec
+|\ref{dernière-équation}|). Notons que |\ref*|, utilisé dans le code ci-dessus, est une variante de
+|ref| proposée par \pkg{hyperref} pour composer une référence sans créer de lien.
\bigskip
On peut souhaiter remplacer l'accolade gauche par un autre délimiteur extensible (gauche). On peut le faire avec
-l'option \verb|replace-left-brace-by|. Par exemple «\verb|replace-left-brace-by = [\enskip|» va composer avec un
+l'option |replace-left-brace-by|. Par exemple «|replace-left-brace-by = [\enskip|» va composer avec un
crochet et ajouter aussi un espace de 1~em après le crochet.
\bigskip
@@ -1652,7 +1660,7 @@ crochet et ajouter aussi un espace de 1~em après le crochet.
\label{plain-TeX}
L'extension \pkg{witharrows} peut être utilisée avec plain-TeX. Pour cela, on doit charger l'extension avec
-\verb|\input|:
+|\input|:
%
\begin{Verbatim}
\input{witharrows.tex}
@@ -1661,9 +1669,9 @@ L'extension \pkg{witharrows} peut être utilisée avec plain-TeX. Pour cela, on
\medskip
En plain-TeX, il n'y a pas d'environnements comme dans LaTeX.
-Au lieu de \verb|\begin{WithArrows}| et \verb|\end{WithArrows}| comme en LaTeX, on doit utiliser un
-pseudo-environnement délimité par \verb|\Witharrows| et \verb|\endWithArrows| (de même pour
-\verb|{DispWithArrows}|).
+Au lieu de |\begin{WithArrows}| et |\end{WithArrows}| comme en LaTeX, on doit utiliser un
+pseudo-environnement délimité par |\Witharrows| et |\endWithArrows| (de même pour
+|{DispWithArrows}|).
%
\begin{Verbatim}
$\WithArrows
@@ -1681,27 +1689,27 @@ reposent sur le système de numérotation de LaTeX).
\label{tikz-code}
-L'option \verb|tikz-code|\footnote{Pour des raisons historiques, l'option \verb|tikz-code| a un alias :
- \verb|TikzCode|.} permet à l'utilisateur de changer la forme des flèches.\footnote{Si l'option \verb|wrap-lines|
- est utilisée dans un environnement \verb|{DispWithArrows}| ou \verb|{DispWithArrows*}|, l'option \verb|tikz-code|
+L'option |tikz-code|\footnote{Pour des raisons historiques, l'option |tikz-code| a un alias :
+ |TikzCode|.} permet à l'utilisateur de changer la forme des flèches.\footnote{Si l'option |wrap-lines|
+ est utilisée dans un environnement |{DispWithArrows}| ou |{DispWithArrows*}|, l'option |tikz-code|
n'aura pas d'effet sur les flèches de cet environnement mais uniquement sur les flèches des environnements
- \verb|{WithArrows}| imbriqués.}
+ |{WithArrows}| imbriqués.}
\smallskip
-Par exemple, les options «\verb|up|» et «\verb|down|» décrites précédemment (cf.
-p.~\pageref{up-and-down}) sont programmées en interne avec \verb|tikz-code|.
+Par exemple, les options «|up|» et «|down|» décrites précédemment (cf.
+p.~\pageref{up-and-down}) sont programmées en interne avec |tikz-code|.
\smallskip
La valeur de cette option doit être une instruction de tracé Tikz valide (avec le point-virgule final) où les trois
-marqueurs \verb|#1|, \verb|#2| et \verb|#3| représentent le point de départ, le point d'arrivée et l'étiquette de
+marqueurs |#1|, |#2| et |#3| représentent le point de départ, le point d'arrivée et l'étiquette de
la flèche.
\bigskip
-Par défaut, la valeur de \verb|tikz-code| est la suivante :
+Par défaut, la valeur de |tikz-code| est la suivante :
\smallskip
-\qquad \verb|\draw (#1) to node {#3} (#2) ;|
+\qquad |\draw (#1) to node {#3} (#2) ;|
\bigskip
@@ -1748,8 +1756,8 @@ nœud recouvrant le deuxième segment).
\end{WithArrows}\]
\bigskip
-L'environnement \verb|{DispWithArrows}| et sa version étoilée \verb|{DispWithArrows*}| fournissent une commande
-\verb|\WithArrowsRightX| qui peut être utilisée dans l'option \verb|tikz-code|. Cette commande fournit
+L'environnement |{DispWithArrows}| et sa version étoilée |{DispWithArrows*}| fournissent une commande
+|\WithArrowsRightX| qui peut être utilisée dans l'option |tikz-code|. Cette commande fournit
l'abscisse de la marge droite de la boîte de composition courante (en prenant en compte les éventuels numéros des
équations). Pour un exemple d'utilisation, voir p.~\pageref{example-WithArrowsRightX}.
@@ -1757,15 +1765,15 @@ l'abscisse de la marge droite de la boîte de composition courante (en prenant e
\bigskip
\subsection{La commande \textbackslash WithArrowsNewStyle}
-L'extension \pkg{witharrows} fournit une commande \verb|\WithArrowsNewStyle| pour définir
+L'extension \pkg{witharrows} fournit une commande |\WithArrowsNewStyle| pour définir
des styles d'une manière similaire aux «styles» de Tikz.
-La commande \verb|\WithArrowsNewStyle| prend deux arguments obligatoires. Le premier est
+La commande |\WithArrowsNewStyle| prend deux arguments obligatoires. Le premier est
le nom du style et le second est une liste de couples clé-valeur. La portée
-de la definition ainsi faite par \verb|\WithArrowsNewStyle| est le groupe TeX courant.
+de la definition ainsi faite par |\WithArrowsNewStyle| est le groupe TeX courant.
-Le style peut être utilisé comme une clé au niveau du document (avec \verb|\WithArrowsOptions|), au niveau d'un
-environnement (via les arguments optionnels) ou bien encore dans une autre commande \verb|\WithArrowsNewStyle|.
+Le style peut être utilisé comme une clé au niveau du document (avec |\WithArrowsOptions|), au niveau d'un
+environnement (via les arguments optionnels) ou bien encore dans une autre commande |\WithArrowsNewStyle|.
Pour un exemple d'utilisation, voir p.~\pageref{example-WithArrowsRightX}.
@@ -1774,15 +1782,15 @@ Pour un exemple d'utilisation, voir p.~\pageref{example-WithArrowsRightX}.
\subsection{Positionnement vertical des flèches}
Il y a quatre paramètres pour ajuster finement la position verticale des flèches :
-\verb|ygap|, \verb|ystart|, \verb|start-adjust| et \verb|end-adjust|.
+|ygap|, |ystart|, |start-adjust| et |end-adjust|.
\medskip
-Nous expliquons d'abord le comportement quand les paramètres \verb|start-adjust| et \verb|end-adjust| sont égaux à
+Nous expliquons d'abord le comportement quand les paramètres |start-adjust| et |end-adjust| sont égaux à
zéro:
\begin{itemize}
-\item l'option \verb|ystart| représente la distance verticale entre la ligne de base du
+\item l'option |ystart| représente la distance verticale entre la ligne de base du
texte et le début de la flèche (valeur par défaut : $0.4$~ex);
-\item l'option \verb|ygap| représente la distance verticale entre deux flèches consécutives
+\item l'option |ygap| représente la distance verticale entre deux flèches consécutives
(valeur par défaut : $0.4$~ex).
\end{itemize}
@@ -1811,13 +1819,13 @@ $\begin{WithArrows}[interline=1mm, adjust = 0pt]
\interitem
Néanmoins, pour des raisons esthétiques, quand il est possible, \pkg{witharrows} commence
-la flèche un peu plus haut (d'une quantité \verb|start-adjust|) et termine la flèche un peu plus
-bas (par une quantité \verb|end-adjust|). Par défaut, ces deux paramètres \verb|start-adjust|
-est \verb|end-adjust| sont égaux à $0.4$~ex.
+la flèche un peu plus haut (d'une quantité |start-adjust|) et termine la flèche un peu plus
+bas (par une quantité |end-adjust|). Par défaut, ces deux paramètres |start-adjust|
+est |end-adjust| sont égaux à $0.4$~ex.
\bigskip
-Voici par exemple le comportement sans le mécanisme de \verb|start-adjust| et
-\verb|end-adjust| (c'était le comportement par défaut dans les versions antérieures à la version 1.13).
+Voici par exemple le comportement sans le mécanisme de |start-adjust| et
+|end-adjust| (c'était le comportement par défaut dans les versions antérieures à la version 1.13).
\begin{Verbatim}
$\begin{WithArrows}~emphase#[start-adjust=0pt, end-adjust=0pt]@
A & = (a+1)^2 \Arrow{on développe} \\
@@ -1833,7 +1841,7 @@ A & = (a+1)^2 \Arrow{on développe} \\
\bigskip
Voici le comportement par défaut depuis la version 1.13 (les paramètres
-\verb|start-adjust| et \verb|end-ajust| sont utilisés avec la valeur par défaut $0.4$~ex). La flèche
+|start-adjust| et |end-ajust| sont utilisés avec la valeur par défaut $0.4$~ex). La flèche
est plus longue et le résultat est plus esthétique.
\medskip
@@ -1844,34 +1852,97 @@ A & = (a+1)^2 \Arrow{on développe} \\
\bigskip
-Il est possible d'utiliser l'option \verb|adjust| qui fixe à la fois \verb|start-adjust| et \verb|end-ajust|.
+Il est possible d'utiliser l'option |adjust| qui fixe à la fois |start-adjust| et |end-ajust|.
\bigskip
-Puisque le mécanisme de \verb|start-adjust| et \verb|end-ajust| a été ajouté dans la
+Puisque le mécanisme de |start-adjust| et |end-ajust| a été ajouté dans la
version 1.13 of \pkg{witharrows}, cette version n'est pas strictement compatible avec
les versions précédentes. Néanmoins, il est possible de retrouver le comportement précédent
-en fixant simplement \verb|start-adjust| et \verb|end-adjust| à $0$~pt:
+en fixant simplement |start-adjust| et |end-adjust| à $0$~pt:
\begin{Verbatim}
\WithArrowsOptions{adjust = 0pt}
\end{Verbatim}
\bigskip
+Depuis la version 2.1 de \pkg{witharrows}, une flèche de |jump| égal à~$1$ a une longueur\footnote{On appelle
+ \emph{longueur} de la flèche la différence entre l'ordonnée du point de départ et l'ordonnée du point d'arrivée.}
+maximale égale au paramètre |max-length-of-arrow|. La valeur par défaut de ce paramètre est égale à~$2$~cm.
+
+Dans l'exemple suivant, la valeur de |max-length-of-arrow| a été fixée à $1.5$~cm.
+\begin{Verbatim}
+\[\begin{WithArrows}[~emphase#max-length-of-arrow = 1.5cm@]
+A
+& =
+\begin{vmatrix}
+1 & a & a^2 & a^3 & a^4 \\
+1 & b & b^2 & b^3 & b^4 \\
+1 & c & c^2 & c^3 & c^4 \\
+1 & d & d^2 & d^3 & d^4 \\
+1 & e & e^2 & e^3 & e^4
+\end{vmatrix}
+\Arrow{
+$L_2 \gets L_2-L_1$ \\
+$L_3 \gets L_3-L_1$ \\
+$L_4 \gets L_4-L_1$ \\
+$L_5 \gets L_5-L_1$ % ne pas mettre de \\ ici
+} \\
+& =
+\begin{vmatrix}
+1 & a & a^2 & a^3 & a^4 \\
+0 & b-a & b^2-a^2 & b^3-a^3 & b^4-a^4 \\
+0 & c-a & c^2-a^2 & c^3-a^3 & c^4-a^4 \\
+0 & d-a & d^2-a^2 & d^3-a^3 & d^4-a^4 \\
+0 & e-a & e^2-a^2 & e^3-a^3 & e^4-a^4
+\end{vmatrix}
+\end{WithArrows}\]
+\end{Verbatim}
+
+
+\bigskip
+\[\begin{WithArrows}[max-length-of-arrow = 1.5cm]
+A
+& =
+\begin{vmatrix}
+1 & a & a^2 & a^3 & a^4 \\
+1 & b & b^2 & b^3 & b^4 \\
+1 & c & c^2 & c^3 & c^4 \\
+1 & d & d^2 & d^3 & d^4 \\
+1 & e & e^2 & e^3 & e^4
+\end{vmatrix}
+\Arrow{
+$L_2 \gets L_2-L_1$ \\
+$L_3 \gets L_3-L_1$ \\
+$L_4 \gets L_4-L_1$ \\
+$L_5 \gets L_5-L_1$
+} \\
+& =
+\begin{vmatrix}
+1 & a & a^2 & a^3 & a^4 \\
+0 & b-a & b^2-a^2 & b^3-a^3 & b^4-a^4 \\
+0 & c-a & c^2-a^2 & c^3-a^3 & c^4-a^4 \\
+0 & d-a & d^2-a^2 & d^3-a^3 & d^4-a^4 \\
+0 & e-a & e^2-a^2 & e^3-a^3 & e^4-a^4
+\end{vmatrix}
+\end{WithArrows}\]
+
+
+\bigskip
\subsection{Notes de pied de page dans les environnements de witharrows}
Si vous voulez mettre des notes de pied de page dans un environnement de \pkg{witharrows},
-vous pouvez utiliser une paire \verb|\footnotemark|--\verb|\footnotetext|.
+vous pouvez utiliser une paire |\footnotemark|--|\footnotetext|.
\smallskip
Il est aussi possible d'extraire les notes de pieds de page avec l'extension \pkg{footnote} ou bien l'extension
\pkg{footnotehyper}.
\smallskip
-Si \pkg{witharrows} est chargée avec l'option \verb|footnote| (avec \verb|\usepackage[footnote]{witharrows}| ou
-avec \verb|\PassOptionsToPackage|), l'extension \pkg{footnote} est chargée (si elle ne l'est pas déjà) et elle est
+Si \pkg{witharrows} est chargée avec l'option |footnote| (avec |\usepackage[footnote]{witharrows}| ou
+avec |\PassOptionsToPackage|), l'extension \pkg{footnote} est chargée (si elle ne l'est pas déjà) et elle est
utilisée pour extraire les notes de pied de page.
\smallskip
-Si \pkg{witharrows} est chargée avec l'option \verb|footnotehyper|, l'extension \pkg{footnotehyper} est chargée (si
+Si \pkg{witharrows} est chargée avec l'option |footnotehyper|, l'extension \pkg{footnotehyper} est chargée (si
elle ne l'est pas déjà) et elle est utilisée pour extraire les notes de pied de page.
\smallskip
@@ -1882,7 +1953,7 @@ en particulier, elle doit être chargée après l'extension \pkg{xcolor} et elle
compatible avec \pkg{hyperref}.
\medskip
-Dans ce document, l'extension \pkg{witharrows} a été chargée avec l'option \verb|footnotehyper| et nous donnons un
+Dans ce document, l'extension \pkg{witharrows} a été chargée avec l'option |footnotehyper| et nous donnons un
exemple avec une note de pied de page dans l'étiquette d'une flèche :
@@ -1896,7 +1967,7 @@ A & = (a+b)^2
\bigskip
\subsection{L'option no-arrows}
-L'option \verb|no-arrows| est une facilité donnée à l'utilisateur. Avec cette option,
+L'option |no-arrows| est une facilité donnée à l'utilisateur. Avec cette option,
les flèches ne sont pas tracées. Néanmoins, une analyse des flèches est effectuée et certaines erreurs sont
détectées (par exemple, si une flèche arrive après la dernière ligne de l'environnement).
@@ -1906,28 +1977,28 @@ détectées (par exemple, si une flèche arrive après la dernière ligne de l'e
Si vous définissez un environnement s'appuyant sur un environnement de
\pkg{witharrows}, nous recommandons de faire appel à l'environnement de \pkg{witharrows} avec
-\verb|\WithArrows|--\verb|\endWithArrows| ou \verb|\DispWithArrows|--\verb|\endDispWithArrows| (et
-non \verb|\begin{WithArrows}|--\verb|\end{WithArrows}|, etc.).
+|\WithArrows|--|\endWithArrows| ou |\DispWithArrows|--|\endDispWithArrows| (et
+non |\begin{WithArrows}|--|\end{WithArrows}|, etc.).
\smallskip
En faisant ainsi, les messages d'erreur affichés par \pkg{witharrows} mentionneront (le cas échéant) le nom de
votre environnement et seront plus faciles à comprendre pour l'utilisateur final.
\smallskip
-Par exemple, vous pouvez définir un environnement \verb|{DWA}| qui va être un alias de \verb|{DispWithArrows}|:
+Par exemple, vous pouvez définir un environnement |{DWA}| qui va être un alias de |{DispWithArrows}|:
\begin{BVerbatim}
\NewDocumentEnvironment {DWA} {} {\DispWithArrows}{\endDispWithArrows}
\end{BVerbatim}
\smallskip
-Si vous utilisez cet environnement \verb|{DWA}| en mode mathématique, vous aurez le message d'erreur suivant :
+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.
\end{BVerbatim}
\interitem
-Une autre exemple est donné en interne par la définition de l'environnement \verb|{DispWithArrows*}|
+Une autre exemple est donné en interne par la définition de l'environnement |{DispWithArrows*}|
dans l'extension \pkg{witharrows} avec le code suivant:
\begin{Verbatim}
\NewDocumentEnvironment {DispWithArrows*} {}
@@ -1942,9 +2013,9 @@ dans l'extension \pkg{witharrows} avec le code suivant:
\subsection{\textbackslash MoveEqLeft}
-Il est possible d'utiliser \verb|\MoveEqLeft| de \pkg{mathtools}. Dans ce cas, on doit se souvenir que la commande
-\verb|\MoveEqLeft| a aussi la valeur d'une esperluette (\verb|&|). Il faut en tenir compte pour le positionnement
-d'une éventuelle commande \verb|\Arrow|.
+Il est possible d'utiliser |\MoveEqLeft| de \pkg{mathtools}. Dans ce cas, on doit se souvenir que la commande
+|\MoveEqLeft| a aussi la valeur d'une esperluette (|&|). Il faut en tenir compte pour le positionnement
+d'une éventuelle commande |\Arrow|.
%
@@ -1964,10 +2035,10 @@ $\begin{WithArrows}[interline=0.5ex]
\medskip
$\begin{WithArrows}[interline=0.5ex]
\MoveEqLeft \arccos(x) = \arcsin \frac45 + \arcsin \frac5{13}
-\Arrow{parce que les deux sont dans $[-\frac{\pi}2,\frac{\pi}2]$} \\
+\Arrow{parce que les deux sont dans \([-\frac{\pi}2,\frac{\pi}2]\)} \\
& \Leftrightarrow x = \sin\left(\arcsin\frac45 + \arcsin\frac5{13}\right) \\
& \Leftrightarrow x = \frac45\cos\arcsin\frac5{13} + \frac5{13} \cos\arcsin\frac45
-\Arrow{$\forall x \in [-1,1], \cos(\arcsin x) = \sqrt{1-x^2}$} \\
+\Arrow{\(\forall x \in [-1,1], \cos(\arcsin x) = \sqrt{1-x^2}\)} \\
& \Leftrightarrow x = \frac45\sqrt{1-\bigl(\frac5{13}\bigr)^2}
+ \frac5{13}\sqrt{1-\bigl(\frac45\bigr)^2}
\end{WithArrows}$
@@ -1977,7 +2048,7 @@ $\begin{WithArrows}[interline=0.5ex]
\subsection{Modifier la forme des nœuds}
Il est possible de changer la forme des étiquettes, qui sont des nœuds Tikz, en
-modifiant la clé «\verb|every node|» de Tikz.
+modifiant la clé «|every node|» de Tikz.
\begin{Verbatim}
\begin{WithArrows}%
@@ -2015,22 +2086,22 @@ modifiant la clé «\verb|every node|» de Tikz.
\bigskip
\subsection{Exemples avec l'option tikz-code}
-Rappelons que l'option \verb|tikz-code| est le code Tikz utilisé par \pkg{witharrows}
-pour tracer les flèches.\footnote{Si un environnement \verb|{DispWithArrows}| ou
-\verb|{DispWithArrows*}| est utilisé avec l'option \verb|wrap-lines|, la valeur de l'option
-\verb|tikz-code| n'est pas utilisée pour cet environnement (mais est utilisée pour les
+Rappelons que l'option |tikz-code| est le code Tikz utilisé par \pkg{witharrows}
+pour tracer les flèches.\footnote{Si un environnement |{DispWithArrows}| ou
+|{DispWithArrows*}| est utilisé avec l'option |wrap-lines|, la valeur de l'option
+|tikz-code| n'est pas utilisée pour cet environnement (mais est utilisée pour les
environnements imbriqués à l'intérieur).}
\smallskip
-La valeur par défaut de \verb|tikz-code| est \verb|\draw (#1) to node {#3} (#2) ;|
-où les trois marqueurs \verb|#1|, \verb|#2| et \verb|#3| représentent le point de départ, le point d'arrivée
+La valeur par défaut de |tikz-code| est |\draw (#1) to node {#3} (#2) ;|
+où les trois marqueurs |#1|, |#2| et |#3| représentent le point de départ, le point d'arrivée
et l'étiquette de la flèche.
\bigskip
\subsubsection{Exemple 1}
-Dans l'exemple suivant, nous définissons la valeur de \verb|tikz-code| avec deux
-instructions \verb|\path| : la première instruction trace la flèche elle-même et la seconde
+Dans l'exemple suivant, nous définissons la valeur de |tikz-code| avec deux
+instructions |\path| : la première instruction trace la flèche elle-même et la seconde
place l'étiquette dans un nœud Tikz dans le rectangle délimité par la flèche.
\begin{Verbatim}
@@ -2038,7 +2109,7 @@ place l'étiquette dans un nœud Tikz dans le rectangle délimité par la flèch
[displaystyle,
ygap = 2mm,
ystart = 0mm,
- ~emphase#tikz-code = {\draw (~#1) -- ++(4.5cm,0) \verb|- (~#2) ;@
+ ~emphase#tikz-code = {\draw (~#1) -- ++(4.5cm,0) |- (~#2) ;@
~emphase# \path (~#1) -- (~#2) @
~emphase# node[text width = 4.2cm, right, midway] {~#3} ;}@]
S_n
@@ -2072,10 +2143,10 @@ S_n
\subsubsection{Exemple 2}
\label{example-WithArrowsRightX}
-Il est possible de modifier l'exemple précédent pour avoir «\verb|text width|» calculé automatiquement en fonction
-de la marge droite (d'une manière similaire à l'option \verb|wrap-lines|) dans les environnements
-\verb|{DispWithArrows}| et \verb|{DispWithArrows*}|. Dans la définition de \verb|tikz-code|, nous utilisons la commande
-\verb|\WithArrowsRightX| qui donne l'abscisse de la marge droite de la boîte de composition (pour TeX, il s'agit d'une commande
+Il est possible de modifier l'exemple précédent pour avoir «|text width|» calculé automatiquement en fonction
+de la marge droite (d'une manière similaire à l'option |wrap-lines|) dans les environnements
+|{DispWithArrows}| et |{DispWithArrows*}|. Dans la définition de |tikz-code|, nous utilisons la commande
+|\WithArrowsRightX| qui donne l'abscisse de la marge droite de la boîte de composition (pour TeX, il s'agit d'une commande
et non d'une dimension). Pour la lisibilité, nous avons utilisé un style de \pkg{witharrows}. Cet exemple nécessite
l'extension Tikz \pkg{calc}.
@@ -2199,9 +2270,9 @@ 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 \verb|\BoucleNumérotée| qui fera le travail quand elle
-sera utilisée dans le \verb|code-after|. Dans l'exemple suivant, nous avons écrit cette commande avec
-\verb|\NewDocumentCommand| de \pkg{xparse} et \verb|\foreach| de \pkg{pgffor} (ces deux
+possible d'écrire une commande dédiée |\BoucleNumérotée| 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}
@@ -2212,7 +2283,7 @@ extensions sont chargées quand \pkg{witharrows} est chargé.).
\Arrow[rr,xoffset=1cm,tikz=<-]{1}{\WithArrowsNbLines}{\WithArrowsNbLines}}
\end{Verbatim}
-La commande \verb|\WithArrowsNbLines| est une commande disponible dans le \verb|code-after| qui donne
+La commande |\WithArrowsNbLines| est une commande disponible dans le |code-after| qui donne
le nombre total de lignes (=rangées) dans l'environnement courant (pour TeX, il s'agit d'une commande et non d'un
compteur).
@@ -2248,9 +2319,9 @@ e.\;& f \text{ est lipschitzienne}
\bigskip
Comme d'habitude, il est possible changer les caractéristiques des flèches et des nœuds
-avec l'option \verb|tikz|. Néanmoins, si nous voulons changer le style pour avoir, par
+avec l'option |tikz|. Néanmoins, si nous voulons changer le style pour avoir, par
exemple, les numéros entre parenthèses, le moyen le plus rapide est de changer la valeur de
-\verb|tikz-code|:
+|tikz-code|:
\begin{Verbatim}
tikz-code = {\draw (~#1) to node {\footnotesize (~#3)} (~#2) ;}
diff --git a/macros/generic/witharrows/witharrows.dtx b/macros/generic/witharrows/witharrows.dtx
index 8dc046bd9d..96fd85f7f6 100644
--- a/macros/generic/witharrows/witharrows.dtx
+++ b/macros/generic/witharrows/witharrows.dtx
@@ -1,4 +1,4 @@
-% \iffalse meta-comment
+%\iffalse meta-comment
%
% Copyright (C) 2017-2019 by F. Pantigny
% -----------------------------------
@@ -15,8 +15,8 @@
%
% \fi
% \iffalse
-\def\myfileversion{2.0}
-\def\myfiledate{2019/07/30}
+\def\myfileversion{2.1}
+\def\myfiledate{2019/10/21}
%
%
%<*batchfile>
@@ -55,6 +55,7 @@ version 2005/12/01 or later.
\usepackage{amssymb}
\usepackage[only,llbracket,rrbracket]{stmaryrd}
\usepackage{varwidth}
+\labelformat{equation}{(#1)}
\NewDocumentEnvironment {scope} {} {} {}
\def\interitem{\vskip 7mm plus 2 mm minus 3mm}
\def\emphase{\bgroup\color{RoyalPurple}\let\next=}
@@ -75,13 +76,15 @@ version 2005/12/01 or later.
%
% \maketitle
%
-% \hypersetup{
-% pdfinfo = {
-% Title = { The extension 'witharrows' },
-% Subject = { A extension for plain-TeX and LaTeX} ,
-% Author = { F. Pantigny }
+% \hypersetup
+% {
+% pdfinfo =
+% {
+% Title = { The extension 'witharrows' } ,
+% Subject = { An extension for plain-TeX and LaTeX} ,
+% Author = { F. Pantigny }
+% }
% }
-% }
%
%
% \begin{abstract}
@@ -93,7 +96,8 @@ version 2005/12/01 or later.
% \end{abstract}
%
%
-% \vspace{1cm} In this document, we describe the LaTeX extension
+% \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
@@ -263,7 +267,11 @@ version 2005/12/01 or later.
% \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 with the option ``|align = flush left|'' of Tikz.}
+% hyphenations of the words: use the Tikz option ``|align = flush left|'' in
+% LaTeX and ``|align = {flushleft,nothyphenated}|'' in ConTeXt.}
+% \newcounter{fnnohyphen}
+% \setcounter{fnnohyphen}{\thefootnote}
+%
% %
% \begin{Verbatim}
% $\begin{WithArrows}
@@ -680,9 +688,10 @@ version 2005/12/01 or later.
% \bigskip
% In an environment which uses the option |group| or the option |groups|, it's
% still possible to give an option of position (|ll|, |lr|, |rl|, |rr| or |i|)
-% to an individual arrow. Such arrow will be drawn irrespective of the groups.
-% It's also possible to start a new group by applying the option |new-group| to
-% an given arrow.
+% to an individual arrow\footnote{Such an arrow will be called
+% \emph{independent} in the technical documentation}. Such arrow will be drawn
+% irrespective of the groups. It's also possible to start a new group by
+% applying the option |new-group| to an given arrow.
%
% \bigskip
% If desired, the option |group| or the option |groups| can be given to the
@@ -692,11 +701,11 @@ version 2005/12/01 or later.
%
%
% \vspace{1cm}
-% In the following example, we have used the option |group| for the environment
-% and the option |rr| for the last arrow (that's why the last arrow is not
+% In the following example, we have used the option |groups| for the environment
+% and the option |new-group| for the last arrow (that's why the last arrow is not
% aligned with the others).
%
-% $\begin{WithArrows}[interline=1mm,group]
+% $\begin{WithArrows}[interline=1mm,groups]
% \sum\limits_{k=0}^n\frac{\cos kx}{\cos^k x}
% & = \sum\limits_{k=0}^n \frac{\Re (e^{ikx})}{(\cos x)^k}
% \Arrow{$(\cos x)^k$ is real} \\
@@ -711,7 +720,7 @@ version 2005/12/01 or later.
% & = \Re \left(\frac{\frac{\cos^{n+1}x-e^{i(n+1)x}}{\cos^{n+1}x}}{\frac{\cos x-e^{ix}}{\cos x}}\right)
% \Arrow{$\Re(kz) = k\cdot\Re(z)$ if $k$ is real} \\
% & = \frac1{\cos^n x}\Re \left(\frac{\cos^{n+1}x-e^{i(n+1)x}}{\cos x-e^{ix}}\right)
-% \Arrow[rr]{algebraic form of the complexes} \\
+% \Arrow[new-group]{algebraic form of the complexes} \\
% & =\frac1{\cos^n x}\Re\left(\frac{\cos^{n+1}x-(\cos(n+1)x+i\sin(n+1)x)}{\cos x-(\cos x+i\sin x)}\right) \\
% & =\frac1{\cos^n x}\Re\left(\frac{(\cos^{n+1}x-\cos(n+1)x)-i\sin(n+1)x}{-i\sin x}\right) \\
% & = \frac1{\cos^nx}\cdot\frac{\sin(n+1)x}{\sin x}
@@ -996,7 +1005,7 @@ version 2005/12/01 or later.
%
% \bigskip
% However, one may want to draw an arrow between rows that are not in the same
-% environment. For example, one may want to draw the following arrow :
+% environment. For example, one may want to draw the following arrow :\par\nobreak
%
% \bigskip
% $\begin{WithArrows}[code-after = \Arrow[v]{1-2}{2-2}{division by $2$} ]
@@ -1209,7 +1218,7 @@ version 2005/12/01 or later.
% \begin{itemize}
% \item the command |\WithArrowsLastEnv| gives the number of the last
% environment of level~$0$ (\emph{i.e.} which is not included in another
-% environnment of the package \pkg{witharrows});
+% environment of the package \pkg{witharrows});
%
% \item a name can be given to a given environment with the option |name| and,
% in this case, the nodes created in the environment will have aliases
@@ -1362,12 +1371,13 @@ version 2005/12/01 or later.
% A & = (a+1)^2 \Arrow{we expand} \notag \\
% & = a^2 + 2a + 1 \tag{$\star$} \label{my-equation}
% \end{DispWithArrows}
-% A link to the equation \eqref{my-equation}. This link has been composed with
-% |\eqref{my-equation}| (the command |\eqref| is a command of \pkg{amsmath}).
+% A link to the equation \ref{my-equation}.\footnote{In this document, the
+% references has been customized with |\labelformat{equation}{(#1)}|}
+%
%
% \medskip
% If \pkg{amsmath} (or \pkg{mathtools}) is loaded, it's also possible to use
-% |\tag*| which, as in \pkg{amsmath}, typesets the tag without the parenthesis.
+% |\tag*| which, as in \pkg{amsmath}, typesets the tag without the parentheses.
% For example, it's possible to use it to put the symbol |\square| of
% \pkg{amssymb}. This symbol is often used to mark the end of a
% proof.\footnote{Notice that the environment |{DispWithArrows}| is compatible
@@ -1502,7 +1512,7 @@ version 2005/12/01 or later.
% \begin{DispWithArrows}[displaystyle]
% S_{2(p+1)}
% & =\sum_{k=1}^{2(p+1)} (-1)^k k^2 \\
-% & \smash[b]{=\sum_{k=1}^{2p}(-1)^kk²
+% & \smash[b]{=\sum_{k=1}^{2p}(-1)^kk
% +(-1)^{2p+1}(2p+1)^2+(-1)^{2p+2}(2p+2)^2} ~emphase#\tagnextline@ \\
% &= S_{2p}-(2p+1)^2+(2p+2)^2\\
% &=p(2p+1)-(2p+1)^2+(2p+2)^2\\
@@ -1530,8 +1540,7 @@ version 2005/12/01 or later.
% \bigskip
% The environments |{DispWithArrows}| and |{DispWithArrows*}| provide an option
% |wrap-lines|. With this option, the lines of the label are automatically
-% wrapped on the right.\footnote{It's possible to avoid the hyphenations of the
-% words with the option ``|align = flush left|'' of Tikz.}\label{wrap-lines}
+% wrapped on the right.\footnotemark[\thefnnohyphen]\label{wrap-lines}
%
% \begin{Verbatim}
% \begin{DispWithArrows*}[displaystyle,~emphase#wrap-lines@]
@@ -1626,7 +1635,7 @@ version 2005/12/01 or later.
%
% \bigskip
% Concerning the references, the package \pkg{witharrows} is compatible with the
-% extensions \pkg{autonum}, \pkg{cleveref}, \pkg{fancyref}, \pkg{fncylab},
+% extensions \pkg{autonum}, \pkg{cleveref}, \pkg{fancyref},
% \pkg{hyperref}, \pkg{listlbls}, \pkg{prettyref}, \pkg{refcheck},
% \pkg{refstyle}, \pkg{showlabels}, \pkg{smartref}, \pkg{typedref} and
% \pkg{varioref}, and with the options |showonlyrefs| and |showmanualtags| of
@@ -1700,9 +1709,9 @@ version 2005/12/01 or later.
%
% \bigskip
% The whole system is the equation \eqref{system} (this reference has been coded
-% by |\eqref{system}|) whereas the last equation is the equation
-% \eqref{last-equation} (this reference has been coded by
-% |\eqref{last-equation}|). The command |\ref*| used in the code above is
+% by |\ref{system}|) whereas the last equation is the equation
+% \ref{last-equation} (this reference has been coded by
+% |\ref{last-equation}|). The command |\ref*| used in the code above is
% provided by \pkg{hyperref}. It's a variant of |\ref| which doesn't create
% interactive link.
%
@@ -1721,13 +1730,13 @@ version 2005/12/01 or later.
% The extension \pkg{witharrows} can be used with plain-TeX. In this case, the
% extension must be loaded with |\input|:
% \begin{Verbatim}
-% \input{witharrows.tex}
+% \input{witharrows}
% \end{Verbatim}
%
% \medskip
% In plain-TeX, there is not environments as in LaTeX. Instead of using the
% environment |{Witharrows}|, with |\begin{WithArrows}| and |\end{WithArrows}|,
-% one should use a pseudo-environnement delimited by |\WithArrows| and
+% one should use a pseudo-environment delimited by |\WithArrows| and
% |\endWithArrows| (idem for |{DispWithArrows}|).
%
% \begin{Verbatim}
@@ -1916,14 +1925,71 @@ version 2005/12/01 or later.
% It's also possible to use the option |adjust| which sets both |start-adjust|
% and |end-ajust|.
%
-% \bigskip
-% Since the mechanism of |start-adjust| and |end-ajust| has been added in
-% version 1.13 of \pkg{witharrows}, that version is not stricty compatible with
-% older versions. However, it's possible to restore the previous behaviour
-% simply by setting |start-adjust| and |end-adjust| to $0$~pt:
+% \interitem
+% Since the version 2.1 of \pkg{witharrows}, an arrow of |jump| equal to~$1$ has
+% a maximal length\footnote{We call \emph{length} of an arrow the difference
+% between the $y$-value of its start point and the $y$~value of its end point.}
+% equal to the parameter |max-length-of-arrow|. The default value of this
+% parameter est $2$~cm.
+%
+% In the following example, the value of |max-length-of-arrow| has been fixed to
+% $1.5$~cm.
% \begin{Verbatim}
-% \WithArrowsOptions{adjust = 0pt}
+% \[\begin{WithArrows}[~emphase#max-length-of-arrow = 1.5cm@]
+% A
+% & =
+% \begin{vmatrix}
+% 1 & a & a^2 & a^3 & a^4 \\
+% 1 & b & b^2 & b^3 & b^4 \\
+% 1 & c & c^2 & c^3 & c^4 \\
+% 1 & d & d^2 & d^3 & d^4 \\
+% 1 & e & e^2 & e^3 & e^4
+% \end{vmatrix}
+% \Arrow{
+% $L_2 \gets L_2-L_1$ \\
+% $L_3 \gets L_3-L_1$ \\
+% $L_4 \gets L_4-L_1$ \\
+% $L_5 \gets L_5-L_1$ % don't put \\ ici
+% } \\
+% & =
+% \begin{vmatrix}
+% 1 & a & a^2 & a^3 & a^4 \\
+% 0 & b-a & b^2-a^2 & b^3-a^3 & b^4-a^4 \\
+% 0 & c-a & c^2-a^2 & c^3-a^3 & c^4-a^4 \\
+% 0 & d-a & d^2-a^2 & d^3-a^3 & d^4-a^4 \\
+% 0 & e-a & e^2-a^2 & e^3-a^3 & e^4-a^4
+% \end{vmatrix}
+% \end{WithArrows}\]
% \end{Verbatim}
+%
+%
+% \bigskip
+% \[\begin{WithArrows}[max-length-of-arrow = 1.5cm]
+% A
+% & =
+% \begin{vmatrix}
+% 1 & a & a^2 & a^3 & a^4 \\
+% 1 & b & b^2 & b^3 & b^4 \\
+% 1 & c & c^2 & c^3 & c^4 \\
+% 1 & d & d^2 & d^3 & d^4 \\
+% 1 & e & e^2 & e^3 & e^4
+% \end{vmatrix}
+% \Arrow{
+% $L_2 \gets L_2-L_1$ \\
+% $L_3 \gets L_3-L_1$ \\
+% $L_4 \gets L_4-L_1$ \\
+% $L_5 \gets L_5-L_1$
+% } \\
+% & =
+% \begin{vmatrix}
+% 1 & a & a^2 & a^3 & a^4 \\
+% 0 & b-a & b^2-a^2 & b^3-a^3 & b^4-a^4 \\
+% 0 & c-a & c^2-a^2 & c^3-a^3 & c^4-a^4 \\
+% 0 & d-a & d^2-a^2 & d^3-a^3 & d^4-a^4 \\
+% 0 & e-a & e^2-a^2 & e^3-a^3 & e^4-a^4
+% \end{vmatrix}
+% \end{WithArrows}\]
+%
%
% \bigskip
% \subsection{Footnotes in the environments of witharrows}
@@ -2326,7 +2392,7 @@ version 2005/12/01 or later.
% \bigskip
% As usual, it's possible to change the characteristic of both arrows and nodes
% with the option |tikz|. However, if we want to change the style to have, for
-% example, numbers in parenthesis, the best way is to change the value of
+% example, numbers in round brackets, the best way is to change the value of
% |tikz-code|:
%
% \begin{Verbatim}
@@ -2436,7 +2502,7 @@ version 2005/12/01 or later.
\cs_new_protected:Npn \@@_msg_redirect_name:nn
{ \msg_redirect_name:nnn { witharrows } }
\cs_new_protected:Npn \@@_error:n { \msg_error:nn { witharrows } }
-\cs_new_protected:Npn \@@_warning:n { \msg_error:nn { witharrows } }
+\cs_new_protected:Npn \@@_warning:n { \msg_warning:nn { witharrows } }
\cs_new_protected:Npn \@@_fatal:n { \msg_fatal:nn { witharrows } }
\cs_new_protected:Npn \@@_error:nn { \msg_error:nnn { witharrows } }
\cs_generate_variant:Nn \@@_error:nn { n x }
@@ -2533,7 +2599,7 @@ version 2005/12/01 or later.
}
% \end{macrocode}
% The flag |\g_@@_footnote_bool| is raised and so, we will only have to test
-% |\g_@@_footnote_bool| in order to know if we have to insert an environnement
+% |\g_@@_footnote_bool| in order to know if we have to insert an environment
% |{savenotes}| (the |\begin{savenotes}| is in |\@@_pre_halign:n| and
% |\end{savenotes}| at the end of the environments |{WithArrows}| and
% |{DispWithArrows}|).
@@ -2607,7 +2673,7 @@ version 2005/12/01 or later.
}
{
\cs_new_protected:Npn \@@_strcmp:nn #1 #2
- { \pdftex_strcmp:D { #1 } { #2 } }
+ { \tex_strcmp:D { #1 } { #2 } }
}
% \end{macrocode}
%
@@ -3062,6 +3128,9 @@ version 2005/12/01 or later.
% \begin{macrocode}
\keys_define:nn { WithArrows / Global }
{
+ max-length-of-arrow .dim_set:N = \l_@@_max_length_of_arrow_dim ,
+ max-length-of-arrow .value_required:n = true ,
+ max-length-of-arrow .initial:n = 2 cm ,
ygap .dim_set:N = \l_@@_ygap_dim ,
ygap .value_required:n = true ,
ygap .initial:n = 0.4 ex ,
@@ -3342,7 +3411,7 @@ version 2005/12/01 or later.
displaystyle, end-adjust,
format, group, groups, i,
interline, jot, ll,
- lr, more-columns, name,
+ lr, max-length-of-arrow, more-columns, name,
no-arrows, rl, rr,
show-node-names, show-nodes, start-adjust,
t, tikz, tikz-code,
@@ -3381,9 +3450,9 @@ version 2005/12/01 or later.
{
code-after, code-before, command-name, tikz-code, adjust,
displaystyle, end-adjust, fleqn, group, format, groups, i, interline, jot,
- left-brace, ll, lr, mathindent, name, no-arrows, replace-left-brace-by, rl,
- rr, show-node-names, show-nodes, start-adjust, tikz, wrap-lines, xoffset,
- ygap, ystart,
+ left-brace, ll, lr, max-length-of-arrow, mathindent, name, no-arrows,
+ replace-left-brace-by, rl, rr, show-node-names, show-nodes, start-adjust,
+ tikz, wrap-lines, xoffset, ygap, ystart,
%<*LaTeX>>
allow-multiple-labels, tagged-lines, nonumber, notag
%</LaTeX>
@@ -3413,8 +3482,8 @@ version 2005/12/01 or later.
{
allow-duplicate-names, b, c, command-name, more-columns, tikz-code, adjust,
displaystyle, end-adjust, fleqn, group, groups, i, interline, jot, ll, lr,
- mathindent, no-arrows, rl, rr, show-node-names, show-nodes, start-adjust, t,
- tikz, wrap-lines, xoffset, ygap, ystart,
+ mathindent, max-length-of-arrow, no-arrows, rl, rr, show-node-names,
+ show-nodes, start-adjust, t, tikz, wrap-lines, xoffset, ygap, ystart,
%<*LaTeX>>
allow-multiple-labels, nonumber, notag, standard-behaviour-with-items,
tagged-lines
@@ -3485,28 +3554,19 @@ version 2005/12/01 or later.
tikz-code .value_required:n = true ,
tikz .code:n = \prg_do_nothing: ,
tikz .value_required:n = true ,
-% \end{macrocode}
-%
-% \medskip
-% The option |xoffset| is not allowed when the option |group| or the option
-% |groups| is used (since it would be meaningless).
-% \begin{macrocode}
- xoffset .code:n =
- \int_compare:nNnT \l_@@_pos_arrow_int > 5
- { \@@_error:n { Option~xoffset~forbidden } } ,
- xoffset .value_required:n = true ,
start-adjust .code:n = \prg_do_nothing: ,
start-adjust .value_required:n = true ,
end-adjust .code:n = \prg_do_nothing: ,
end-adjust .value_required:n = true ,
adjust .code:n = \prg_do_nothing: ,
adjust .value_required:n = true ,
+ xoffset .code:n = ,
unknown .code:n =
\@@_sort_seq:N \l_@@_options_Arrow_seq
\seq_if_in:NVTF \l_@@_options_WithArrows_seq \l_keys_key_tl
{
\str_set:Nn \l_tmpa_str
- { ~However,~this~key~can~be~used~in~the~options~of~\{WithArrows\}. }
+ { ~However,~this~key~can~be~used~in~the~options~of~{WithArrows}. }
}
{ \str_clear:N \l_tmpa_str }
\@@_error:n { Unknown~option~in~Arrow }
@@ -3558,15 +3618,23 @@ version 2005/12/01 or later.
i .code:n = \@@_fix_pos_arrow:n 5 ,
% \end{macrocode}
%
-% \medskip
-% The option |xoffset| is not allowed when the option |group| or the option
-% |groups| is used (since it would be meaningless). An error has been raised
-% during the first pass. Here, we manage to avoid a second error which
-% would be redundant.
+% \medskip
+% The option |xoffset| is not allowed when the option |group| or the option
+% |groups| is used except, if the arrow is independent or if there is only one
+% arrow.
% \begin{macrocode}
xoffset .code:n =
- \int_compare:nNnF \l_@@_pos_arrow_int > 5
+ \bool_if:nTF
+ {
+ \int_compare_p:nNn \g_@@_arrow_int > 1
+ &&
+ \int_compare_p:nNn \l_@@_pos_arrow_int > 5
+ &&
+ ! \str_if_eq_p:Vn \l_@@_status_arrow_str { independent }
+ }
+ { \@@_error:n { Option~xoffset~forbidden } }
{ \dim_set:Nn \l_@@_xoffset_dim { #1 } } ,
+ xoffset .value_required:n = true ,
start-adjust .dim_set:N = \l_@@_start_adjust_dim,
end-adjust .dim_set:N = \l_@@_end_adjust_dim,
adjust .code:n =
@@ -3733,7 +3801,7 @@ version 2005/12/01 or later.
\cs_new_protected:Npn \@@_pre_halign:n #1
% \end{macrocode}
%
-% First, the initialisation of |\l_@@_type_env_str| which is the name of the
+% First, the initialization of |\l_@@_type_env_str| which is the name of the
% encompassing environment. In fact, this token list is used only in the error
% messages.
% \begin{macrocode}
@@ -3781,14 +3849,14 @@ version 2005/12/01 or later.
% The variable |\l_@@_input_line_str| will be used only to store, for each
% command |\Arrow| the line (in the TeX file) where the command is issued. This
% information will be stored in the field ``input-line'' of the arrow. As of
-% now, this information is used only in the error message of a arrow impossible
+% now, this information is used only in the error message of an arrow impossible
% to draw (because it arrives after the last row of the environment).
% \begin{macrocode}
\str_clear_new:N \l_@@_input_line_str
% \end{macrocode}
%
%
-% The initialisation of the counters |\g_@@_arrow_int|, |\g_@@_line_int| and
+% The initialization of the counters |\g_@@_arrow_int|, |\g_@@_line_int| and
% |\g_@@_col_int|. However, we have to save their previous values with the
% stacks created for this end.
% \begin{macrocode}
@@ -4314,7 +4382,20 @@ version 2005/12/01 or later.
% \bigskip
% It there is really arrows in the environment, we draw the arrows.
% \begin{macrocode}
- \int_compare:nNnT \g_@@_arrow_int > 0 \@@_scan_arrows:
+ \int_compare:nNnT \g_@@_arrow_int > 0
+ {
+% \end{macrocode}
+% If there is only one arrow, the options |group| and |groups| do not really
+% make sense and it will be quicker to act as if we were in option |i| (moreover,
+% it allows the option |xoffset| for the unique arrow).
+% \begin{macrocode}
+ \int_compare:nNnT \g_@@_arrow_int = 1
+ {
+ \int_compare:nNnT \l_@@_pos_arrow_int > 5
+ { \int_set:Nn \l_@@_pos_arrow_int 5 }
+ }
+ \@@_scan_arrows:
+ }
% \end{macrocode}
%
% \bigskip
@@ -4491,8 +4572,7 @@ version 2005/12/01 or later.
% |\refstepcounter| done by some packages (the incrementation of the counter has
% been done yet).
%
-% First an action which is in the definition of |\refstepcounter|. The command
-% |\p@equation| is redefined by some extensions like \pkg{fncylab}.
+% First an action which is in the definition of |\refstepcounter|.
% \begin{macrocode}
\cs_set:Npx \@currentlabel { \p@equation \g_tmpa_tl }
% \end{macrocode}
@@ -4618,7 +4698,13 @@ version 2005/12/01 or later.
\cs_new_protected:Npn \@@_analyze_end:Nn #1 #2
{
\exp_args:NV \str_if_eq:nnT \l_@@_type_env_str { #2 }
- { \@@_warning:n { newline~at~the~end~of~env } }
+ {
+ \@@_warning:n { newline~at~the~end~of~env }
+ \group_begin:
+ \globaldefs = 1
+ \@@_msg_redirect_name:nn { newline~at~the~end~of~env } { none }
+ \group_end:
+ }
% \end{macrocode}
% We reput in the stream the |\end{...}| we have extracted.
% \begin{macrocode}
@@ -5069,9 +5155,9 @@ version 2005/12/01 or later.
}
% \end{macrocode}
%
-% \bigskip
-% The command |\@@_notag:| will be linked to the command |\notag| and also to
-% in the environments |{WithArrows}| and |{DispWithArrows}|.
+% \bigskip
+% The command |\@@_notag:| will be linked to the command |\notag| in
+% the environments |{WithArrows}| and |{DispWithArrows}|.
% \begin{macrocode}
%<*LaTeX>
\cs_new_protected:Npn \@@_notag:
@@ -5079,7 +5165,7 @@ version 2005/12/01 or later.
% \end{macrocode}
%
% \bigskip
-% The command |\@@_nonumber:| will be linked to the command |\nonumber| and also to
+% The command |\@@_nonumber:| will be linked to the command |\nonumber|
% in the environments |{WithArrows}| and |{DispWithArrows}|.
% \begin{macrocode}
\cs_new_protected:Npn \@@_nonumber:
@@ -5276,7 +5362,7 @@ version 2005/12/01 or later.
% \medskip
% The boolean |\l_@@_new_group_bool| is a switch that we will use the indicate
% that a group is finished (and the lines of that group have to be drawn). This
-% boolean is not directed connected to the option |new-group| of an individual
+% boolean is not directly connected to the option |new-group| of an individual
% arrow.
% \begin{macrocode}
\bool_set_true:N \l_@@_new_group_bool
@@ -5432,7 +5518,7 @@ version 2005/12/01 or later.
{ \str_if_eq_p:Vn \l_@@_status_arrow_str { independent } }
{
% \end{macrocode}
-% If the arrow is not independant, the arrow belongs to the current group and we
+% If the arrow is not independent, the arrow belongs to the current group and we
% have to take it into account in some variables.
% \begin{macrocode}
\int_compare:nT
@@ -5667,6 +5753,10 @@ version 2005/12/01 or later.
% \end{itemize}
%
% \begin{macrocode}
+ \dim_gzero_new:N \g_@@_x_initial_dim
+ \dim_gzero_new:N \g_@@_x_final_dim
+ \dim_gzero_new:N \g_@@_y_initial_dim
+ \dim_gzero_new:N \g_@@_y_final_dim
%<*LaTeX>
\begin { tikzpicture } [ @@_standard ]
%</LaTeX>
@@ -5674,31 +5764,67 @@ version 2005/12/01 or later.
\tikzpicture [ @@_standard ]
%</plain-TeX>
\tikz@scan@one@point \pgfutil@firstofone ( \l_@@_initial_tl )
- \tl_gset:Nx \g_tmpa_tl
- {
- \int_compare:nNnTF \l_@@_pos_arrow_int < 5
- { \dim_use:N \pgf@x }
- { \dim_use:N \l_@@_x_dim } ,
- \bool_if:NTF \l_tmpa_bool
- { \dim_eval:n { \pgf@y + \l_@@_start_adjust_dim } }
- { \dim_use:N \pgf@y }
- }
+ \dim_gset:Nn \g_@@_x_initial_dim \pgf@x
+ \dim_gset:Nn \g_@@_y_initial_dim \pgf@y
\tikz@scan@one@point \pgfutil@firstofone ( \l_@@_final_tl )
- \tl_gset:Nx \g_tmpb_tl
- {
- \int_compare:nNnTF \l_@@_pos_arrow_int < 5
- { \dim_use:N \pgf@x }
- { \dim_use:N \l_@@_x_dim } ,
- \bool_if:NTF \l_tmpb_bool
- { \dim_eval:n { \pgf@y - \l_@@_end_adjust_dim } }
- { \dim_use:N \pgf@y }
- }
+ \dim_gset:Nn \g_@@_x_final_dim \pgf@x
+ \dim_gset:Nn \g_@@_y_final_dim \pgf@y
%<*LaTeX>
\end { tikzpicture }
%</LaTeX>
%<*plain-TeX>
\endtikzpicture
%</plain-TeX>
+ \bool_if:nTF
+ { \dim_compare_p:nNn { \g_@@_y_initial_dim - \g_@@_y_final_dim }
+ > \l_@@_max_length_of_arrow_dim
+ &&
+ \int_compare_p:nNn { \l_@@_final_int - \l_@@_initial_int } = 1
+ }
+ {
+ \tl_gset:Nx \g_tmpa_tl
+ {
+ \int_compare:nNnTF \l_@@_pos_arrow_int < 5
+ { \dim_use:N \g_@@_x_initial_dim }
+ { \dim_use:N \l_@@_x_dim } ,
+ \dim_eval:n
+ {
+ ( \g_@@_y_initial_dim + \g_@@_y_final_dim ) / 2
+ + ( \l_@@_max_length_of_arrow_dim / 2 )
+ }
+ }
+ \tl_gset:Nx \g_tmpb_tl
+ {
+ \int_compare:nNnTF \l_@@_pos_arrow_int < 5
+ { \dim_use:N \g_@@_x_final_dim }
+ { \dim_use:N \l_@@_x_dim } ,
+ \dim_eval:n
+ {
+ ( \g_@@_y_initial_dim + \g_@@_y_final_dim ) / 2
+ - ( \l_@@_max_length_of_arrow_dim / 2 )
+ }
+ }
+ }
+ {
+ \tl_gset:Nx \g_tmpa_tl
+ {
+ \int_compare:nNnTF \l_@@_pos_arrow_int < 5
+ { \dim_use:N \g_@@_x_initial_dim }
+ { \dim_use:N \l_@@_x_dim } ,
+ \bool_if:NTF \l_tmpa_bool
+ { \dim_eval:n { \g_@@_y_initial_dim + \l_@@_start_adjust_dim } }
+ { \dim_use:N \g_@@_y_initial_dim }
+ }
+ \tl_gset:Nx \g_tmpb_tl
+ {
+ \int_compare:nNnTF \l_@@_pos_arrow_int < 5
+ { \dim_use:N \g_@@_x_final_dim }
+ { \dim_use:N \l_@@_x_dim } ,
+ \bool_if:NTF \l_tmpb_bool
+ { \dim_eval:n { \g_@@_y_final_dim - \l_@@_end_adjust_dim } }
+ { \dim_use:N \g_@@_y_final_dim }
+ }
+ }
% \end{macrocode}
%
% \bigskip
@@ -5963,7 +6089,7 @@ version 2005/12/01 or later.
3 { \bool_set_true:N \l_@@_final_r_bool }
}
% \end{macrocode}
-% We prevent drawing a arrow from a line to itself.
+% We prevent drawing an arrow from a line to itself.
% \begin{macrocode}
\tl_if_eq:nnTF { #2 } { #3 }
{ \@@_error:nn { Both~lines~are~equal } { #2 } }
@@ -6045,16 +6171,32 @@ version 2005/12/01 or later.
% \end{macrocode}
% The user of the command |\MultiArrow| (in |code-after|) will be able to specify
% the list of lines with the same syntax as the loop |\foreach| of \pkg{pgffor}.
+% First, we test with a regular expression whether the format of the list of
+% lines is correct.
+% \begin{macrocode}
+ \exp_args:Nnx
+ \regex_match:nnTF
+ { \A \d+ (\,\d+)* ( \, \.\.\. (\,\d+)+ )* \Z }
+ { #1 }
+ { \@@_MultiArrow_i:nn { #1 } { #2 } }
+ { \@@_error:nx { Invalid~specification~for~MultiArrow } { #1 } }
+ }
+% \end{macrocode}
+%
+% \begin{macrocode}
+\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
% list given by the user. The construction of the ``clist'' must be global in
-% order to exit the |\foreach| and that's why we construct the list in
+% order to exit the |\foreach| and that's why we will construct the list in
% |\g_tmpa_clist|.
% \begin{macrocode}
- \foreach \x in { #1 }
+ \foreach \x in { #1 }
{
\cs_if_free:cTF { pgf@sh@ns@wa - \l_@@_prefix_str - \x - l }
- { \@@_error:nx { Wrong~line~specification~in~MultiArrow } \x }
- { \clist_gput_right:Nx \g_tmpa_clist \x }
+ { \@@_error:nx { Wrong~line~specification~in~MultiArrow } \x }
+ { \clist_gput_right:Nx \g_tmpa_clist \x }
}
% \end{macrocode}
% We sort the list |\g_tmpa_clist| because we want to extract the minimum and
@@ -6221,8 +6363,8 @@ version 2005/12/01 or later.
%<*LaTeX>
\@@_msg_new:nn { newline~at~the~end~of~env }
{
- Your~environment~\{\l_@@_type_env_str\}~should~not~end~with~
- a~\token_to_str:N \\.\\
+ The~environments~of~witharrows~(\{WithArrows\}~and~
+ \{DispWithArrows\})~should~not~end~by~\token_to_str:N \\.\\
This~warning~might~become~an~error~in~a~future~version.
}
%</LaTeX>
@@ -6542,15 +6684,23 @@ version 2005/12/01 or later.
}
% \end{macrocode}
%
+% \bigskip
+% The following error when the user tries to use the option |xoffset| in mode
+% |group| or |groups| (in fact, it's possible to use the option |xoffset| if
+% there is only \emph{one} arrow: of course, the option |group| and |groups| do
+% not make sense in this case but, maybe, the option was set in a
+% |\WithArrowsOptions|).
% \begin{macrocode}
\@@_msg_new:nn { Option~xoffset~forbidden }
{
You~can't~use~the~option~'xoffset'~in~the~command~
- \l_@@_string_Arrow_for_msg_str\
- while~you~are~using~the~option~
+ \l_@@_string_Arrow_for_msg_str\ in~the~row~\int_use:N \g_@@_line_int\
+ of~your~environment~\{\l_@@_type_env_str\}~
+ because~you~are~using~the~option~
' \int_compare:nNnTF \l_@@_pos_arrow_int = 7
{ group }
- { groups } '. \\
+ { groups } '.~It's~possible~for~an~independent~arrow~or~if~there~is~
+ only~one~arrow. \\
\c_@@_option_ignored_str
}
% \end{macrocode}
@@ -6783,6 +6933,16 @@ version 2005/12/01 or later.
% \end{macrocode}
%
% \begin{macrocode}
+\@@_msg_new:nn { Invalid~specification~for~MultiArrow }
+ {
+ The~specification~of~rows~for~\token_to_str:N\MultiArrow\
+ (i.e.~#1)~is~invalid. \\
+ \c_@@_command_ignored_str
+ }
+% \end{macrocode}
+%
+%
+% \begin{macrocode}
%<*plain-TeX>
\catcode `\@ = 12
\ExplSyntaxOff
@@ -6949,7 +7109,7 @@ version 2005/12/01 or later.
%
% \subsection*{Changes between 1.16 and 1.17}
%
-% Option |format|
+% Option |format|.
%
% \subsection*{Changes between 1.17 and 1.18}
%
@@ -6959,19 +7119,28 @@ version 2005/12/01 or later.
%
% Warning when |{WithArrows}| or |{DispWithArrows}| ends by "\\".
%
-% No space before an environnement |{DispWithArrows}| if we are at the beginning
+% No space before an environment |{DispWithArrows}| if we are at the beginning
% of a |{minipage}|.
%
% \subsection*{Changes between 1.18 and 2.0}
%
% A version of \pkg{witharrows} is available for plain-TeX.
%
+%
+% \subsection*{Changes between 2.0 and 2.1 }
+%
+% Option |max-length-of-arrow|.
+%
+% Validation with regular expression for the first argument of |\MultiArrow|.
+%
% \PrintIndex
%
% \tableofcontents
%
% \endinput
% Local Variables:
-% TeX-fold-mode: nil
+% TeX-fold-mode: t
+% TeX-fold-preserve-comments: nil
% fill-column: 80
+% ispell-local-dictionary: english
% End:
diff --git a/macros/generic/witharrows/witharrows.pdf b/macros/generic/witharrows/witharrows.pdf
index 2ee53b5af7..425dab200f 100644
--- a/macros/generic/witharrows/witharrows.pdf
+++ b/macros/generic/witharrows/witharrows.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-english/CHANGES b/macros/latex/contrib/datetime2-contrib/datetime2-english/CHANGES
index f754b79612..6ac7abc618 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-english/CHANGES
+++ b/macros/latex/contrib/datetime2-contrib/datetime2-english/CHANGES
@@ -1,3 +1,7 @@
+v1.05 (2019-10-21):
+
+ * Renamed scratch variables to avoid conflict
+
v1.04 (2016-03-09):
* Added "dowdaysep" option to en-GB, en-AU, en-NZ, en-GG,
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english-sample.pdf b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english-sample.pdf
index f51efa41f5..bc6176d7db 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english-sample.pdf
+++ b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english-sample.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.dtx b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.dtx
index 0b1376ca17..a98c719196 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.dtx
+++ b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.dtx
@@ -19,7 +19,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2015 Nicola Talbot, all rights reserved.
+% Copyright (C) 2015-2019 Nicola Talbot, all rights reserved.
% \fi
% \iffalse
%<*driver>
@@ -62,7 +62,7 @@
%
%\title{English Module for datetime2 Package}
%\author{Nicola L. C. Talbot}
-%\date{2016-03-09 (v1.04)}
+%\date{2019-10-21 (v1.05)}
%\maketitle
%
%\begin{abstract}
@@ -617,7 +617,7 @@
%\changes{1.0}{2015-03-24}{Initial release}
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{english-base}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{english-base}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Since the main emphasize of the \sty{datetime2} package is to
% provide expandable dates where possible, the commands here need to
@@ -951,7 +951,7 @@
%
% Identify Module
% \begin{macrocode}
-\ProvidesDateTimeModule{english}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{english}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load the base English module.
% \begin{macrocode}
@@ -1046,7 +1046,7 @@
%\fi
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-GB}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-GB}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -1171,9 +1171,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-GB}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-GB}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenGBfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenGBfmtordsuffix}[1]{%
@@ -1230,7 +1231,7 @@
\DTMifbool{en-GB}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenGBtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -1288,7 +1289,7 @@
\DTMifbool{en-GB}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenGBtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -1373,7 +1374,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-US}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-US}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -1497,9 +1498,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-US}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-US}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenUSfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenUSfmtordsuffix}[1]{%
@@ -1515,12 +1517,13 @@
%
% Define a setting to change zone mappings.
%\changes{1.03}{2016-01-23}{added zone option to en-US}
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-US}{zone}[\val\nr]%
+\DTMdefchoicekey{en-US}{zone}[\@dtm@val\@dtm@nr]%
{std,standard,dst,daylight,atlantic,eastern,central,mountain,%
pacific,alaska,hawaii-aleutian,hawaii,aleutian,samoa,charmorro,clear}%
{%
- \ifcase\nr\relax
+ \ifcase\@dtm@nr\relax
% std
\appto\DTMenUSzonemaps{\DTMenUSstdzonemaps}%
\DTMenUSstdzonemaps
@@ -1656,7 +1659,7 @@
\DTMifbool{en-US}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenUStimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -1713,7 +1716,7 @@
\DTMifbool{en-US}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenUStimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -1935,7 +1938,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-CA}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-CA}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -2059,9 +2062,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-CA}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-CA}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenCAfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenCAfmtordsuffix}[1]{%
@@ -2077,12 +2081,13 @@
%
% Define a setting to change zone mappings.
%\changes{1.03}{2016-01-23}{added zone option to en-CA}
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-CA}{zone}[\val\nr]%
+\DTMdefchoicekey{en-CA}{zone}[\@dtm@val\@dtm@nr]%
{std,standard,dst,daylight,newfoundland,atlantic,eastern,central,mountain,%
pacific,clear}%
{%
- \ifcase\nr\relax
+ \ifcase\@dtm@nr\relax
% std
\appto\DTMenCAzonemaps{\DTMenCAstdzonemaps}%
\DTMenCAstdzonemaps
@@ -2191,7 +2196,7 @@
\DTMifbool{en-CA}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenCAtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -2248,7 +2253,7 @@
\DTMifbool{en-CA}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenCAtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -2436,7 +2441,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-AU}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-AU}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -2561,9 +2566,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-AU}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-AU}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenAUfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenAUfmtordsuffix}[1]{%
@@ -2579,12 +2585,13 @@
%
% Define a setting to change zone mappings.
%\changes{1.03}{2016-01-23}{added zone option to en-AU}
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-AU}{zone}[\val\nr]%
+\DTMdefchoicekey{en-AU}{zone}[\@dtm@val\@dtm@nr]%
{std,standard,dst,daylight,central,central-western,western%
eastern,christmas,lord-howe,cocos,keeling,clear}%
{%
- \ifcase\nr\relax
+ \ifcase\@dtm@nr\relax
% std
\appto\DTMenAUzonemaps{\DTMenAUstdzonemaps}%
\DTMenAUstdzonemaps
@@ -2659,7 +2666,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenAUfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-AU}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -2694,7 +2701,7 @@
\DTMifbool{en-AU}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenAUtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -2751,7 +2758,7 @@
\DTMifbool{en-AU}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenAUtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -2957,7 +2964,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-NZ}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-NZ}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -3083,9 +3090,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-NZ}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-NZ}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenNZfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenNZfmtordsuffix}[1]{%
@@ -3107,7 +3115,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenNZfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-NZ}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -3142,7 +3150,7 @@
\DTMifbool{en-NZ}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenNZtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3199,7 +3207,7 @@
\DTMifbool{en-NZ}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenNZtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3286,7 +3294,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-GG}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-GG}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -3411,9 +3419,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-GG}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-GG}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenGGfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenGGfmtordsuffix}[1]{%
@@ -3435,7 +3444,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenGGfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-GG}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -3470,7 +3479,7 @@
\DTMifbool{en-GG}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenGGtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3527,7 +3536,7 @@
\DTMifbool{en-GG}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenGGtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3611,7 +3620,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-JE}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-JE}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -3736,9 +3745,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-JE}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-JE}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenJEfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenJEfmtordsuffix}[1]{%
@@ -3760,7 +3770,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenJEfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-JE}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -3795,7 +3805,7 @@
\DTMifbool{en-JE}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenJEtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3852,7 +3862,7 @@
\DTMifbool{en-JE}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenJEtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -3936,7 +3946,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-IM}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-IM}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -4061,9 +4071,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-IM}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-IM}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenIMfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenIMfmtordsuffix}[1]{%
@@ -4085,7 +4096,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenIMfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-IM}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -4120,7 +4131,7 @@
\DTMifbool{en-IM}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenIMtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -4177,7 +4188,7 @@
\DTMifbool{en-IM}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenIMtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -4261,7 +4272,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-MT}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-MT}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -4386,9 +4397,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-MT}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-MT}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenMTfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenMTfmtordsuffix}[1]{%
@@ -4410,7 +4422,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenMTfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-MT}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -4445,7 +4457,7 @@
\DTMifbool{en-MT}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenMTtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -4502,7 +4514,7 @@
\DTMifbool{en-MT}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenMTtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -4587,7 +4599,7 @@
%
% Identify this module.
% \begin{macrocode}
-\ProvidesDateTimeModule{en-IE}[2016/03/09 v1.04 (NLCT)]
+\ProvidesDateTimeModule{en-IE}[2019/10/21 v1.05 (NLCT)]
% \end{macrocode}
% Load base English module.
% \begin{macrocode}
@@ -4711,9 +4723,10 @@
%\end{macro}
%
% Define a setting to change the ordinal suffix style.
+%\changes{1.05}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\DTMdefchoicekey{en-IE}{ord}[\val\nr]{level,raise,omit,sc}{%
- \ifcase\nr\relax
+\DTMdefchoicekey{en-IE}{ord}[\@dtm@val\@dtm@nr]{level,raise,omit,sc}{%
+ \ifcase\@dtm@nr\relax
\renewcommand*{\DTMenIEfmtordsuffix}[1]{##1}%
\or
\renewcommand*{\DTMenIEfmtordsuffix}[1]{%
@@ -4735,7 +4748,7 @@
\renewcommand*{\DTMenglishfmtordsuffix}{\DTMenIEfmtordsuffix}%
\renewcommand*\DTMdisplaydate[4]{%
\ifDTMshowdow
- \ifnum##4>-1%
+ \ifnum##4>-1 % space intended
\DTMifbool{en-IE}{abbr}%
{\DTMenglishshortweekdayname{##4}}%
{\DTMenglishweekdayname{##4}}%
@@ -4770,7 +4783,7 @@
\DTMifbool{en-IE}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenIEtimesep\DTMtwodigits{##2}\fi
}%
}%
@@ -4827,7 +4840,7 @@
\DTMifbool{en-IE}{mapzone}%
{\DTMusezonemapordefault{##1}{##2}}%
{%
- \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
+ \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
\ifDTMshowzoneminutes\DTMenIEtimesep\DTMtwodigits{##2}\fi
}%
}%
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.ins b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.ins
index 6767459acc..8e4726d226 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.ins
+++ b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.ins
@@ -3,7 +3,7 @@
\preamble
datetime2-english.dtx
- Copyright 2015 Nicola Talbot
+ Copyright 2015-2019 Nicola Talbot
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.pdf b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.pdf
index 189c2989a3..57fc0fa928 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.pdf
+++ b/macros/latex/contrib/datetime2-contrib/datetime2-english/datetime2-english.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/CHANGES b/macros/latex/contrib/datetime2/CHANGES
index 3435b72e1f..e25ea54492 100644
--- a/macros/latex/contrib/datetime2/CHANGES
+++ b/macros/latex/contrib/datetime2/CHANGES
@@ -1,3 +1,7 @@
+1.5.4 (2019-10-21):
+
+ * renamed scratch variables to avoid conflict
+
1.5.3 (2018-07-20):
* Bug fix: removed unwanted \relax inserted in negative time zones
diff --git a/macros/latex/contrib/datetime2/README b/macros/latex/contrib/datetime2/README
index 5f393336d8..6e9b85f4f1 100644
--- a/macros/latex/contrib/datetime2/README
+++ b/macros/latex/contrib/datetime2/README
@@ -1,6 +1,6 @@
-LaTeX Package : datetime2 v1.5.3
+LaTeX Package : datetime2 v1.5.4
-Last Modified : 2018-07-20
+Last Modified : 2019-10-21
Author : Nicola Talbot
diff --git a/macros/latex/contrib/datetime2/datetime2.dtx b/macros/latex/contrib/datetime2/datetime2.dtx
index 8791e302ed..401236b8d0 100644
--- a/macros/latex/contrib/datetime2/datetime2.dtx
+++ b/macros/latex/contrib/datetime2/datetime2.dtx
@@ -3,11 +3,11 @@
% Command line args:
% -src "datetime2.sty\Z=>datetime2.sty"
% -src "datetime2-calc.sty\Z=>datetime2-calc.sty"
-% -author "Nicola Talbot"
% -doc "datetime2-manual.tex"
% -section "chapter"
+% -author "Nicola Talbot"
% datetime2
-% Created on 2018/7/20 12:36
+% Created on 2019/10/21 11:37
%\fi
%\iffalse
%<*package>
@@ -30,7 +30,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2018 Nicola Talbot, all rights reserved.
+% Copyright (C) 2019 Nicola Talbot, all rights reserved.
% \fi
% \iffalse
%<*driver>
@@ -91,11 +91,11 @@
%
%\MakeShortVerb{"}
%
-%\title{datetime2 v1.5.3:
+%\title{datetime2 v1.5.4:
%date and time formats}
%\author{Nicola L. C. Talbot\\\url{http://www.dickimaw-books.com/}}
%
-%\date{2018-07-20}
+%\date{2019-10-21}
%\maketitle
%
%\begin{abstract}
@@ -5686,7 +5686,7 @@
%\changes{1.0}{2015-03-24}{Initial release}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime2}[2018/07/20 v1.5.3 (NLCT) date and time formats]
+\ProvidesPackage{datetime2}[2019/10/21 v1.5.4 (NLCT) date and time formats]
% \end{macrocode}
% Use \sty{tracklang} to find out what languages have been loaded.
% \begin{macrocode}
@@ -5985,11 +5985,12 @@
%\begin{option}{useregional}
% Setting to determine whether or not to use the regional
% settings (if any are loaded).
+%\changes{1.5.4}{2019-10-21}{renamed scratch variables}
% \begin{macrocode}
-\define@choicekey{datetime2.sty}{useregional}[\val\nr]%
+\define@choicekey{datetime2.sty}{useregional}[\@dtm@useregional@val\@dtm@useregional@nr]%
{false,text,numeric,num}[text]%
{%
- \ifcase\nr\relax
+ \ifcase\@dtm@useregional@nr\relax
\renewcommand*{\DTMifcaseregional}[3]{##1}%
\or
\renewcommand*{\DTMifcaseregional}[3]{##2}%
@@ -8861,7 +8862,7 @@
%\section{datetime2-calc.sty code}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime2-calc}[2018/07/20 v1.5.3 (NLCT)]
+\ProvidesPackage{datetime2-calc}[2019/10/21 v1.5.4 (NLCT)]
% \end{macrocode}
% Load other required packages
% \begin{macrocode}
@@ -9430,49 +9431,49 @@
%These are shared with the \sty{locale} package, so they may already
%be defined.
%\begin{macro}{\dtmMondayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmMondayIndex{0}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmTuesdayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmTuesdayIndex{1}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmWednesdayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmWednesdayIndex{2}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmThursdayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmThursdayIndex{3}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmFridayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmFridayIndex{4}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmSaturdayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmSaturdayIndex{5}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dtmSundayIndex}
-%\changes{1.5.3}{??}{new}
+%\changes{1.5.3}{2018-07-20}{new}
% \begin{macrocode}
\def\dtmSundayIndex{6}
% \end{macrocode}
diff --git a/macros/latex/contrib/datetime2/datetime2.ins b/macros/latex/contrib/datetime2/datetime2.ins
index 91a29acb33..d839777cd7 100644
--- a/macros/latex/contrib/datetime2/datetime2.ins
+++ b/macros/latex/contrib/datetime2/datetime2.ins
@@ -1,10 +1,10 @@
-% datetime2.ins generated using makedtx version 1.2 2018/7/20 12:36
+% datetime2.ins generated using makedtx version 1.2 2019/10/21 11:37
\input docstrip
\preamble
datetime2.dtx
- Copyright 2018 Nicola Talbot
+ Copyright 2019 Nicola Talbot
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
diff --git a/macros/latex/contrib/datetime2/datetime2.pdf b/macros/latex/contrib/datetime2/datetime2.pdf
index a15e11feb4..e356981288 100644
--- a/macros/latex/contrib/datetime2/datetime2.pdf
+++ b/macros/latex/contrib/datetime2/datetime2.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-babel.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-babel.pdf
index 578625e683..f0c400e808 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-babel.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-babel.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-calc.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-calc.pdf
index 02e2ba10da..2fb24bf61e 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-calc.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-calc.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-filedate.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-filedate.pdf
index 3e2c3e54d2..d4c34cdf2f 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-filedate.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-filedate.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-hyperref.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-hyperref.pdf
index b26477e0e4..1236d2fc42 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-hyperref.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-hyperref.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-journal.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-journal.pdf
index 5fd3663335..be21e3c7ac 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-journal.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-journal.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-styles.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-styles.pdf
index 76dbfd1e82..3ed5e296f3 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-styles.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-styles.pdf
Binary files differ
diff --git a/macros/latex/contrib/datetime2/samples/datetime2-sample-xe.pdf b/macros/latex/contrib/datetime2/samples/datetime2-sample-xe.pdf
index bcf2d0b7ea..2e485f20ca 100644
--- a/macros/latex/contrib/datetime2/samples/datetime2-sample-xe.pdf
+++ b/macros/latex/contrib/datetime2/samples/datetime2-sample-xe.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/CHANGELOG.md b/macros/latex/contrib/l3kernel/CHANGELOG.md
index 85fbfb5031..6b70a9cd60 100644
--- a/macros/latex/contrib/l3kernel/CHANGELOG.md
+++ b/macros/latex/contrib/l3kernel/CHANGELOG.md
@@ -7,6 +7,22 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+## [2019-10-21]
+
+### Added
+
+- Lua function `l3kernel.shellescape()`
+
+### Changed
+
+- Better coverage of (u)pTeX primitives following publication of
+ pTeX manual in English
+- Trim spaces surrounding file names
+
+### Removed
+
+- HarfTeX primitives
+
## [2019-10-14]
### Fixed
@@ -562,7 +578,8 @@ this project uses date-based 'snapshot' version identifiers.
- Step func­tions have been added for dim vari­ables,
e.g. `\dim_step_in­line:nnnn`
-[Unreleased]: https://github.com/latex3/latex3/compare/2019-10-14...HEAD
+[Unreleased]: https://github.com/latex3/latex3/compare/2019-10-21...HEAD
+[2019-10-21]: https://github.com/latex3/latex3/compare/2019-10-14...2019-10-21
[2019-10-14]: https://github.com/latex3/latex3/compare/2019-10-11...2019-10-14
[2019-10-11]: https://github.com/latex3/latex3/compare/2019-10-02...2019-10-11
[2019-10-02]: https://github.com/latex3/latex3/compare/2019-09-30...2019-10-02
diff --git a/macros/latex/contrib/l3kernel/README.md b/macros/latex/contrib/l3kernel/README.md
index 1ea787bc59..ffbbb81606 100644
--- a/macros/latex/contrib/l3kernel/README.md
+++ b/macros/latex/contrib/l3kernel/README.md
@@ -1,7 +1,7 @@
LaTeX3 Programming Conventions
==============================
-Release 2019-10-14
+Release 2019-10-21
Overview
--------
diff --git a/macros/latex/contrib/l3kernel/expl3.dtx b/macros/latex/contrib/l3kernel/expl3.dtx
index 07dea81cb6..e9d6fd84ad 100644
--- a/macros/latex/contrib/l3kernel/expl3.dtx
+++ b/macros/latex/contrib/l3kernel/expl3.dtx
@@ -24,7 +24,7 @@
%
%<*driver|generic|package|2ekernel>
%</driver|generic|package|2ekernel>
-\def\ExplFileDate{2019-10-14}%
+\def\ExplFileDate{2019-10-21}%
%<*driver>
\documentclass[full]{l3doc}
\usepackage{graphicx}
@@ -51,7 +51,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/expl3.pdf b/macros/latex/contrib/l3kernel/expl3.pdf
index 36a3ba6d70..973fa0880c 100644
--- a/macros/latex/contrib/l3kernel/expl3.pdf
+++ b/macros/latex/contrib/l3kernel/expl3.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/interface3.pdf b/macros/latex/contrib/l3kernel/interface3.pdf
index 2e40d09a02..5295e1c0e2 100644
--- a/macros/latex/contrib/l3kernel/interface3.pdf
+++ b/macros/latex/contrib/l3kernel/interface3.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/interface3.tex b/macros/latex/contrib/l3kernel/interface3.tex
index 15517a998e..7248ad387c 100644
--- a/macros/latex/contrib/l3kernel/interface3.tex
+++ b/macros/latex/contrib/l3kernel/interface3.tex
@@ -54,7 +54,7 @@ for those people who are interested.
{latex-team@latex-project.org}%
}%
}
-\date{Released 2019-10-14}
+\date{Released 2019-10-21}
\pagenumbering{roman}
\maketitle
diff --git a/macros/latex/contrib/l3kernel/l3alloc.dtx b/macros/latex/contrib/l3kernel/l3alloc.dtx
index edc3fb9ddc..4e8d1c4f59 100644
--- a/macros/latex/contrib/l3kernel/l3alloc.dtx
+++ b/macros/latex/contrib/l3kernel/l3alloc.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -145,7 +145,11 @@
\exp_not:N \@@_reg:nNnN { box }
\cs_if_exist:NTF \tex_luatexversion:D
{ \tex_chardef:D }
- { \tex_mathchardef:D }
+ {
+ \cs_if_exist:NTF \tex_omathchardef:D
+ { \tex_omathchardef:D }
+ { \tex_mathchardef:D }
+ }
\c_max_register_int
#1
}
diff --git a/macros/latex/contrib/l3kernel/l3basics.dtx b/macros/latex/contrib/l3kernel/l3basics.dtx
index 3046fbdf49..412dabcdc2 100644
--- a/macros/latex/contrib/l3kernel/l3basics.dtx
+++ b/macros/latex/contrib/l3kernel/l3basics.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -1508,11 +1508,17 @@
% \begin{variable}{\c_max_register_int}
% This is here as this particular integer is needed both in package
% mode and to bootstrap \pkg{l3alloc}, and is documented in \pkg{l3int}.
+% \LuaTeX{} and those which contain parts of the Omega extensions have
+% more registers available than \eTeX{}.
% \begin{macrocode}
\tex_ifdefined:D \tex_luatexversion:D
\tex_chardef:D \c_max_register_int = 65 535 ~
\tex_else:D
- \tex_mathchardef:D \c_max_register_int = 32 767 ~
+ \tex_ifdefined:D \tex_omathchardef:D
+ \tex_omathchardef:D \c_max_register_int = 65535 ~
+ \tex_else:D
+ \tex_mathchardef:D \c_max_register_int = 32767 ~
+ \tex_fi:D
\tex_fi:D
% \end{macrocode}
% \end{variable}
diff --git a/macros/latex/contrib/l3kernel/l3bootstrap.dtx b/macros/latex/contrib/l3kernel/l3bootstrap.dtx
index a5510eb607..015aa0d455 100644
--- a/macros/latex/contrib/l3kernel/l3bootstrap.dtx
+++ b/macros/latex/contrib/l3kernel/l3bootstrap.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3box.dtx b/macros/latex/contrib/l3kernel/l3box.dtx
index e99446ad46..c72c9fa587 100644
--- a/macros/latex/contrib/l3kernel/l3box.dtx
+++ b/macros/latex/contrib/l3kernel/l3box.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3candidates.dtx b/macros/latex/contrib/l3kernel/l3candidates.dtx
index 03b29462ea..bfbe86059b 100644
--- a/macros/latex/contrib/l3kernel/l3candidates.dtx
+++ b/macros/latex/contrib/l3kernel/l3candidates.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3clist.dtx b/macros/latex/contrib/l3kernel/l3clist.dtx
index 6e99f0d28b..fb63bdac21 100644
--- a/macros/latex/contrib/l3kernel/l3clist.dtx
+++ b/macros/latex/contrib/l3kernel/l3clist.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3coffins.dtx b/macros/latex/contrib/l3kernel/l3coffins.dtx
index b40469d9cc..c0d393bbaa 100644
--- a/macros/latex/contrib/l3kernel/l3coffins.dtx
+++ b/macros/latex/contrib/l3kernel/l3coffins.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3color-base.dtx b/macros/latex/contrib/l3kernel/l3color-base.dtx
index 429e8068ed..9b80753bda 100644
--- a/macros/latex/contrib/l3kernel/l3color-base.dtx
+++ b/macros/latex/contrib/l3kernel/l3color-base.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3debug.dtx b/macros/latex/contrib/l3kernel/l3debug.dtx
index d8a79ea4e0..898152fd13 100644
--- a/macros/latex/contrib/l3kernel/l3debug.dtx
+++ b/macros/latex/contrib/l3kernel/l3debug.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3deprecation.dtx b/macros/latex/contrib/l3kernel/l3deprecation.dtx
index e3f6389977..e3dd8581ee 100644
--- a/macros/latex/contrib/l3kernel/l3deprecation.dtx
+++ b/macros/latex/contrib/l3kernel/l3deprecation.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3doc.dtx b/macros/latex/contrib/l3kernel/l3doc.dtx
index 84ab65f36f..5ad6932e9e 100644
--- a/macros/latex/contrib/l3kernel/l3doc.dtx
+++ b/macros/latex/contrib/l3kernel/l3doc.dtx
@@ -79,7 +79,7 @@ and all files in that bundle must be distributed together.
%
% \title{The \cls{l3doc} class}
% \author{\Team}
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
% \maketitle
% \tableofcontents
%
diff --git a/macros/latex/contrib/l3kernel/l3docstrip.dtx b/macros/latex/contrib/l3kernel/l3docstrip.dtx
index ed00bd90f6..1ecd193852 100644
--- a/macros/latex/contrib/l3kernel/l3docstrip.dtx
+++ b/macros/latex/contrib/l3kernel/l3docstrip.dtx
@@ -63,7 +63,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3docstrip.pdf b/macros/latex/contrib/l3kernel/l3docstrip.pdf
index 84b1b5744f..1e80cda2fc 100644
--- a/macros/latex/contrib/l3kernel/l3docstrip.pdf
+++ b/macros/latex/contrib/l3kernel/l3docstrip.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/l3expan.dtx b/macros/latex/contrib/l3kernel/l3expan.dtx
index ea5de20428..c06f0c2981 100644
--- a/macros/latex/contrib/l3kernel/l3expan.dtx
+++ b/macros/latex/contrib/l3kernel/l3expan.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3file.dtx b/macros/latex/contrib/l3kernel/l3file.dtx
index 6f39937f85..19807253e3 100644
--- a/macros/latex/contrib/l3kernel/l3file.dtx
+++ b/macros/latex/contrib/l3kernel/l3file.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -69,6 +69,11 @@
% using |"| tokens if they contain spaces: as a result, |"| tokens are
% \emph{not} permitted in file names.
%
+% Spaces are trimmed at the beginning and end of the file name:
+% this reflects the fact that some file systems do not allow or interact
+% unpredictably with spaces in these positions. When no extension is given,
+% this will trim spaces from the start of the name only.
+%
% \section{Input--output stream management}
%
% As \TeX{} engines have a limited number of input and output streams, direct
@@ -2362,6 +2367,10 @@
% \begin{macro}[rEXP]{\__kernel_file_name_expand_N_type:Nw}
% \begin{macro}[rEXP]{\__kernel_file_name_expand_group:nw}
% \begin{macro}[rEXP]{\__kernel_file_name_expand_space:w}
+% \begin{macro}[rEXP]{\__kernel_file_name_trim_spaces:n}
+% \begin{macro}[rEXP]{\__kernel_file_name_trim_spaces:nw}
+% \begin{macro}[rEXP]{\__kernel_file_name_trim_spaces_aux:n}
+% \begin{macro}[rEXP]{\__kernel_file_name_trim_spaces_aux:w}
% Expanding the file name without expanding active characters is done
% using the same token-by-token approach as for example case changing.
% The finale outcome only need be \texttt{e}-type expandable, so there
@@ -2369,8 +2378,11 @@
% \begin{macrocode}
\cs_new:Npn \__kernel_file_name_sanitize:n #1
{
- \__kernel_file_name_expand_loop:w #1
- \q_recursion_tail \q_recursion_stop
+ \exp_args:Ne \__kernel_file_name_trim_spaces:n
+ {
+ \__kernel_file_name_expand_loop:w #1
+ \q_recursion_tail \q_recursion_stop
+ }
}
\cs_new:Npn \__kernel_file_name_expand_loop:w #1 \q_recursion_stop
{
@@ -2419,6 +2431,31 @@
\exp_not:N \__kernel_file_name_expand_loop:w
}
% \end{macrocode}
+% Spaces need to be trimmed from the start of the name and from the end of
+% any extension. However, the name we are passed might not have an extension:
+% that means we have to look for one. If there is no extension, we still use
+% the standard trimming function but deliberately prevent any spaces being
+% removed at the end.
+% \begin{macrocode}
+\cs_new:Npn \__kernel_file_name_trim_spaces:n #1
+ { \__kernel_file_name_trim_spaces:nw {#1} #1 . \q_nil . \q_stop }
+\cs_new:Npn \__kernel_file_name_trim_spaces:nw #1#2 . #3 . #4 \q_stop
+ {
+ \quark_if_nil:nTF {#3}
+ {
+ \exp_args:Ne \__kernel_file_name_trim_spaces_aux:n
+ { \tl_trim_spaces:n { #1 \s_stop } }
+ }
+ { \tl_trim_spaces:n {#1} }
+ }
+\cs_new:Npn \__kernel_file_name_trim_spaces_aux:n #1
+ { \__kernel_file_name_trim_spaces_aux:w #1 }
+\cs_new:Npn \__kernel_file_name_trim_spaces_aux:w #1 \s_stop {#1}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
diff --git a/macros/latex/contrib/l3kernel/l3final.dtx b/macros/latex/contrib/l3kernel/l3final.dtx
index d30b1ff554..1854521b7d 100644
--- a/macros/latex/contrib/l3kernel/l3final.dtx
+++ b/macros/latex/contrib/l3kernel/l3final.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3flag.dtx b/macros/latex/contrib/l3kernel/l3flag.dtx
index 044e1cf744..809e4f57ae 100644
--- a/macros/latex/contrib/l3kernel/l3flag.dtx
+++ b/macros/latex/contrib/l3kernel/l3flag.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-assign.dtx b/macros/latex/contrib/l3kernel/l3fp-assign.dtx
index a042a9f010..0fc8aab6b6 100644
--- a/macros/latex/contrib/l3kernel/l3fp-assign.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-assign.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
% \maketitle
%
% \begin{documentation}
diff --git a/macros/latex/contrib/l3kernel/l3fp-aux.dtx b/macros/latex/contrib/l3kernel/l3fp-aux.dtx
index 3fdc8a731b..437f05d0e3 100644
--- a/macros/latex/contrib/l3kernel/l3fp-aux.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-aux.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-basics.dtx b/macros/latex/contrib/l3kernel/l3fp-basics.dtx
index dacd276344..81d6720ef6 100644
--- a/macros/latex/contrib/l3kernel/l3fp-basics.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-basics.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-convert.dtx b/macros/latex/contrib/l3kernel/l3fp-convert.dtx
index 5c36e99032..f0279aeb49 100644
--- a/macros/latex/contrib/l3kernel/l3fp-convert.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-convert.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-expo.dtx b/macros/latex/contrib/l3kernel/l3fp-expo.dtx
index b037145d19..9fa0d3c9fe 100644
--- a/macros/latex/contrib/l3kernel/l3fp-expo.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-expo.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-extended.dtx b/macros/latex/contrib/l3kernel/l3fp-extended.dtx
index fba15dc56a..a244448ff5 100644
--- a/macros/latex/contrib/l3kernel/l3fp-extended.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-extended.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-logic.dtx b/macros/latex/contrib/l3kernel/l3fp-logic.dtx
index ac5ed471b5..d1a58ad433 100644
--- a/macros/latex/contrib/l3kernel/l3fp-logic.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-logic.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-parse.dtx b/macros/latex/contrib/l3kernel/l3fp-parse.dtx
index 45360c47ea..89347e5ef0 100644
--- a/macros/latex/contrib/l3kernel/l3fp-parse.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-parse.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-random.dtx b/macros/latex/contrib/l3kernel/l3fp-random.dtx
index 4029ad9398..37434dd256 100644
--- a/macros/latex/contrib/l3kernel/l3fp-random.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-random.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-round.dtx b/macros/latex/contrib/l3kernel/l3fp-round.dtx
index 5f59d49e3c..1cdf625a2d 100644
--- a/macros/latex/contrib/l3kernel/l3fp-round.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-round.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp-traps.dtx b/macros/latex/contrib/l3kernel/l3fp-traps.dtx
index a40cf74bda..ab486d81dc 100644
--- a/macros/latex/contrib/l3kernel/l3fp-traps.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-traps.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
% \maketitle
%
% \begin{documentation}
diff --git a/macros/latex/contrib/l3kernel/l3fp-trig.dtx b/macros/latex/contrib/l3kernel/l3fp-trig.dtx
index 19b5c894bf..a1d63f396b 100644
--- a/macros/latex/contrib/l3kernel/l3fp-trig.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp-trig.dtx
@@ -40,7 +40,7 @@
% {latex-team@latex-project.org}^^A
% }^^A
% }
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fp.dtx b/macros/latex/contrib/l3kernel/l3fp.dtx
index 779e38c1ad..ad4011b6d5 100644
--- a/macros/latex/contrib/l3kernel/l3fp.dtx
+++ b/macros/latex/contrib/l3kernel/l3fp.dtx
@@ -49,7 +49,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3fparray.dtx b/macros/latex/contrib/l3kernel/l3fparray.dtx
index 326374b8e7..4476f0377e 100644
--- a/macros/latex/contrib/l3kernel/l3fparray.dtx
+++ b/macros/latex/contrib/l3kernel/l3fparray.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3int.dtx b/macros/latex/contrib/l3kernel/l3int.dtx
index ca0f8c0bba..52d769c49a 100644
--- a/macros/latex/contrib/l3kernel/l3int.dtx
+++ b/macros/latex/contrib/l3kernel/l3int.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -1285,12 +1285,11 @@
}
\cs_generate_variant:Nn \int_const:Nn { c }
\if_int_odd:w 0
- \cs_if_exist:NT \tex_luatexversion:D { 1 }
- \cs_if_exist:NT \tex_disablecjktoken:D
- { \if_int_compare:w \tex_jis:D "2121 = "3000 ~ 1 \fi: }
- \cs_if_exist:NT \tex_XeTeXversion:D { 1 } ~
- \cs_if_exist:NTF \tex_disablecjktoken:D
- { \cs_new_eq:NN \@@_constdef:Nw \tex_kchardef:D }
+ \cs_if_exist:NT \tex_luatexversion:D { 1 }
+ \cs_if_exist:NT \tex_omathchardef:D { 1 }
+ \cs_if_exist:NT \tex_XeTeXversion:D { 1 } ~
+ \cs_if_exist:NTF \tex_omathchardef:D
+ { \cs_new_eq:NN \@@_constdef:Nw \tex_omathchardef:D }
{ \cs_new_eq:NN \@@_constdef:Nw \tex_chardef:D }
\@@_constdef:Nw \c_@@_max_constdef_int 1114111 ~
\else:
diff --git a/macros/latex/contrib/l3kernel/l3intarray.dtx b/macros/latex/contrib/l3kernel/l3intarray.dtx
index 66d2c25ce0..dad25796c3 100644
--- a/macros/latex/contrib/l3kernel/l3intarray.dtx
+++ b/macros/latex/contrib/l3kernel/l3intarray.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3kernel-functions.dtx b/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
index c321be6548..ed13c7b993 100644
--- a/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
+++ b/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3keys.dtx b/macros/latex/contrib/l3kernel/l3keys.dtx
index 53370f6f23..b1533c8f20 100644
--- a/macros/latex/contrib/l3kernel/l3keys.dtx
+++ b/macros/latex/contrib/l3kernel/l3keys.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3legacy.dtx b/macros/latex/contrib/l3kernel/l3legacy.dtx
index a5ac73c890..c5528a7889 100644
--- a/macros/latex/contrib/l3kernel/l3legacy.dtx
+++ b/macros/latex/contrib/l3kernel/l3legacy.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3luatex.dtx b/macros/latex/contrib/l3kernel/l3luatex.dtx
index 03b5544016..199db4a628 100644
--- a/macros/latex/contrib/l3kernel/l3luatex.dtx
+++ b/macros/latex/contrib/l3kernel/l3luatex.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -183,6 +183,13 @@
% Resets the timer used by |l3kernel.elapsetime|.
% \end{function}
%
+% \begin{function}{l3kernel.shellescape}
+% \begin{syntax}
+% |l3kernel.shellescape(|\meta{cmd}|)|
+% \end{syntax}
+% Executes the \meta{cmd} and prints to the log as for \pdfTeX{}.
+% \end{function}
+%
% \begin{function}{l3kernel.strcmp}
% \begin{syntax}
% |l3kernel.strcmp(|\meta{str one}, \meta{str two}|)|
@@ -311,6 +318,7 @@ local md5 = md5
local os = os
local string = string
local tex = tex
+local texio = texio
local unicode = unicode
% \end{macrocode}
%
@@ -326,10 +334,12 @@ local md5_sum = md5.sum
local open = io.open
local os_clock = os.clock
local os_date = os.date
+local os_exec = os.execute
local setcatcode = tex.setcatcode
local sprint = tex.sprint
local cprint = tex.cprint
local write = tex.write
+local write_nl = texio.write_nl
% \end{macrocode}
%
% Newer Con\TeX{}t releases replace the |unicode| library by |utf|.
@@ -492,6 +502,23 @@ l3kernel.strcmp = strcmp
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{l3kernel.shellescape}
+% Replicating the \pdfTeX{} log interaction for shell escape.
+% \begin{macrocode}
+local function shellescape(cmd)
+ local status,msg = os_exec(cmd)
+ if status == nil then
+ write_nl("log","runsystem(" .. cmd .. ")...(" .. msg .. ")\n")
+ elseif status == 0 then
+ write_nl("log","runsystem(" .. cmd .. ")...executed\n")
+ else
+ write_nl("log","runsystem(" .. cmd .. ")...failed " .. (msg or "") .. "\n")
+ end
+end
+l3kernel.shellescape = shellescape
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{Generic \Lua{} and font support}
%
% \begin{macrocode}
diff --git a/macros/latex/contrib/l3kernel/l3msg.dtx b/macros/latex/contrib/l3kernel/l3msg.dtx
index 9dd5a55d58..64608fb541 100644
--- a/macros/latex/contrib/l3kernel/l3msg.dtx
+++ b/macros/latex/contrib/l3kernel/l3msg.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3names.dtx b/macros/latex/contrib/l3kernel/l3names.dtx
index e93f8c5db1..72a8af0373 100644
--- a/macros/latex/contrib/l3kernel/l3names.dtx
+++ b/macros/latex/contrib/l3kernel/l3names.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -571,6 +571,7 @@
\@@_primitive:NN \pdflastximagepages \tex_pdflastximagepages:D
\@@_primitive:NN \pdflinkmargin \tex_pdflinkmargin:D
\@@_primitive:NN \pdfliteral \tex_pdfliteral:D
+ \@@_primitive:NN \pdfmajorversion \tex_pdfmajorversion:D
\@@_primitive:NN \pdfminorversion \tex_pdfminorversion:D
\@@_primitive:NN \pdfnames \tex_pdfnames:D
\@@_primitive:NN \pdfobj \tex_pdfobj:D
@@ -1108,21 +1109,19 @@
\@@_primitive:NN \Uunderdelimiter \tex_Uunderdelimiter:D
\@@_primitive:NN \Uvextensible \tex_Uvextensible:D
% \end{macrocode}
-% Primitives from Harf\TeX{}.
-% \begin{macrocode}
- \@@_primitive:NN \harftexrevision \tex_harftexrevision:D
- \@@_primitive:NN \harftexversion \tex_harftexversion:D
-% \end{macrocode}
% Primitives from \pTeX{}.
% \begin{macrocode}
\@@_primitive:NN \autospacing \tex_autospacing:D
\@@_primitive:NN \autoxspacing \tex_autoxspacing:D
+ \@@_primitive:NN \disinhibitglue \tex_disinhibitglue:D
\@@_primitive:NN \dtou \tex_dtou:D
\@@_primitive:NN \epTeXinputencoding \tex_epTeXinputencoding:D
\@@_primitive:NN \epTeXversion \tex_epTeXversion:D
\@@_primitive:NN \euc \tex_euc:D
+ \@@_primitive:NN \hfi \tex_hfi:D
\@@_primitive:NN \ifdbox \tex_ifdbox:D
\@@_primitive:NN \ifddir \tex_ifddir:D
+ \@@_primitive:NN \ifmbox \tex_ifmbox:D
\@@_primitive:NN \ifmdir \tex_ifmdir:D
\@@_primitive:NN \iftbox \tex_iftbox:D
\@@_primitive:NN \iftdir \tex_iftdir:D
@@ -1139,22 +1138,33 @@
\@@_primitive:NN \kansujichar \tex_kansujichar:D
\@@_primitive:NN \kcatcode \tex_kcatcode:D
\@@_primitive:NN \kuten \tex_kuten:D
+ \@@_primitive:NN \lastnodechar \tex_lastnodechar:D
+ \@@_primitive:NN \lastnodesubtype \tex_lastnodesubtype:D
\@@_primitive:NN \noautospacing \tex_noautospacing:D
\@@_primitive:NN \noautoxspacing \tex_noautoxspacing:D
+ \@@_primitive:NN \pagefistretch \tex_pagefistretch:D
\@@_primitive:NN \postbreakpenalty \tex_postbreakpenalty:D
\@@_primitive:NN \prebreakpenalty \tex_prebreakpenalty:D
\@@_primitive:NN \ptexminorversion \tex_ptexminorversion:D
\@@_primitive:NN \ptexrevision \tex_ptexrevision:D
\@@_primitive:NN \ptexversion \tex_ptexversion:D
+ \@@_primitive:NN \readpapersizespecial \tex_readpapersizespecial:D
+ \@@_primitive:NN \scriptbaselineshiftfactor
+ \tex_scriptbaselineshiftfactor:D
+ \@@_primitive:NN \scriptscriptbaselineshiftfactor
+ \tex_scriptscriptbaselineshiftfactor:D
\@@_primitive:NN \showmode \tex_showmode:D
\@@_primitive:NN \sjis \tex_sjis:D
\@@_primitive:NN \tate \tex_tate:D
\@@_primitive:NN \tbaselineshift \tex_tbaselineshift:D
+ \@@_primitive:NN \textbaselineshiftfactor
+ \tex_textbaselineshiftfactor:D
\@@_primitive:NN \tfont \tex_tfont:D
\@@_primitive:NN \xkanjiskip \tex_xkanjiskip:D
\@@_primitive:NN \xspcode \tex_xspcode:D
\@@_primitive:NN \ybaselineshift \tex_ybaselineshift:D
\@@_primitive:NN \yoko \tex_yoko:D
+ \@@_primitive:NN \vfi \tex_vfi:D
% \end{macrocode}
% Primitives from \upTeX{}.
% \begin{macrocode}
@@ -1168,6 +1178,17 @@
\@@_primitive:NN \uptexrevision \tex_uptexrevision:D
\@@_primitive:NN \uptexversion \tex_uptexversion:D
% \end{macrocode}
+% Omega primitives provided by \pTeX{} (listed separately mainly to allow
+% understanding of their source).
+% \begin{macrocode}
+ \@@_primitive:NN \odelcode \tex_odelcode:D
+ \@@_primitive:NN \odelimiter \tex_odelimiter:D
+ \@@_primitive:NN \omathaccent \tex_omathaccent:D
+ \@@_primitive:NN \omathchar \tex_omathchar:D
+ \@@_primitive:NN \omathchardef \tex_omathchardef:D
+ \@@_primitive:NN \omathcode \tex_omathcode:D
+ \@@_primitive:NN \oradical \tex_oradical:D
+% \end{macrocode}
% End of the \enquote{just the names} part of the source.
% \begin{macrocode}
%</initex|names|package>
diff --git a/macros/latex/contrib/l3kernel/l3prefixes.pdf b/macros/latex/contrib/l3kernel/l3prefixes.pdf
index 53f533d99c..44b47156ee 100644
--- a/macros/latex/contrib/l3kernel/l3prefixes.pdf
+++ b/macros/latex/contrib/l3kernel/l3prefixes.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/l3prg.dtx b/macros/latex/contrib/l3kernel/l3prg.dtx
index a70270880b..835d005860 100644
--- a/macros/latex/contrib/l3kernel/l3prg.dtx
+++ b/macros/latex/contrib/l3kernel/l3prg.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3prop.dtx b/macros/latex/contrib/l3kernel/l3prop.dtx
index fac6ffaf3d..570b7a7ade 100644
--- a/macros/latex/contrib/l3kernel/l3prop.dtx
+++ b/macros/latex/contrib/l3kernel/l3prop.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3quark.dtx b/macros/latex/contrib/l3kernel/l3quark.dtx
index 1fb098ed19..dbe2e6e817 100644
--- a/macros/latex/contrib/l3kernel/l3quark.dtx
+++ b/macros/latex/contrib/l3kernel/l3quark.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3regex.dtx b/macros/latex/contrib/l3kernel/l3regex.dtx
index 0bc5f5cb00..deda64aa3a 100644
--- a/macros/latex/contrib/l3kernel/l3regex.dtx
+++ b/macros/latex/contrib/l3kernel/l3regex.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3seq.dtx b/macros/latex/contrib/l3kernel/l3seq.dtx
index 0c7c33e475..b376d5644e 100644
--- a/macros/latex/contrib/l3kernel/l3seq.dtx
+++ b/macros/latex/contrib/l3kernel/l3seq.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3skip.dtx b/macros/latex/contrib/l3kernel/l3skip.dtx
index 69174666e7..86cc965c91 100644
--- a/macros/latex/contrib/l3kernel/l3skip.dtx
+++ b/macros/latex/contrib/l3kernel/l3skip.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3sort.dtx b/macros/latex/contrib/l3kernel/l3sort.dtx
index 682caff3ae..bea3f77030 100644
--- a/macros/latex/contrib/l3kernel/l3sort.dtx
+++ b/macros/latex/contrib/l3kernel/l3sort.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3str-convert.dtx b/macros/latex/contrib/l3kernel/l3str-convert.dtx
index 2fe91d7f9e..e6b49a4d39 100644
--- a/macros/latex/contrib/l3kernel/l3str-convert.dtx
+++ b/macros/latex/contrib/l3kernel/l3str-convert.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3str.dtx b/macros/latex/contrib/l3kernel/l3str.dtx
index 1cda403937..09ed5b723e 100644
--- a/macros/latex/contrib/l3kernel/l3str.dtx
+++ b/macros/latex/contrib/l3kernel/l3str.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3styleguide.pdf b/macros/latex/contrib/l3kernel/l3styleguide.pdf
index 511b22fec9..6c53631dcd 100644
--- a/macros/latex/contrib/l3kernel/l3styleguide.pdf
+++ b/macros/latex/contrib/l3kernel/l3styleguide.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/l3styleguide.tex b/macros/latex/contrib/l3kernel/l3styleguide.tex
index 47db34fc94..c2c12020e6 100644
--- a/macros/latex/contrib/l3kernel/l3styleguide.tex
+++ b/macros/latex/contrib/l3kernel/l3styleguide.tex
@@ -32,7 +32,7 @@ The released version of this bundle is available from CTAN.
{latex-team@latex-project.org}%
}%
}
-\date{Released 2019-10-14}
+\date{Released 2019-10-21}
\begin{document}
diff --git a/macros/latex/contrib/l3kernel/l3syntax-changes.pdf b/macros/latex/contrib/l3kernel/l3syntax-changes.pdf
index 30ee597ba0..a373517264 100644
--- a/macros/latex/contrib/l3kernel/l3syntax-changes.pdf
+++ b/macros/latex/contrib/l3kernel/l3syntax-changes.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/l3syntax-changes.tex b/macros/latex/contrib/l3kernel/l3syntax-changes.tex
index c990f1cfc8..41230dd97c 100644
--- a/macros/latex/contrib/l3kernel/l3syntax-changes.tex
+++ b/macros/latex/contrib/l3kernel/l3syntax-changes.tex
@@ -32,7 +32,7 @@ The released version of this bundle is available from CTAN.
{latex-team@latex-project.org}%
}%
}
-\date{Released 2019-10-14}
+\date{Released 2019-10-21}
\newcommand{\TF}{\textit{(TF)}}
diff --git a/macros/latex/contrib/l3kernel/l3sys.dtx b/macros/latex/contrib/l3kernel/l3sys.dtx
index 06ef4cd731..c2a6e79142 100644
--- a/macros/latex/contrib/l3kernel/l3sys.dtx
+++ b/macros/latex/contrib/l3kernel/l3sys.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
@@ -556,7 +556,7 @@
\cs_new_protected:Npn \sys_shell_now:n #1
{
\lua_now:e
- { os.execute(" \lua_escape:e { \tl_to_str:n {#1} } ") }
+ { l3kernel.shellescape(" \lua_escape:e { \tl_to_str:n {#1} } ") }
}
}
{
@@ -575,7 +575,7 @@
\cs_new_protected:Npn \sys_shell_shipout:n #1
{
\lua_shipout_e:n
- { os.execute(" \lua_escape:e { \tl_to_str:n {#1} } ") }
+ { l3kernel.shellescape(" \lua_escape:e { \tl_to_str:n {#1} } ") }
}
}
{
diff --git a/macros/latex/contrib/l3kernel/l3term-glossary.pdf b/macros/latex/contrib/l3kernel/l3term-glossary.pdf
index 029d33af41..fe3e68b4bc 100644
--- a/macros/latex/contrib/l3kernel/l3term-glossary.pdf
+++ b/macros/latex/contrib/l3kernel/l3term-glossary.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/l3term-glossary.tex b/macros/latex/contrib/l3kernel/l3term-glossary.tex
index d7ec25e4c0..4bd29c2daa 100644
--- a/macros/latex/contrib/l3kernel/l3term-glossary.tex
+++ b/macros/latex/contrib/l3kernel/l3term-glossary.tex
@@ -32,7 +32,7 @@ The released version of this bundle is available from CTAN.
{latex-team@latex-project.org}%
}%
}
-\date{Released 2019-10-14}
+\date{Released 2019-10-21}
\newcommand{\TF}{\textit{(TF)}}
diff --git a/macros/latex/contrib/l3kernel/l3tl-analysis.dtx b/macros/latex/contrib/l3kernel/l3tl-analysis.dtx
index aaaea4a2fa..fe34f9698e 100644
--- a/macros/latex/contrib/l3kernel/l3tl-analysis.dtx
+++ b/macros/latex/contrib/l3kernel/l3tl-analysis.dtx
@@ -44,7 +44,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3tl.dtx b/macros/latex/contrib/l3kernel/l3tl.dtx
index 8d810681a9..5e8551a7b1 100644
--- a/macros/latex/contrib/l3kernel/l3tl.dtx
+++ b/macros/latex/contrib/l3kernel/l3tl.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3token.dtx b/macros/latex/contrib/l3kernel/l3token.dtx
index ba41227682..3ac24900ee 100644
--- a/macros/latex/contrib/l3kernel/l3token.dtx
+++ b/macros/latex/contrib/l3kernel/l3token.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/l3unicode.dtx b/macros/latex/contrib/l3kernel/l3unicode.dtx
index fe60c0c7e5..45bedf0cbf 100644
--- a/macros/latex/contrib/l3kernel/l3unicode.dtx
+++ b/macros/latex/contrib/l3kernel/l3unicode.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-14}
+% \date{Released 2019-10-21}
%
% \maketitle
%
diff --git a/macros/latex/contrib/l3kernel/source3.pdf b/macros/latex/contrib/l3kernel/source3.pdf
index 76d72e9730..d4e1544019 100644
--- a/macros/latex/contrib/l3kernel/source3.pdf
+++ b/macros/latex/contrib/l3kernel/source3.pdf
Binary files differ
diff --git a/macros/latex/contrib/l3kernel/source3.tex b/macros/latex/contrib/l3kernel/source3.tex
index 81167d41d8..d13109340f 100644
--- a/macros/latex/contrib/l3kernel/source3.tex
+++ b/macros/latex/contrib/l3kernel/source3.tex
@@ -53,7 +53,7 @@ for those people who are interested.
{latex-team@latex-project.org}%
}%
}
-\date{Released 2019-10-14}
+\date{Released 2019-10-21}
\pagenumbering{roman}
\maketitle
diff --git a/macros/latex/contrib/onedown/ODw-danish.trsl b/macros/latex/contrib/onedown/ODw-danish.trsl
index fb83c04e50..0f8c9dbbc7 100644
--- a/macros/latex/contrib/onedown/ODw-danish.trsl
+++ b/macros/latex/contrib/onedown/ODw-danish.trsl
@@ -4,7 +4,7 @@
%
%% retrieve with e.g \GetTranslation{dealer-(ODw)} to get givare
%
-\ProvideDictionaryFor{danish}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{danish}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1.}
\NewDictTranslation{2nd-(ODw)}{2.}
@@ -123,7 +123,7 @@
\NewDictTranslation{redoubled-(ODw)}{redubbelt}
\NewDictTranslation{Redoubled-(ODw)}{Redubbelt}
\NewDictTranslation{redouble-(ODw)}{redubbelt}
-\NewDictTranslation{Redouble-(ODw)}{Redubbelt}
+\NewDictTranslation{ReDouble-(ODw)}{Redubbelt}
\NewDictTranslation{semi forcing-(ODw)}{semi forcing}
\NewDictTranslation{Semi Forcing-(ODw)}{Semi Forcing}
\NewDictTranslation{sf-(ODw)}{sf}
@@ -140,8 +140,8 @@
\NewDictTranslation{Third Suit Forcing-(ODw)}{Tredje Farve Forcing}
\NewDictTranslation{total points-(ODw)}{total points}
\NewDictTranslation{Total Points-(ODw)}{Total Points}
-\NewDictTranslation{tp-(ODw)}{sp}
-\NewDictTranslation{TP-(ODw)}{SP}
+\NewDictTranslation{tp-(ODw)}{tp}
+\NewDictTranslation{TP-(ODw)}{TP}
\NewDictTranslation{trial bid-(ODw)}{trial bid}
\NewDictTranslation{Trial bid-(ODw)}{Trial bid}
\NewDictTranslation{trick-(ODw)}{træk}
diff --git a/macros/latex/contrib/onedown/ODw-dutch.trsl b/macros/latex/contrib/onedown/ODw-dutch.trsl
index c9b3256be1..d2ab2df5c8 100644
--- a/macros/latex/contrib/onedown/ODw-dutch.trsl
+++ b/macros/latex/contrib/onedown/ODw-dutch.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get dealer
%
-\ProvideDictionaryFor{dutch}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{dutch}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1ste}
\NewDictTranslation{2nd-(ODw)}{2de}
@@ -119,15 +119,15 @@
\NewDictTranslation{Q-(ODw)}{V}
\NewDictTranslation{queen-(ODw)}{vrouw}
\NewDictTranslation{Queen-(ODw)}{Vrouw}
-\NewDictTranslation{ReDbl-(ODw)}{ReDbl}
+\NewDictTranslation{ReDbl-(ODw)}{ReDblt}
\NewDictTranslation{redoubled-(ODw)}{geredoubleerd}
\NewDictTranslation{Redoubled-(ODw)}{Geredoubleerd}
\NewDictTranslation{redouble-(ODw)}{redoublet}
-\NewDictTranslation{Redouble-(ODw)}{Redoublet}
+\NewDictTranslation{ReDouble-(ODw)}{Redoublet}
\NewDictTranslation{semi forcing-(ODw)}{semi-mancheforcing}
\NewDictTranslation{Semi Forcing-(ODw)}{Semi-MancheForcing}
-\NewDictTranslation{sf-(ODw)}{sf}
-\NewDictTranslation{SF-(ODw)}{SF}
+\NewDictTranslation{sf-(ODw)}{smf}
+\NewDictTranslation{SF-(ODw)}{SMF}
\NewDictTranslation{s-(ODw)}{z}
\NewDictTranslation{S-(ODw)}{Z}
\NewDictTranslation{south-(ODw)}{zuid}
diff --git a/macros/latex/contrib/onedown/ODw-english.trsl b/macros/latex/contrib/onedown/ODw-english.trsl
index 6060e38966..052acb217c 100644
--- a/macros/latex/contrib/onedown/ODw-english.trsl
+++ b/macros/latex/contrib/onedown/ODw-english.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get dealer
%
-\ProvideDictionaryFor{english}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{english}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1st}
\NewDictTranslation{2nd-(ODw)}{2nd}
diff --git a/macros/latex/contrib/onedown/ODw-fallback.trsl b/macros/latex/contrib/onedown/ODw-fallback.trsl
index 135f8b3427..7c79d06de3 100644
--- a/macros/latex/contrib/onedown/ODw-fallback.trsl
+++ b/macros/latex/contrib/onedown/ODw-fallback.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get dealer
%
-\ProvideDictionaryFor{fallback}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{fallback}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1st}
\NewDictTranslation{2nd-(ODw)}{2nd}
diff --git a/macros/latex/contrib/onedown/ODw-french.trsl b/macros/latex/contrib/onedown/ODw-french.trsl
index b1d5a7e4fd..5a9ec7e8c1 100644
--- a/macros/latex/contrib/onedown/ODw-french.trsl
+++ b/macros/latex/contrib/onedown/ODw-french.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get donneur
%
-\ProvideDictionaryFor{french}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{french}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1er}
\NewDictTranslation{2nd-(ODw)}{2e}
@@ -28,8 +28,8 @@
\NewDictTranslation{Bid-(ODw)}{Enchère}
\NewDictTranslation{board-(ODw)}{etui}
\NewDictTranslation{Board-(ODw)}{Etui}
-\NewDictTranslation{brd-(ODw)}{bte}
-\NewDictTranslation{Brd-(ODw)}{Bte}
+\NewDictTranslation{brd-(ODw)}{etui}
+\NewDictTranslation{Brd-(ODw)}{Etui}
\NewDictTranslation{by-(ODw)}{pour}
\NewDictTranslation{call-(ODw)}{annonce}
\NewDictTranslation{Call-(ODw)}{Annonce}
diff --git a/macros/latex/contrib/onedown/ODw-german.trsl b/macros/latex/contrib/onedown/ODw-german.trsl
index 35ac8e3de7..b1cd730f37 100644
--- a/macros/latex/contrib/onedown/ODw-german.trsl
+++ b/macros/latex/contrib/onedown/ODw-german.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get teiler
%
-\ProvideDictionaryFor{german}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{german}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1.}
\NewDictTranslation{2nd-(ODw)}{2.}
@@ -38,7 +38,7 @@
\NewDictTranslation{Contract-(ODw)}{Kontrakt}
\NewDictTranslation{contr-(ODw)}{kontr}
\NewDictTranslation{Contr-(ODw)}{Kontr}
-\NewDictTranslation{Dbl-(ODw)}{Kontra}
+\NewDictTranslation{Dbl-(ODw)}{Kntr}
\NewDictTranslation{dealer-(ODw)}{teiler}
\NewDictTranslation{Dealer-(ODw)}{Teiler}
\NewDictTranslation{deal!-(ODw)}{aust}
@@ -119,11 +119,11 @@
\NewDictTranslation{Q-(ODw)}{D}
\NewDictTranslation{queen-(ODw)}{dame}
\NewDictTranslation{Queen-(ODw)}{Dame}
-\NewDictTranslation{ReDbl-(ODw)}{ReKontra}
+\NewDictTranslation{ReDbl-(ODw)}{ReKntr}
\NewDictTranslation{redoubled-(ODw)}{rekontriert}
\NewDictTranslation{Redoubled-(ODw)}{Rekontriert}
\NewDictTranslation{redouble-(ODw)}{rekontra}
-\NewDictTranslation{Redouble-(ODw)}{Rekontra}
+\NewDictTranslation{ReDouble-(ODw)}{ReKontra}
\NewDictTranslation{semi forcing-(ODw)}{semi forcing}
\NewDictTranslation{Semi Forcing-(ODw)}{Semi Forcing}
\NewDictTranslation{sf-(ODw)}{sf}
diff --git a/macros/latex/contrib/onedown/ODw-norwegian.trsl b/macros/latex/contrib/onedown/ODw-norwegian.trsl
index d8169b4715..894ad713dc 100644
--- a/macros/latex/contrib/onedown/ODw-norwegian.trsl
+++ b/macros/latex/contrib/onedown/ODw-norwegian.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g \GetTranslation{dealer-(ODw)} to get givare
%
-\ProvideDictionaryFor{norwegian}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{norwegian}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1.}
\NewDictTranslation{2nd-(ODw)}{2.}
@@ -123,7 +123,7 @@
\NewDictTranslation{redoubled-(ODw)}{redoblet}
\NewDictTranslation{Redoubled-(ODw)}{Redoblet}
\NewDictTranslation{redouble-(ODw)}{redoblet}
-\NewDictTranslation{Redouble-(ODw)}{Redoblet}
+\NewDictTranslation{ReDouble-(ODw)}{Redoblet}
\NewDictTranslation{semi forcing-(ODw)}{RundKrav}
\NewDictTranslation{Semi Forcing-(ODw)}{RundKrav}
\NewDictTranslation{sf-(ODw)}{rk}
@@ -140,8 +140,8 @@
\NewDictTranslation{Third Suit Forcing-(ODw)}{Tredje Farge Forcing}
\NewDictTranslation{total points-(ODw)}{totalt poeng}
\NewDictTranslation{Total Points-(ODw)}{Totalt Poeng}
-\NewDictTranslation{tp-(ODw)}{sp}
-\NewDictTranslation{TP-(ODw)}{SP}
+\NewDictTranslation{tp-(ODw)}{tp}
+\NewDictTranslation{TP-(ODw)}{TP}
\NewDictTranslation{trial bid-(ODw)}{prøving bud}
\NewDictTranslation{Trial bid-(ODw)}{Prøving bud}
\NewDictTranslation{trick-(ODw)}{trekk}
diff --git a/macros/latex/contrib/onedown/ODw-spanish.trsl b/macros/latex/contrib/onedown/ODw-spanish.trsl
new file mode 100644
index 0000000000..db88594dd7
--- /dev/null
+++ b/macros/latex/contrib/onedown/ODw-spanish.trsl
@@ -0,0 +1,160 @@
+% this is file ODw-spanish.trsl from the OneDown bundle
+%
+% Entries with a "!" denote an abreviated form
+%
+% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get donneur
+%
+\ProvideDictionaryFor{spanish}{ODw}[V0.51-2019/10/15]
+
+\NewDictTranslation{1st-(ODw)}{1er}
+\NewDictTranslation{2nd-(ODw)}{2do}
+\NewDictTranslation{3rd-(ODw)}{3er}
+\NewDictTranslation{4th-(ODw)}{4th}
+\NewDictTranslation{ace-(ODw)}{as}
+\NewDictTranslation{Ace-(ODw)}{As}
+\NewDictTranslation{all-(ODw)}{todos}
+\NewDictTranslation{All-(ODw)}{Todos}
+\NewDictTranslation{all!-(ODw)}{todos}
+\NewDictTranslation{All!-(ODw)}{Todos}
+\NewDictTranslation{all pass-(ODw)}{todos pasan}
+\NewDictTranslation{All pass-(ODw)}{Todos pasan}
+\NewDictTranslation{a-(ODw)}{a}
+\NewDictTranslation{A-(ODw)}{A}
+\NewDictTranslation{ap-(ODw)}{tp}
+\NewDictTranslation{AP-(ODw)}{TP}
+\NewDictTranslation{award-(ODw)}{premio}
+\NewDictTranslation{Award-(ODw)}{Premio}
+\NewDictTranslation{bid-(ODw)}{contrato}
+\NewDictTranslation{Bid-(ODw)}{Contrato}
+\NewDictTranslation{board-(ODw)}{estuche}
+\NewDictTranslation{Board-(ODw)}{Estuche}
+\NewDictTranslation{brd-(ODw)}{est}
+\NewDictTranslation{Brd-(ODw)}{Est}
+\NewDictTranslation{by-(ODw)}{por}
+\NewDictTranslation{call-(ODw)}{annonce}
+\NewDictTranslation{Call-(ODw)}{Annonce}
+\NewDictTranslation{-card-(ODw)}{-carta}
+\NewDictTranslation{contract-(ODw)}{contrato final}
+\NewDictTranslation{Contract-(ODw)}{Contrato final}
+\NewDictTranslation{contr-(ODw)}{ctrf}
+\NewDictTranslation{Contr-(ODw)}{Ctrf}
+\NewDictTranslation{Dbl-(ODw)}{Dbl}
+\NewDictTranslation{dealer-(ODw)}{dador}
+\NewDictTranslation{Dealer-(ODw)}{Dador}
+\NewDictTranslation{deal!-(ODw)}{donne}
+\NewDictTranslation{Deal!-(ODw)}{Donne}
+\NewDictTranslation{deal-(ODw)}{donne}
+\NewDictTranslation{Deal-(ODw)}{Donne}
+\NewDictTranslation{declarer-(ODw)}{declarante}
+\NewDictTranslation{Declarer-(ODw)}{Declarante}
+\NewDictTranslation{decl-(ODw)}{decl}
+\NewDictTranslation{Decl-(ODw)}{Decl}
+\NewDictTranslation{distribution points-(ODw)}{puntos de distribución}
+\NewDictTranslation{Distribution Points-(ODw)}{Puntos de Distribución}
+\NewDictTranslation{doubled-(ODw)}{doblado}
+\NewDictTranslation{Doubled-(ODw)}{Doblado}
+\NewDictTranslation{double-(ODw)}{doblo}
+\NewDictTranslation{Double-(ODw)}{Doblo}
+\NewDictTranslation{dp-(ODw)}{pd}
+\NewDictTranslation{DP-(ODw)}{PD}
+\NewDictTranslation{east-(ODw)}{este}
+\NewDictTranslation{East-(ODw)}{Este}
+\NewDictTranslation{e-(ODw)}{e}
+\NewDictTranslation{E-(ODw)}{E}
+\NewDictTranslation{fourth suit forcing-(ODw)}{cuarto palo forcing}
+\NewDictTranslation{Fourth Suit Forcing-(ODw)}{Cuarto Palo Forcing}
+\NewDictTranslation{fsf-(ODw)}{4th\,pf}
+\NewDictTranslation{FSF-(ODw)}{4th\,PF}
+\NewDictTranslation{game forcing-(ODw)}{forcing a manga}
+\NewDictTranslation{Game Forcing-(ODw)}{Forcing a Manga}
+\NewDictTranslation{GF-(ODw)}{FG}
+\NewDictTranslation{gf-(ODw)}{fg}
+\NewDictTranslation{hand-(ODw)}{mano}
+\NewDictTranslation{Hand-(ODw)}{Mano}
+\NewDictTranslation{hcp-(ODw)}{ph}
+\NewDictTranslation{HCP-(ODw)}{PH}
+\NewDictTranslation{high card points-(ODw)}{puntos de honores}
+\NewDictTranslation{High Card Points-(ODw)}{Puntos de Honores}
+\NewDictTranslation{hlp-(ODw)}{hl}
+\NewDictTranslation{HLP-(ODw)}{HL}
+\NewDictTranslation{jack-(ODw)}{jaco}
+\NewDictTranslation{Jack-(ODw)}{Jaco}
+\NewDictTranslation{j-(ODw)}{j}
+\NewDictTranslation{J-(ODw)}{J}
+\NewDictTranslation{king-(ODw)}{rey}
+\NewDictTranslation{King-(ODw)}{Rey}
+\NewDictTranslation{k-(ODw)}{r}
+\NewDictTranslation{K-(ODw)}{R}
+\NewDictTranslation{lead!-(ODw)}{ent.}
+\NewDictTranslation{Lead!-(ODw)}{Ent.}
+\NewDictTranslation{lead-(ODw)}{entame}
+\NewDictTranslation{Lead-(ODw)}{Entame}
+\NewDictTranslation{length points-(ODw)}{points de longueur}
+\NewDictTranslation{Length Points-(ODw)}{Points de Longueur}
+\NewDictTranslation{lp-(ODw)}{pl}
+\NewDictTranslation{LP-(ODw)}{PL}
+\NewDictTranslation{new minor forcing-(ODw)}{neuvo menor forcing}
+\NewDictTranslation{New Minor Forcing-(ODw)}{Neuvo Menor Forcing}
+\NewDictTranslation{nmf-(ODw)}{nmf}
+\NewDictTranslation{NMF-(ODw)}{NMF}
+\NewDictTranslation{n-(ODw)}{n}
+\NewDictTranslation{N-(ODw)}{N}
+\NewDictTranslation{none-(ODw)}{nadie}
+\NewDictTranslation{None-(ODw)}{Nadie}
+\NewDictTranslation{none!-(ODw)}{nadie}
+\NewDictTranslation{None!-(ODw)}{Nadie}
+\NewDictTranslation{north-(ODw)}{norte}
+\NewDictTranslation{North-(ODw)}{Norte}
+\NewDictTranslation{no trump-(ODw)}{sin triunfo}
+\NewDictTranslation{No Trump-(ODw)}{Sin Triunfo}
+\NewDictTranslation{Nr-(ODw)}{\textnumero}
+\NewDictTranslation{Nr.-(ODw)}{\textnumero.}
+\NewDictTranslation{nt-(ODw)}{st}
+\NewDictTranslation{NT-(ODw)}{S\kern-0.01emT}
+\NewDictTranslation{pass-(ODw)}{paso}
+\NewDictTranslation{Pass-(ODw)}{Paso}
+\NewDictTranslation{pass!-(ODw)}{p}
+\NewDictTranslation{Pass!-(ODw)}{P}
+\NewDictTranslation{q-(ODw)}{d}
+\NewDictTranslation{Q-(ODw)}{D}
+\NewDictTranslation{queen-(ODw)}{dama}
+\NewDictTranslation{Queen-(ODw)}{Dama}
+\NewDictTranslation{ReDbl-(ODw)}{ReDbl}
+\NewDictTranslation{redoubled-(ODw)}{redoblado}
+\NewDictTranslation{Redoubled-(ODw)}{Redoblado}
+\NewDictTranslation{redouble-(ODw)}{redoblo}
+\NewDictTranslation{Redouble-(ODw)}{Redoblo}
+\NewDictTranslation{semi forcing-(ODw)}{semi forcing}
+\NewDictTranslation{Semi Forcing-(ODw)}{Semi Forcing}
+\NewDictTranslation{SF-(ODw)}{SF}
+\NewDictTranslation{sf-(ODw)}{sf}
+\NewDictTranslation{s-(ODw)}{s}
+\NewDictTranslation{S-(ODw)}{S}
+\NewDictTranslation{south-(ODw)}{sur}
+\NewDictTranslation{South-(ODw)}{Sur}
+\NewDictTranslation{suiter-(ODw)}{color}
+\NewDictTranslation{Suiter-(ODw)}{Color}
+\NewDictTranslation{suit-(ODw)}{palo}
+\NewDictTranslation{Suit-(ODw)}{Palo}
+\NewDictTranslation{third suit forcing-(ODw)}{tercer palo forcing}
+\NewDictTranslation{Third Suit Forcing-(ODw)}{Tercer Palo Forcing}
+\NewDictTranslation{total points-(ODw)}{puntos de honor-distribución}
+\NewDictTranslation{Total Points-(ODw)}{Puntos de Honor-Distribución}
+\NewDictTranslation{TP-(ODw)}{PHD}
+\NewDictTranslation{tp-(ODw)}{phd}
+\NewDictTranslation{trial bid-(ODw)}{trial bid}
+\NewDictTranslation{Trial bid-(ODw)}{Trial bid}
+\NewDictTranslation{trick-(ODw)}{baza}
+\NewDictTranslation{Trick-(ODw)}{Baza}
+\NewDictTranslation{tsf-(ODw)}{3er\,pf}
+\NewDictTranslation{TSF-(ODw)}{3er\,PF}
+\NewDictTranslation{vulnerable-(ODw)}{vulnerable}
+\NewDictTranslation{Vulnerable-(ODw)}{Vulnerable}
+\NewDictTranslation{vul-(ODw)}{vul}
+\NewDictTranslation{Vul-(ODw)}{Vul}
+\NewDictTranslation{west-(ODw)}{oeste}
+\NewDictTranslation{West-(ODw)}{Oeste}
+\NewDictTranslation{w-(ODw)}{o}
+\NewDictTranslation{W-(ODw)}{O}
+%
+\endinput
diff --git a/macros/latex/contrib/onedown/ODw-swedish.trsl b/macros/latex/contrib/onedown/ODw-swedish.trsl
index 336c5a4d3d..5426b5e797 100644
--- a/macros/latex/contrib/onedown/ODw-swedish.trsl
+++ b/macros/latex/contrib/onedown/ODw-swedish.trsl
@@ -4,7 +4,7 @@
% Thanks to Per Karlberg
% retrieve with e.g \GetTranslation{dealer-(ODw)} to get givare
%
-\ProvideDictionaryFor{swedish}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{swedish}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1:a}
\NewDictTranslation{2nd-(ODw)}{2:a}
diff --git a/macros/latex/contrib/onedown/ODw-turkish.trsl b/macros/latex/contrib/onedown/ODw-turkish.trsl
index e4f8683394..384fa6dfb1 100644
--- a/macros/latex/contrib/onedown/ODw-turkish.trsl
+++ b/macros/latex/contrib/onedown/ODw-turkish.trsl
@@ -4,7 +4,7 @@
%
% retrieve with e.g. \GetTranslation{dealer-(ODw)} to get kâğıdı
%
-\ProvideDictionaryFor{turkish}{ODw}[V0.50-2019/02/21]
+\ProvideDictionaryFor{turkish}{ODw}[V0.51-2019/10/15]
\NewDictTranslation{1st-(ODw)}{1.}
\NewDictTranslation{2nd-(ODw)}{2.}
diff --git a/macros/latex/contrib/onedown/README b/macros/latex/contrib/onedown/README
index a72c13ed32..e4e096028c 100644
--- a/macros/latex/contrib/onedown/README
+++ b/macros/latex/contrib/onedown/README
@@ -1,11 +1,11 @@
--------------------------------------------------------------------------
-The OneDown package v1.3 - 2019/02/21
+The OneDown package v1.4 - 2019/10/15
A package to typeset diagrams for the game of bridge
--------------------------------------------------------------------------
Jacob Wiersma
Web:
-E-Mail: jack46@online.de
+E-Mail: jack@schuli-wirsi.de
--------------------------------------------------------------------------
Copyright 2018 Jacob Wiersma
@@ -33,6 +33,7 @@ the files
- ODw-danish.trsl ODw-english.trsl ODw-french.trsl
ODw-norwegian.trsl ODw-turkish.trsl ODw-dutch.trsl
ODw-fallback.trsl ODw-german.trsl ODw-swedish.trsl
+ ODw-spanish.trsl
the directory examples with the files
- onedown-examples.pdf onedown-ref.pdf
@@ -67,11 +68,17 @@ be generated. Use this option at your own risk.
MORE DOCUMENTATION
- examples/onedown-examples.pdf
- examples/onedown-ref.pdf
+These are in english. To get PDFs which shows the (output of) onedown commands
+in your language run
+ pdflatex '\AtBeginDocument{\def\RefLang{french}}\input{onedown-ref.tex}'
+or
+ pdflatex '\AtBeginDocument{\def\ExLang{norsk}}\input{onedown-examples.tex}'
+This works for all supported languages
--------------------------------------------------------------------------
DESCRIPTION
This packages provides macros to typeset bridge diagrams, including hands
-(stand alone or arround a compass), bidding tables (stand alone or in
+(stand alone or around a compass), bidding tables (stand alone or in
connection with hands/compass), trick tables and expert quizes.
--------------------------------------------------------------------------
REQUIREMENTS
diff --git a/macros/latex/contrib/onedown/examples/onedown-examples.pdf b/macros/latex/contrib/onedown/examples/onedown-examples.pdf
deleted file mode 100644
index 9bc5e63247..0000000000
--- a/macros/latex/contrib/onedown/examples/onedown-examples.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/onedown-examples.tex b/macros/latex/contrib/onedown/examples/onedown-examples.tex
index d572b06cd2..1e5f5b57ad 100644
--- a/macros/latex/contrib/onedown/examples/onedown-examples.tex
+++ b/macros/latex/contrib/onedown/examples/onedown-examples.tex
@@ -1,6 +1,6 @@
%%
%% onedown-examples.tex
-%% April 16, 2018
+%% Oct 04, 2019
%% Requires the onedown bundle
%% Part of the OneDown bundle (mirror.ctan.org/onedown)
%% author: J. Wiersma
@@ -17,9 +17,17 @@
\usepackage[T1]{fontenc}
%
\usepackage{subfiles}% can compile stand-alone/combined
-\usepackage[dutch,norsk,%
- turkish,shorthands=,% avoid problems with ':', '=' and '!'
- german,english]{babel}% introduce possible languages
+\usepackage[%
+ danish,%
+ dutch,%
+ french,%
+ german,%
+ norsk,%
+ spanish,es-noshorthands,% unset active chars to avoid problems with '.' '’' '"' '~' '<' and '>'
+ swedish,%
+ turkish,shorthands=,% unset active chars to avoid problems with ':', '=' and '!'
+ english,%
+]{babel}% introduce all known languages, default is english
%\usepackage[mono=false]{libertine}% verbatim needs option mono=false
% linertine screws verbatim, at least I don't know how to handle that
@@ -104,8 +112,15 @@
\def\SubFile#1{\def\FileName{#1}\newpage\section{#1}\subfile{#1}}
\addtolength{\textheight}{1.5cm}
-
+\def\ExLang{english}
\begin{document}
+% when compiled with:
+% pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'
+% you'll get the onedown commands expansions in YourLanguage
+% YourLanguage can be any language out of:
+% english, danish, dutch, french, german, norsk, spanish, swedish, turkish
+%
+\expandafter\selectlanguage\expandafter{\ExLang}
\pdfbookmark[1]{Title}{Title}
\title{Examples for the\\\OneDown package%
\footnote{This file is part of the \OneDown bundle. To generate this file,
@@ -137,6 +152,12 @@ sections bear the file name, which can also be found in the list below. The
examples are produced using the \textsf{tcolorbox} package. This enables us
to show the code and the output of it side by side.
+The explanatory text is always in the English language. But you can show the output of all commands
+in any of the supported languages.\\
+These are: english, danish, dutch, french, german, norsk, spanish, swedish, turkish. \\
+You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with: \\[0.2em]
+
+\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-examples.tex}'|
\par\vspace{1\baselineskip}
\setlength\columnseprule{.8pt}% rule between cols
\begin{multicols}{3}[{\centering \textbf{\Large List of Examples}}]
diff --git a/macros/latex/contrib/onedown/examples/onedown-ref.pdf b/macros/latex/contrib/onedown/examples/onedown-ref.pdf
deleted file mode 100644
index c59b80f641..0000000000
--- a/macros/latex/contrib/onedown/examples/onedown-ref.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/onedown-ref.tex b/macros/latex/contrib/onedown/examples/onedown-ref.tex
index 44930e12e0..6d16724130 100644
--- a/macros/latex/contrib/onedown/examples/onedown-ref.tex
+++ b/macros/latex/contrib/onedown/examples/onedown-ref.tex
@@ -1,4 +1,41 @@
-\documentclass[onedown-examples]{subfiles}
+%%
+%% onedown-ref.tex
+%% Oct 04, 2019
+%% Requires the onedown bundle
+%% Part of the OneDown bundle (mirror.ctan.org/onedown)
+%% author: J. Wiersma
+%%--------NOTE-------------------------------------------
+%% USAGE: (pdf)latex onedown-ref.tex
+%%-------------------------------------------------------
+
+\documentclass[a4paper,fontsize=11pt]{scrartcl}
+\usepackage{scrlayer-scrpage}
+%
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+%
+\usepackage[%
+ danish,%
+ dutch,%
+ french,%
+ german,%
+ norsk,%
+ spanish,es-noshorthands,% unset active chars to avoid problems with '.' '’' '"' '~' '<' and '>'
+ swedish,%
+ turkish,shorthands=,% unset active chars to avoid problems with ':', '=' and '!'
+ english,%
+]{babel}% introduce all known languages, default is english
+
+\usepackage{onedown}% our own style to set bridge stuff
+\usepackage[a4paper, total={185mm, 257mm},left=12mm,top=20mm]{geometry}
+\newcommand\OneDown{\textcolor{red}{\smaller\bfseries\textsc{OneDown}}\xspace}
+\usepackage{shortvrb}
+\MakeShortVerb{\|}
+\usepackage{enumitem}%
+%\fi
+%
+%%%
+%
\usepackage[Q=yes]{examplep}
\makeatletter
\def\verbatim@font{\ttfamily\bfseries
@@ -19,9 +56,16 @@
%
\definecolor{optbackgr}{named}{lightgray}
\newcommand\Oarg[1]{\colorbox{optbackgr}{\texttt{#1}}}
-
+% default language to show the onedown command
+\def\RefLang{english}
\begin{document}
-
+% when compiled with:
+% pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'
+% you'll get the onedown commands expansions in YourLanguage
+% YourLanguage can be any language out of:
+% english, danish, dutch, french, german, norsk, spanish, swedish, turkish
+%
+\expandafter\selectlanguage\expandafter{\RefLang}
\larger
\newgeometry{total={150mm, 265mm},left=25mm,top=15mm}
\pagestyle{empty}
@@ -37,8 +81,14 @@ angles |<...>|. Optional tokens of a command appear with a different
background color, like \Oarg{*!}. Output of a tokenized |\macro*!| is shown
as:
\quad|\macro|\Oarg{*!}|: \macro, \macro*, \macro!, \macro*!|\\
-All output is shown for the English language.
-
+The explanatory text is always in the English language. But you can show the output of all commands
+in any of the supported languages.\\
+These are: english, danish, dutch, french, german, norsk, spanish, swedish, turkish. \\
+You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with: \\[0.5em]
+%
+\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'|
+\\[0.7em]
+\centerline{\textbf{This document shows the commands for the \emph{\RefLang}\ language}}
\begin{description}[itemsep=-0.3em]
\item[ace]: \ace
\item[Ace\Oarg{*!}]: \Ace, \Ace*, \Ace!, \Ace*!
@@ -118,7 +168,7 @@ To denote the rank \suit{T}, one has to use the uppercase letter |T|.
\item[eastwest]: \eastwest
\item[Eastwest\Oarg{*!}]: \EastWest, \EastWest*, \EastWest!, \EastWest*!
-\item[expertquiz\Oarg{*!}\Q{[comment]}{award}]\\
+\item[expertquiz\Oarg{*!}\Q{[comment]{award}}]\\
Typesets a quiz, showing a
predefined hand and a predefined bidding diagram. The star version centers
the output. The token |!| forces a newline between hand and bidding
@@ -460,6 +510,7 @@ These macros, called in a bidding table\ldots
8 & {\Pass*!} & {\Double*!} & {\Redouble*!} & {\Allpass*!} \\
9 & {\pass} & {\double} & {\redouble} & {\allpass} \\
\end{tabular}\\
+
\end{document}
\endinput
diff --git a/macros/latex/contrib/onedown/onedown.dtx b/macros/latex/contrib/onedown/onedown.dtx
index 9e5e53941d..89f6d5034b 100644
--- a/macros/latex/contrib/onedown/onedown.dtx
+++ b/macros/latex/contrib/onedown/onedown.dtx
@@ -24,10 +24,10 @@
\ProvidesFile{onedown.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2014/05/01]
-%<package>\def\ODwstyleversion{1.3}\def\ODwstyledate{2019/02/21}
+%<package>\def\ODwstyleversion{1.4}\def\ODwstyledate{2019/10/15}
%<package>\ProvidesPackage{onedown}
%<package> [\ODwstyledate\space v\ODwstyleversion\space
-%<package> Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2018]
+%<package> Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2019]
%
%<*driver>
%\documentclass[a4paper,12pt,draft]{ltxdoc}% with draft no hyperrefs
@@ -37,7 +37,7 @@
%
\usepackage[T1]{fontenc}
\usepackage[german,dutch,french,swedish,english,shorthands=]{babel}
-\usepackage{onedown}[2018/10/31]
+\usepackage{onedown}[2019/10/15]
\usepackage[normalem]{ulem}% for strikeout todos that are done
\usepackage{needspace}% keep contiguous lines on one page
\usepackage[inline]{enumitem}% Control various parameters of lists
@@ -209,7 +209,7 @@
%</driver>
% \fi
%
-% \CheckSum{3731}
+% \CheckSum{3771}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -272,7 +272,7 @@
% - Made ODw@OtherFont local where necessary.\\
% - Redefined columntypes.\\
% - Made 'T' a code for '10'.\\
-% - Adapted the translate macro to enable both 1H and 1\cmd{\He} etc. \\
+% - Adapted the 'translate' macro to enable both 1H and 1\cmd{\He} etc. \\
% - Enhanced the documentation.}
%
% \changes{v0.6}{2018/03/14}{\\
@@ -290,9 +290,9 @@
%
% \changes{v0.7a}{2018/03/24}{\\
% - Major change: Removed all \cmd{\bidXX} and \cmd{\bidXXpair} commands.\\
-% - The biddings can now be shown with \cmd{\showXX+} (with token '+').\\
+% - The biddings can now be shown with \cmd{\showXX+} (with token '\texttt{+}').\\
% - The macros \cmd{\hand-} and the bidding environments suppress their
-% output with token '-'}
+% output with token '\texttt{-}'}
%
% \changes{v0.8}{2018/04/11}{\\
% - Added package \packname{verbatimbox} to adjust verbatim font easily.\\
@@ -357,16 +357,35 @@
% \cmd{\ODw@LongCalls}\\
% - In command \cmd{\suit} changed 'JW \cmd{\ODw@GameSize}' into
% '\cmd{\ODw@GameSize}'}
-% \changes{v1.3}{2019/02/21}{\\
+% \changes{v1.3a}{2019/02/21}{\\
% - Added \cmd{\HLP} \\
% - Changed/Added in all relevant ODw-lang.trsl: \\
-% - FP into F and fp into f (entry HCP/hcp) \\
-% - Figuren-Punkte into Figurenpunkte and figuren-punkte into figurenpunkte \\
-% - FL into L and f{}l into l \\
-% - \cmd{\NewDictTranslation\\
-% \{HLP-(ODw)\}\{FL\}} (e.g. for german)
+% - 'V0.4' into 'V0.4-2018/12/01' \\
+% - 'FP' into 'F' , 'fp' into 'f' (entry HCP/hcp) \\
+% - 'Figuren-Punkte' into 'Figurenpunkte' , 'figuren-punkte' into 'figurenpunkte' \\
+% - 'FL' into 'L' , 'f{}l' into 'l' \\
+% - \cmd{\NewDictTranslation\\ \{HLP-(ODw)\}\{FL\}} (german)
+% }
+% \changes{v1.3b}{2019/03/16}{\\
+% - Added setdefaults to the list of User Commands \\
+% - Corrected \cmd{\setdefaults} in onedown-examples: \\
+% - changed [~] into \{\} \\
+% - Adapted/corrected onedown-ref and onedown-examples \\
+% - Added color 'gray' for special effects
+% }
+% \changes{v1.4}{2019/10/12}{\\
+% - Made \emph{onedown-ref} independent of \emph{onedown-examples} and \emph{subfiles} \\
+% - Corrected some mistakes ODw-*.trsl files, all \texttt{V0.51-2019/10/15} \\
+% - Added macro \cmd{\Ten} to get rid of the extra enlargment by 'scalefnt' in \cmd{\gamefont}
+% - Added support for the spanish language \\
+% - Made onedown-ref.tex and onedown-examples.tex multilangual. We can output the onedown
+% commands in all supported languages. \\
+% - \cmd{\DeclareSymbolFont \\ \{symbols\}\{OMS\} \{txsy\}\{m\}\{n\}} interferes with package \packname{newtxmath}.
+% I renamed \emph{symbols} into \textbf{ODw@symbols} and \emph{symbolsC} into \textbf{ODw@symbolsC}
+% to solve this.
% }
% ^^A Note: ^^21 denotes the exclamation mark (!)
+% ^^A Note: Char ' is not allowed within changes
%
% \DoNotIndex{\newcommand,\newenvironment,\BODY,\boolean,\IfEqCase,\IfInteger,
% \DeclareFontSubstitution,\dimexpr,\ifcat,\ifmmode,\IfValueT,
@@ -442,7 +461,7 @@
% ^^A The frustrating ltxdoc also obfuscates this simple thing!
% \thispagestyle{empty}
% }
-% \author{Jacob Wiersma \\ \url{jack46@online.de}}
+% \author{Jacob Wiersma \\ \url{jack@schuli-wirsi.de}}
% \date{v\ODwstyleversion~from \ODwstyledate}
%
% \maketitle
@@ -670,10 +689,11 @@ pdflatex --shell-escape onedown.dtx
% As said before, the package loads its options using the
% \meta{key}=\meta{val} syntax. These options deal with:
% \begin{itemize}
-% \item[colors] \verb:colors=0|1|2|4A|4B:\\
+% \item[colors] \verb:colors=0|1|2|3|4A|4B:\\
% The color in which the card symbols will
% be printed. The color options are \textbf{0} (black only), \textbf{1}
-% (black and white) \textbf{2} (black and red), \textbf{4A} (green, orange,
+% (black and white) \textbf{2} (black and red), \textbf{3} (grey (for special effects)),
+% \textbf{4A} (green, orange,
% red and blue), \textbf{4B} (black, orange, red and green). We also
% defined some synonyms, as shown in the table below.
% \par
@@ -685,12 +705,16 @@ pdflatex --shell-escape onedown.dtx
% (synonyms: |b+w|)
% \item[x=2:] {\setdefaults{colors=2} \Cl, \Di, \He and \Sp}
% (synonyms: |b+r|)
+% \item[x=3:] {\setdefaults{colors=3} \Cl, \Di, \He and \Sp}
+% (synonyms: |gray|, |grey|)
% \item[x=4A:] {\setdefaults{colors=4A} \Cl, \Di, \He and \Sp}
% (synonyms: |4a|, |fourA|)
% \item[x=4B:] {\setdefaults{colors=4B} \Cl, \Di, \He and \Sp}
% (synonyms: |4b|, |fourB|)
% \end{itemize}
-% The default is |colors=2| for printing in black and red.
+% The default is |colors=2| for printing in black and red. Please note, that |colors=3| is not
+% meant to typeset the whole document. You can use it if you want e.g. to repeat something and want
+% it to be less apparent.
% \item[err, warn] \verb:err=on|off:\qquad\verb:warn=|on|off:\\
% These options regulate which messages are to be output. These
% messages have to do with the consistency of cards in
@@ -712,7 +736,7 @@ pdflatex --shell-escape onedown.dtx
% \subsubsection{Active Characters: a Warning}\label{Languages}
%
% \OneDown uses the \packname{tranlation} package to automatically
-% translate oft appearing brigde terms like e.g.\ \emph{declarer}. It does
+% translate often appearing brigde terms like e.g.\ \emph{declarer}. It does
% so by looking up these terms in the special |ODw|-dictionary for the
% active language. The current \OneDown version supports English, German,
% Dutch, French, most Scadinavian languages and Turkish. Some dictionaries
@@ -875,7 +899,9 @@ pdflatex --shell-escape onedown.dtx
% \DescribeMacro{\eastwest}\MacroDef*+{eastwest}[\hfill \eastwest]
% The next 4 macros typeset the \emph{unit} of the points when valuing a
% bridge hand. If one or more of these items do not appear in your bridge
-% world, don't argue them, Just don't use them!
+% world, don't argue them, Just don't use them! They are meant to specify
+% \emph{High Card Points}, \emph{High Card + Length Points}, \emph{Length Points},
+% \emph{Distribution Points} and \emph{Total Points} respectively.
% \par\vspace{0.5\baselineskip}\noindent
% \DescribeMacro{\HCP}\MacroDef*+{HCP}[\hfill \HCP]
% \par\noindent
@@ -1426,7 +1452,7 @@ pdflatex --shell-escape onedown.dtx
% other & otherfont \\\hline
% \\
% key & value \\\hline
-% colors & 0|1|\underline{2}|4A|4B \\
+% colors & 0|1|\underline{2}|3|4A|4B \\
% warn & \underline{off}|on \\
% err & off|\underline{on} \\
% \hline
@@ -1661,6 +1687,7 @@ pdflatex --shell-escape onedown.dtx
% \subsection{ToDo}
%
% \begin{itemize}[itemsep=-2mm]
+% \item Add the High Points to card diagrams (like Turnier in KA)
% \item Check if |\def\xspace{}| is also needed in bidding...?
% \item Make a template for showing 16 hands on 1 DIN A4 (3x5+1 or 4x4
% landscape) e.g as handout for the hands on slides.
@@ -2131,32 +2158,34 @@ pdflatex --shell-escape onedown.dtx
%
% Code stolen from txfonts.sty.
% It works smoothly: thank you guys!
+% Because of an interference with package newtxmath I had to rename
+% symbols into ODw@symbols and symbolsC into ODw@symbolsC
%
-\DeclareSymbolFont{symbols}{OMS}{txsy}{m}{n}
-\SetSymbolFont{symbols}{bold}{OMS}{txsy}{bx}{n}
+\DeclareSymbolFont{ODw@symbols}{OMS}{txsy}{m}{n}
+\SetSymbolFont{ODw@symbols}{bold}{OMS}{txsy}{bx}{n}
\DeclareFontSubstitution{OMS}{txsy}{m}{n}
-\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
-\SetSymbolFont{symbolsC}{bold}{U}{txsyc}{bx}{n}
+\DeclareSymbolFont{ODw@symbolsC}{U}{txsyc}{m}{n}
+\SetSymbolFont{ODw@symbolsC}{bold}{U}{txsyc}{bx}{n}
\DeclareFontSubstitution{U}{txsyc}{m}{n}
% \end{macrocode}
% \begin{macro}{\ODw@spadesuit}
% \begin{macrocode}
-\DeclareMathSymbol{\ODw@spadesuit}{\mathord}{symbols}{127}
+\DeclareMathSymbol{\ODw@spadesuit}{\mathord}{ODw@symbols}{127}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\ODw@varheart}
% \begin{macrocode}
-\DeclareMathSymbol{\ODw@varheart}{\mathord}{symbolsC}{114}
+\DeclareMathSymbol{\ODw@varheart}{\mathord}{ODw@symbolsC}{114}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\ODw@vardiamond}
% \begin{macrocode}
-\DeclareMathSymbol{\ODw@vardiamond}{\mathord}{symbolsC}{113}
+\DeclareMathSymbol{\ODw@vardiamond}{\mathord}{ODw@symbolsC}{113}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\ODw@clubsuit}
% \begin{macrocode}
-\DeclareMathSymbol{\ODw@clubsuit}{\mathord}{symbols}{124}
+\DeclareMathSymbol{\ODw@clubsuit}{\mathord}{ODw@symbols}{124}
% \end{macrocode}
% \end{macro}
%
@@ -2172,6 +2201,8 @@ pdflatex --shell-escape onedown.dtx
% |colors=0| means mono-color (black only), synonyms of key 0 are |mono|
% and |black|. |colors=1| means black and white, a synonym is |b+w|.
% |colors=2| means bi-color (black and red), with synonym |b+r|.
+% |colors=3| means grey, with synonyms |gray| and |grey|. This 'color' is meant for special
+% effects, e.g. for making unimportant parts less visible
% |colors=4A| gives qua-color (green, orange, red and blue); synonyms are
% |fourA| and |4a|. Finally |colors=4B| defines the second qua-color (black,
% orange, red and green) with synonyms |fourB| and |4b|.
@@ -2236,6 +2267,22 @@ pdflatex --shell-escape onedown.dtx
\ODw@set{colors/b+r/.code={\pgfkeys{/ODw/colors=2}}}
%
\ODw@set{%
+ colors/3/.code={%
+ \ODw@monochromefalse%
+ \renewrobustcmd\Cl{\textcolor{gray}%
+ {\,[0.3]\ensuremath{\ODw@clubsuit}}\xspace}%
+ \renewrobustcmd\Di{\textcolor{gray}%
+ {\,[0.3]\ensuremath{\ODw@vardiamond}}\xspace}%
+ \renewrobustcmd\He{\textcolor{gray}%
+ {\,[0.3]\ensuremath{\ODw@varheart}}\xspace}%
+ \renewrobustcmd\Sp{\textcolor{gray}%
+ {\,[0.3]\ensuremath{\ODw@spadesuit}}\xspace}%
+ }%
+}
+\ODw@set{colors/grey/.code={\pgfkeys{/ODw/colors=3}}}
+\ODw@set{colors/gray/.code={\pgfkeys{/ODw/colors=3}}}
+%
+\ODw@set{%
colors/4A/.code={%
\ODw@monochromefalse%
\renewrobustcmd\Cl{\textcolor{green}%
@@ -5343,6 +5390,19 @@ pdflatex --shell-escape onedown.dtx
% \end{macro}
% \end{macro}
%
+% \begin{macro}{\Ten}
+% \begin{macrocode}
+\newcommand{\Ten}{%
+ \bgroup%
+%JW \ODw@GameFont%
+ 10%
+ \egroup%
+ \xspace%
+}% Ten
+% \end{macrocode}
+% \end{macro}
+
+%
% \subsubsection{Vulnerability}
%
% These macros retrieve the translations of the 4 alternative forms of the
diff --git a/macros/latex/contrib/onedown/onedown.pdf b/macros/latex/contrib/onedown/onedown.pdf
index 5824bb113c..c503a27925 100644
--- a/macros/latex/contrib/onedown/onedown.pdf
+++ b/macros/latex/contrib/onedown/onedown.pdf
Binary files differ
diff --git a/macros/latex/contrib/xkcdcolors/README.md b/macros/latex/contrib/xkcdcolors/README.md
index 2cd3f17100..f96d17a782 100644
--- a/macros/latex/contrib/xkcdcolors/README.md
+++ b/macros/latex/contrib/xkcdcolors/README.md
@@ -7,3 +7,6 @@ Afterward, he processed the data and sorted the names for each color by populari
He obtained a nice list of around 950 color names. It's not at all surprising that a lot of people forged `CloudyBlue`, but some color is really surprising, like for example `BabyPoopGreen` or `DullPink`...
+### LICENSE
+
+This package use Randall Munroe's file [rgb.txt](https://xkcd.com/color/rgb.txt) which is distributed under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). You can use that license or [LPPL 1.3c](https://www.latex-project.org/lppl/lppl-1-3c/)
diff --git a/macros/latex/contrib/xkcdcolors/lppl-1-3c_license.txt b/macros/latex/contrib/xkcdcolors/lppl-1-3c_license.txt
new file mode 100644
index 0000000000..2244313901
--- /dev/null
+++ b/macros/latex/contrib/xkcdcolors/lppl-1-3c_license.txt
@@ -0,0 +1,416 @@
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.3c 2008-05-04
+
+Copyright 1999 2002-2008 LaTeX3 Project
+ Everyone is allowed to distribute verbatim copies of this
+ license document, but modification of it is not allowed.
+
+
+PREAMBLE
+========
+
+The LaTeX Project Public License (LPPL) is the primary license under
+which the LaTeX kernel and the base LaTeX packages are distributed.
+
+You may use this license for any work of which you hold the copyright
+and which you wish to distribute. This license may be particularly
+suitable if your work is TeX-related (such as a LaTeX package), but
+it is written in such a way that you can use it even if your work is
+unrelated to TeX.
+
+The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE',
+below, gives instructions, examples, and recommendations for authors
+who are considering distributing their works under this license.
+
+This license gives conditions under which a work may be distributed
+and modified, as well as conditions under which modified versions of
+that work may be distributed.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of your work
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+that work. If you do not see how to achieve your goal while
+meeting these conditions, then read the document `cfgguide.tex'
+and `modguide.tex' in the base LaTeX distribution for suggestions.
+
+
+DEFINITIONS
+===========
+
+In this license document the following terms are used:
+
+ `Work'
+ Any work being distributed under this License.
+
+ `Derived Work'
+ Any work that under any applicable law is derived from the Work.
+
+ `Modification'
+ Any procedure that produces a Derived Work under any applicable
+ law -- for example, the production of a file containing an
+ original file associated with the Work or a significant portion of
+ such a file, either verbatim or with modifications and/or
+ translated into another language.
+
+ `Modify'
+ To apply any procedure that produces a Derived Work under any
+ applicable law.
+
+ `Distribution'
+ Making copies of the Work available from one person to another, in
+ whole or in part. Distribution includes (but is not limited to)
+ making any electronic components of the Work accessible by
+ file transfer protocols such as FTP or HTTP or by shared file
+ systems such as Sun's Network File System (NFS).
+
+ `Compiled Work'
+ A version of the Work that has been processed into a form where it
+ is directly usable on a computer system. This processing may
+ include using installation facilities provided by the Work,
+ transformations of the Work, copying of components of the Work, or
+ other activities. Note that modification of any installation
+ facilities provided by the Work constitutes modification of the Work.
+
+ `Current Maintainer'
+ A person or persons nominated as such within the Work. If there is
+ no such explicit nomination then it is the `Copyright Holder' under
+ any applicable law.
+
+ `Base Interpreter'
+ A program or process that is normally needed for running or
+ interpreting a part or the whole of the Work.
+
+ A Base Interpreter may depend on external components but these
+ are not considered part of the Base Interpreter provided that each
+ external component clearly identifies itself whenever it is used
+ interactively. Unless explicitly specified when applying the
+ license to the Work, the only applicable Base Interpreter is a
+ `LaTeX-Format' or in the case of files belonging to the
+ `LaTeX-format' a program implementing the `TeX language'.
+
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+1. Activities other than distribution and/or modification of the Work
+are not covered by this license; they are outside its scope. In
+particular, the act of running the Work is not restricted and no
+requirements are made concerning any offers of support for the Work.
+
+2. You may distribute a complete, unmodified copy of the Work as you
+received it. Distribution of only part of the Work is considered
+modification of the Work, and no right to distribute such a Derived
+Work may be assumed under the terms of this clause.
+
+3. You may distribute a Compiled Work that has been generated from a
+complete, unmodified copy of the Work as distributed under Clause 2
+above, as long as that Compiled Work is distributed in such a way that
+the recipients may install the Compiled Work on their system exactly
+as it would have been installed if they generated a Compiled Work
+directly from the Work.
+
+4. If you are the Current Maintainer of the Work, you may, without
+restriction, modify the Work, thus creating a Derived Work. You may
+also distribute the Derived Work without restriction, including
+Compiled Works generated from the Derived Work. Derived Works
+distributed in this manner by the Current Maintainer are considered to
+be updated versions of the Work.
+
+5. If you are not the Current Maintainer of the Work, you may modify
+your copy of the Work, thus creating a Derived Work based on the Work,
+and compile this Derived Work, thus creating a Compiled Work based on
+the Derived Work.
+
+6. If you are not the Current Maintainer of the Work, you may
+distribute a Derived Work provided the following conditions are met
+for every component of the Work unless that component clearly states
+in the copyright notice that it is exempt from that condition. Only
+the Current Maintainer is allowed to add such statements of exemption
+to a component of the Work.
+
+ a. If a component of this Derived Work can be a direct replacement
+ for a component of the Work when that component is used with the
+ Base Interpreter, then, wherever this component of the Work
+ identifies itself to the user when used interactively with that
+ Base Interpreter, the replacement component of this Derived Work
+ clearly and unambiguously identifies itself as a modified version
+ of this component to the user when used interactively with that
+ Base Interpreter.
+
+ b. Every component of the Derived Work contains prominent notices
+ detailing the nature of the changes to that component, or a
+ prominent reference to another file that is distributed as part
+ of the Derived Work and that contains a complete and accurate log
+ of the changes.
+
+ c. No information in the Derived Work implies that any persons,
+ including (but not limited to) the authors of the original version
+ of the Work, provide any support, including (but not limited to)
+ the reporting and handling of errors, to recipients of the
+ Derived Work unless those persons have stated explicitly that
+ they do provide such support for the Derived Work.
+
+ d. You distribute at least one of the following with the Derived Work:
+
+ 1. A complete, unmodified copy of the Work;
+ if your distribution of a modified component is made by
+ offering access to copy the modified component from a
+ designated place, then offering equivalent access to copy
+ the Work from the same or some similar place meets this
+ condition, even though third parties are not compelled to
+ copy the Work along with the modified component;
+
+ 2. Information that is sufficient to obtain a complete,
+ unmodified copy of the Work.
+
+7. If you are not the Current Maintainer of the Work, you may
+distribute a Compiled Work generated from a Derived Work, as long as
+the Derived Work is distributed to all recipients of the Compiled
+Work, and as long as the conditions of Clause 6, above, are met with
+regard to the Derived Work.
+
+8. The conditions above are not intended to prohibit, and hence do not
+apply to, the modification, by any method, of any component so that it
+becomes identical to an updated version of that component of the Work as
+it is distributed by the Current Maintainer under Clause 4, above.
+
+9. Distribution of the Work or any Derived Work in an alternative
+format, where the Work or that Derived Work (in whole or in part) is
+then produced by applying some process to that format, does not relax or
+nullify any sections of this license as they pertain to the results of
+applying that process.
+
+10. a. A Derived Work may be distributed under a different license
+ provided that license itself honors the conditions listed in
+ Clause 6 above, in regard to the Work, though it does not have
+ to honor the rest of the conditions in this license.
+
+ b. If a Derived Work is distributed under a different license, that
+ Derived Work must provide sufficient documentation as part of
+ itself to allow each recipient of that Derived Work to honor the
+ restrictions in Clause 6 above, concerning changes from the Work.
+
+11. This license places no restrictions on works that are unrelated to
+the Work, nor does this license place any restrictions on aggregating
+such works with the Work by any means.
+
+12. Nothing in this license is intended to, or may be used to, prevent
+complete compliance by all parties with all applicable laws.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for the Work. Except when otherwise stated in
+writing, the Copyright Holder provides the Work `as is', without
+warranty of any kind, either expressed or implied, including, but not
+limited to, the implied warranties of merchantability and fitness for a
+particular purpose. The entire risk as to the quality and performance
+of the Work is with you. Should the Work prove defective, you assume
+the cost of all necessary servicing, repair, or correction.
+
+In no event unless required by applicable law or agreed to in writing
+will The Copyright Holder, or any author named in the components of the
+Work, or any other party who may distribute and/or modify the Work as
+permitted above, be liable to you for damages, including any general,
+special, incidental or consequential damages arising out of any use of
+the Work or out of inability to use the Work (including, but not limited
+to, loss of data, data being rendered inaccurate, or losses sustained by
+anyone as a result of any failure of the Work to operate with any other
+programs), even if the Copyright Holder or said author or said other
+party has been advised of the possibility of such damages.
+
+
+MAINTENANCE OF THE WORK
+=======================
+
+The Work has the status `author-maintained' if the Copyright Holder
+explicitly and prominently states near the primary copyright notice in
+the Work that the Work can only be maintained by the Copyright Holder
+or simply that it is `author-maintained'.
+
+The Work has the status `maintained' if there is a Current Maintainer
+who has indicated in the Work that they are willing to receive error
+reports for the Work (for example, by supplying a valid e-mail
+address). It is not required for the Current Maintainer to acknowledge
+or act upon these error reports.
+
+The Work changes from status `maintained' to `unmaintained' if there
+is no Current Maintainer, or the person stated to be Current
+Maintainer of the work cannot be reached through the indicated means
+of communication for a period of six months, and there are no other
+significant signs of active maintenance.
+
+You can become the Current Maintainer of the Work by agreement with
+any existing Current Maintainer to take over this role.
+
+If the Work is unmaintained, you can become the Current Maintainer of
+the Work through the following steps:
+
+ 1. Make a reasonable attempt to trace the Current Maintainer (and
+ the Copyright Holder, if the two differ) through the means of
+ an Internet or similar search.
+
+ 2. If this search is successful, then enquire whether the Work
+ is still maintained.
+
+ a. If it is being maintained, then ask the Current Maintainer
+ to update their communication data within one month.
+
+ b. If the search is unsuccessful or no action to resume active
+ maintenance is taken by the Current Maintainer, then announce
+ within the pertinent community your intention to take over
+ maintenance. (If the Work is a LaTeX work, this could be
+ done, for example, by posting to comp.text.tex.)
+
+ 3a. If the Current Maintainer is reachable and agrees to pass
+ maintenance of the Work to you, then this takes effect
+ immediately upon announcement.
+
+ b. If the Current Maintainer is not reachable and the Copyright
+ Holder agrees that maintenance of the Work be passed to you,
+ then this takes effect immediately upon announcement.
+
+ 4. If you make an `intention announcement' as described in 2b. above
+ and after three months your intention is challenged neither by
+ the Current Maintainer nor by the Copyright Holder nor by other
+ people, then you may arrange for the Work to be changed so as
+ to name you as the (new) Current Maintainer.
+
+ 5. If the previously unreachable Current Maintainer becomes
+ reachable once more within three months of a change completed
+ under the terms of 3b) or 4), then that Current Maintainer must
+ become or remain the Current Maintainer upon request provided
+ they then update their communication data within one month.
+
+A change in the Current Maintainer does not, of itself, alter the fact
+that the Work is distributed under the LPPL license.
+
+If you become the Current Maintainer of the Work, you should
+immediately provide, within the Work, a prominent and unambiguous
+statement of your status as Current Maintainer. You should also
+announce your new status to the same pertinent community as
+in 2b) above.
+
+
+WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE
+======================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+works under this license. These authors are addressed as `you' in
+this section.
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your work you want or need to use *distribution*
+conditions that differ significantly from those in this license, then
+do not refer to this license anywhere in your work but, instead,
+distribute your work under a different license. You may use the text
+of this license as a model for your own license, but your license
+should not refer to the LPPL or otherwise give the impression that
+your work is distributed under the LPPL.
+
+The document `modguide.tex' in the base LaTeX distribution explains
+the motivation behind the conditions of this license. It explains,
+for example, why distributing LaTeX under the GNU General Public
+License (GPL) was considered inappropriate. Even if your work is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their works under any
+license are encouraged to read it.
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a component of the Work, even for your own
+personal use, without also meeting the above conditions for
+distributing the modified component. While you might intend that such
+modifications will never be distributed, often this will happen by
+accident -- you may forget that you have modified that component; or
+it may not occur to you when allowing others to access the modified
+version that you are thus distributing it and violating the conditions
+of this license in ways that could have legal implications and, worse,
+cause problems for the community. It is therefore usually in your
+best interest to keep your copy of the Work identical with the public
+one. Many works provide ways to control the behavior of that work
+without altering any of its licensed components.
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the components of your work both
+an explicit copyright notice including your name and the year the work
+was authored and/or last substantially modified. Include also a
+statement that the distribution and/or modification of that
+component is constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+ %% pig.dtx
+ %% Copyright 2005 M. Y. Name
+ %
+ % This work may be distributed and/or modified under the
+ % conditions of the LaTeX Project Public License, either version 1.3
+ % of this license or (at your option) any later version.
+ % The latest version of this license is in
+ % http://www.latex-project.org/lppl.txt
+ % and version 1.3 or later is part of all distributions of LaTeX
+ % version 2005/12/01 or later.
+ %
+ % This work has the LPPL maintenance status `maintained'.
+ %
+ % The Current Maintainer of this work is M. Y. Name.
+ %
+ % This work consists of the files pig.dtx and pig.ins
+ % and the derived file pig.sty.
+
+Given such a notice and statement in a file, the conditions
+given in this license document would apply, with the `Work' referring
+to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being
+generated from `pig.dtx' using `pig.ins'), the `Base Interpreter'
+referring to any `LaTeX-Format', and both `Copyright Holder' and
+`Current Maintainer' referring to the person `M. Y. Name'.
+
+If you do not want the Maintenance section of LPPL to apply to your
+Work, change `maintained' above into `author-maintained'.
+However, we recommend that you use `maintained', as the Maintenance
+section was added in order to ensure that your Work remains useful to
+the community even when you can no longer maintain and support it
+yourself.
+
+Derived Works That Are Not Replacements
+---------------------------------------
+
+Several clauses of the LPPL specify means to provide reliability and
+stability for the user community. They therefore concern themselves
+with the case that a Derived Work is intended to be used as a
+(compatible or incompatible) replacement of the original Work. If
+this is not the case (e.g., if a few lines of code are reused for a
+completely different task), then clauses 6b and 6d shall not apply.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes the Work
+
+ The LPPL requires that distributions of the Work contain all the
+ files of the Work. It is therefore important that you provide a
+ way for the licensee to determine which files constitute the Work.
+ This could, for example, be achieved by explicitly listing all the
+ files of the Work near the copyright notice of each file or by
+ using a line such as:
+
+ % This work consists of all files listed in manifest.txt.
+
+ in that place. In the absence of an unequivocal list it might be
+ impossible for the licensee to determine what is considered by you
+ to comprise the Work and, in such a case, the licensee would be
+ entitled to make reasonable conjectures as to which files comprise
+ the Work.
+
diff --git a/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.pdf b/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.pdf
index f1574d99f7..59fc42c734 100644
--- a/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.pdf
+++ b/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.pdf
Binary files differ
diff --git a/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.tex b/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.tex
index f0f3d57fa8..884790b5cf 100644
--- a/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.tex
+++ b/macros/latex/contrib/xkcdcolors/xkcdcolors-manual.tex
@@ -1,4 +1,14 @@
\documentclass[12pt]{article}
+%
+% Manual for the package `xkcdcolors`
+% Copyright (c) Romano Giannetti 2019
+% License: LPPL 1.3c (https://ctan.org/license/lppl1.3c)
+%
+% The colors are created using
+% Randall Munroe's .txt file: https://xkcd.com/color/rgb.txt
+% That file explicitly state a CC0 1.0 , see
+% https://creativecommons.org/publicdomain/zero/1.0/
+%
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{doc}
@@ -11,7 +21,7 @@
\def\ancho{3.5cm}
\coordinate (top) at (\ancho,1);
\draw[thick, draw=black, fill=#1] (0,0) rectangle (top);
- \node[align=center, anchor=north west, text width=\ancho] at (0,0) {\strut\hspace{0pt} #1};
+ \node[align=center, anchor=north west, text width=\ancho] at (0,0) {\strut\hspace{0pt}\relax #1};
\end{tikzpicture}
}
\title{\texttt{xkcdcolors} package}
@@ -36,7 +46,7 @@ To use the package, just load the package with:
\noindent and enjoy all your new colors --- with a prepended \texttt{xkcd} to avoid clash with standard colors. For example:
\begin{verbatim}
- \textcolor{xkcdPinyPurple}{this is Pinky Purple}
+ \textcolor{xkcdPinkyPurple}{this is Pinky Purple}
\end{verbatim}
\noindent will render as \textcolor{xkcdPinkyPurple}{this is Pinky Purple}.
diff --git a/macros/latex/contrib/xkcdcolors/xkcdcolors.sty b/macros/latex/contrib/xkcdcolors/xkcdcolors.sty
index 7cac7e4037..b10470c431 100644
--- a/macros/latex/contrib/xkcdcolors/xkcdcolors.sty
+++ b/macros/latex/contrib/xkcdcolors/xkcdcolors.sty
@@ -1,15 +1,23 @@
+% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1996/06/01]
-\ProvidesPackage{xkcdcolors}[2019/10/20 v1.0 Provide names for xkcd colors]
+\ProvidesPackage{xkcdcolors}[2019/10/21 v1.0.1 Provide names for xkcd colors]
\RequirePackage{xcolor}
+% \end{macrocode}
%
-% Created by Romano Giannetti <romano.giannetti@gmail.com>. Same license of
-% the original txt file: http://creativecommons.org/publicdomain/zero/1.0/
-% you can also distribute it under LPPL (LaTeX) license
+% Created by Romano Giannetti <romano.giannetti@gmail.com>.
+% Using Randall Munroe's .txt file: https://xkcd.com/color/rgb.txt
+% That file explicitly state a CC0 1.0 , see
+% https://creativecommons.org/publicdomain/zero/1.0/
+%
+% This file is distributable under the same CC0 1.0 license, OR
+% Copyright (c) Romano Giannetti 2019
+% License: LPPL 1.3c (https://ctan.org/license/lppl1.3c)
%
% Original color set by Randall Munroe
% See http://xkcd.com/color/rgb/
%
-
+% \begin{macrocode}
+%
\definecolorset{HTML}{xkcd}{}{%
CloudyBlue,ACC2D9;%
DarkPastelGreen,56AE57;%
@@ -961,4 +969,4 @@
Green,15B01A;%
Purple,7E1E9C}
\endinput
-
+% \end{macrocode}