summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/xstring
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-30 23:19:37 +0000
committerKarl Berry <karl@freefriends.org>2008-09-30 23:19:37 +0000
commita8313d1d7bc7774a95f17646587669488918504e (patch)
tree4ed34828105f4309e85040fa98e43ef4bc1ecaf1 /Master/texmf-dist/doc/generic/xstring
parentdce187f15bc2f38254310954436811a3927ea72d (diff)
xstring update (30sep08)
git-svn-id: svn://tug.org/texlive/trunk@10806 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/xstring')
-rw-r--r--Master/texmf-dist/doc/generic/xstring/test_etex.pdfbin0 -> 29628 bytes
-rw-r--r--Master/texmf-dist/doc/generic/xstring/test_etex.tex591
-rw-r--r--Master/texmf-dist/doc/generic/xstring/test_latex.pdfbin0 -> 52742 bytes
-rw-r--r--Master/texmf-dist/doc/generic/xstring/test_latex.tex674
-rw-r--r--Master/texmf-dist/doc/generic/xstring/xstring_doc_en.pdfbin0 -> 194565 bytes
-rw-r--r--Master/texmf-dist/doc/generic/xstring/xstring_doc_en.tex1394
-rw-r--r--Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.pdfbin0 -> 205716 bytes
-rw-r--r--Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.tex1385
8 files changed, 4044 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/xstring/test_etex.pdf b/Master/texmf-dist/doc/generic/xstring/test_etex.pdf
new file mode 100644
index 00000000000..979cc8e9974
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/test_etex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/xstring/test_etex.tex b/Master/texmf-dist/doc/generic/xstring/test_etex.tex
new file mode 100644
index 00000000000..a629c1a9958
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/test_etex.tex
@@ -0,0 +1,591 @@
+%%%%%%%% ATTENTION %%%%%%%%
+% Ceci n'est pas un fichier LaTeX, c'est un fichier TeX.
+% Il doit être compilé avec eteX en tapant <etex test_etex>
+%%%%%%%% WARNING %%%%%%%%
+% This is not a LaTeX file, it is a TeX file.
+% It must be compiled with eTeX typing <etex test_etex>
+\input xstring
+\def\delimiteur{-{}}
+\font\hugerm=cmr10 scaled 1750
+\font\largeboldrm=cmbx10 scaled 1300
+\font\largett=cmtt10 scaled 1300
+\catcode`\@=11\relax
+\gdef\exemple{\@ifstar{\def\frontiere{\delimiteur}\@xs@MakeVerb}{\def\frontiere{}\@xs@MakeVerb}}
+\gdef\@xs@afterreadverb#1{%
+ \normalexpandarg
+ \tokenize\cs@resultat{#1}%
+ \fullexpandarg
+ \hbox to 16.5cm{\hbox to 11.5cm{\hfil\tt#1}\hskip1em\frontiere\cs@resultat\frontiere\hfil}\par}
+\catcode`\@=12\relax
+\def\chapitre#1#2{\vskip 6pt plus 2pt minus 2pt{{\largeboldrm#1} {\largett#2}}\vskip 3pt plus 1pt minus 1pt}
+\def\AvecArgOptionnel{\vskip 6pt plus 2pt minus 2pt M\^emes exemples avec l'argument optionnel :\par}
+\parindent0pt
+% debut du texte
+\hfil{\hugerm Ceci est le fichier de test de xstring}\hfil{}\vskip2em
+
+Ce fichier {\tt test\_etex.tex} produit une sortie quasiment identique au fichier {\tt test\_latex.tex}, mais il doit se lancer avec Plain $\varepsilon$-\TeX. Pour des raison d'encodage, contrairement au fichier {\tt test\_latex.tex}, les arguments des macros pr\'esent\'ees ici ne contiennent pas de lettres accentu\'ees.\vskip2em
+
+Toutes les situations ne sont pas envisag\'ees, mais au moins un grand nombre ! Les macros sont examin\'ees dans l'ordre logique du code.
+
+Lorsque le r\'esultat contient des espaces ou peut conduire \`a des doutes, il sera entour\'e de ''\delimiteur``, \'etant entendu que ''\delimiteur\delimiteur`` est une cha\^\i ne vide.\vskip2em
+
+\chapitre{Le test}{IfSubStr}
+
+\exemple|\IfSubStr{abcdef}{cd}{vrai}{faux}|
+\exemple|\IfSubStr{a b c d }{b c}{vrai}{faux}|
+\exemple|\IfSubStr{a b c d }{bc}{vrai}{faux}|
+\exemple|\IfSubStr{abcdef}{}{vrai}{faux}|
+\exemple|\IfSubStr{a}{a}{vrai}{faux}|
+\exemple|\IfSubStr{aaaa}{aa}{vrai}{faux}|
+\exemple|\IfSubStr{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStr{a}{}{vrai}{faux}|
+\exemple|\IfSubStr{}{a}{vrai}{faux}|
+\exemple|\IfSubStr{}{}{vrai}{faux}|
+\exemple|\IfSubStr[2]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[3]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[4]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[-2]{abaca}{a}{vrai}{faux}|
+
+\chapitre{Le test}{IfBeginWith}
+
+\exemple|\IfBeginWith{abcdef}{adc}{vrai}{faux}|
+\exemple|\IfBeginWith{abcdef}{abcd}{vrai}{faux}|
+\exemple|\IfBeginWith{ a b c }{ a}{vrai}{faux}|
+\exemple|\IfBeginWith{a b c d}{ab}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{a}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{aa}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{}{vrai}{faux}|
+\exemple|\IfBeginWith{}{a}{vrai}{faux}|
+\exemple|\IfBeginWith{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfEndWith}
+
+\exemple|\IfEndWith{abcdef}{ab}{vrai}{faux}|
+\exemple|\IfEndWith{abcdef}{f}{vrai}{faux}|
+\exemple|\IfEndWith{ a b c }{c}{vrai}{faux}|
+\exemple|\IfEndWith{ a b c }{ }{vrai}{faux}|
+\exemple|\IfEndWith{a}{a}{vrai}{faux}|
+\exemple|\IfEndWith{a}{aa}{vrai}{faux}|
+\exemple|\IfEndWith{a}{}{vrai}{faux}|
+\exemple|\IfEndWith{}{a}{vrai}{faux}|
+\exemple|\IfEndWith{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfSubStrBefore}
+
+\exemple|\IfSubStrBefore{abcdef}{b}{e}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{e}{c}{vrai}{faux}|
+\exemple|\IfSubStrBefore{ a b c }{ }{b}{vrai}{faux}|
+\exemple|\IfSubStrBefore{ a b c }{ b}{c }{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{z}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{y}{z}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{a}{z}{vrai}{faux}|
+\exemple|\IfSubStrBefore{aaa}{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{a}{b}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a}{}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{}{}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,1]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,2]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,3]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,4]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,2]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBefore[4,2]{maman papa}{a}{p}{vrai}{faux}|
+
+\chapitre{Le test}{IfStrBehind}
+
+\exemple|\IfSubStrBehind{abcdef}{b}{e}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{e}{c}{vrai}{faux}|
+\exemple|\IfSubStrBehind{ a b c }{ }{b}{vrai}{faux}|
+\exemple|\IfSubStrBehind{ a b c }{ c}{ a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{z}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{y}{z}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{a}{z}{vrai}{faux}|
+\exemple|\IfSubStrBehind{aaa}{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{a}{b}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a}{}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{}{}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,1]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,2]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,3]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[2,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[3,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[3,2]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[4,2]{maman papa}{a}{p}{vrai}{faux}|
+
+\chapitre{Le test}{IfInteger}
+
+\exemple|\IfInteger{156}{vrai}{faux}|
+\exemple|\IfInteger{1.6}{vrai}{faux}|
+\exemple|\IfInteger{7a5}{vrai}{faux}|
+\exemple|\IfInteger{+9}{vrai}{faux}|
+\exemple|\IfInteger{-15}{vrai}{faux}|
+\exemple|\IfInteger{0}{vrai}{faux}|
+\exemple|\IfInteger{-1,2}{vrai}{faux}|
+\exemple|\IfInteger{1.}{vrai}{faux}|
+\exemple|\IfInteger{-00}{vrai}{faux}|
+\exemple|\IfInteger{+}{vrai}{faux}|
+\exemple|\IfInteger{-}{vrai}{faux}|
+\exemple|\IfInteger{.}{vrai}{faux}|
+\exemple|\IfInteger{}{vrai}{faux}|
+
+\chapitre{Le test}{IfDecimal}
+
+\exemple|\IfDecimal{6}{vrai}{faux}|
+\exemple|\IfDecimal{-78}{vrai}{faux}|
+\exemple|\IfDecimal{3.14}{vrai}{faux}|
+\exemple|\IfDecimal{3,14}{vrai}{faux}|
+\exemple|\IfDecimal{1..5}{vrai}{faux}|
+\exemple|\IfDecimal{-9.8}{vrai}{faux}|
+\exemple|\IfDecimal{+9.8}{vrai}{faux}|
+\exemple|\IfDecimal{-9,8}{vrai}{faux}|
+\exemple|\IfDecimal{+9,8}{vrai}{faux}|
+\exemple|\IfDecimal{+6.7.}{vrai}{faux}|
+\exemple|\IfDecimal{.5}{vrai}{faux}|
+\exemple|\IfDecimal{1.}{vrai}{faux}|
+\exemple|\IfDecimal{-.99}{vrai}{faux}|
+\exemple|\IfDecimal{-5.}{vrai}{faux}|
+\exemple|\IfDecimal{5a9.}{vrai}{faux}|
+\exemple|\IfDecimal{+}{vrai}{faux}|
+\exemple|\IfDecimal{-}{vrai}{faux}|
+\exemple|\IfDecimal{.}{vrai}{faux}|
+\exemple|\IfDecimal{}{vrai}{faux}|
+
+\chapitre{Le test}{IfStrEq}
+
+\exemple|\IfStrEq{abcdef}{abcdef}{vrai}{faux}|
+\exemple|\IfStrEq{a b c}{a b c}{vrai}{faux}|
+\exemple|\IfStrEq{abcd}{abc}{vrai}{faux}|
+\exemple|\IfStrEq{aab}{ab}{vrai}{faux}|
+\exemple|\IfStrEq{aab}{aa}{vrai}{faux}|
+\exemple|\IfStrEq{1.2}{1.20}{vrai}{faux}|
+\exemple|\IfStrEq{3,4}{3.4}{vrai}{faux}|
+\exemple|\IfStrEq{ }{ }{vrai}{faux}|
+\exemple|\IfStrEq{}{a}{vrai}{faux}|
+\exemple|\IfStrEq{a}{}{vrai}{faux}|
+\exemple|\IfStrEq{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfEq}
+
+\exemple|\IfEq{abcdef}{abcdef}{vrai}{faux}|
+\exemple|\IfEq{a b c}{a b c}{vrai}{faux}|
+\exemple|\IfEq{abcd}{abc}{vrai}{faux}|
+\exemple|\IfEq{aab}{ab}{vrai}{faux}|
+\exemple|\IfEq{aab}{aa}{vrai}{faux}|
+\exemple|\IfEq{1.2}{1.20}{vrai}{faux}|
+\exemple|\IfEq{+1.0000}{1}{vrai}{faux}|
+\exemple|\IfEq{-10}{10}{vrai}{faux}|
+\exemple|\IfEq{1,2}{1.2}{vrai}{faux}|
+\exemple|\IfEq{.5}{0.5}{vrai}{faux}|
+\exemple|\IfEq{,5}{0,5}{vrai}{faux}|
+\exemple|\IfEq{10}{dix}{vrai}{faux}|
+\exemple|\IfEq{123}{1a3}{vrai}{faux}|
+\exemple|\IfEq{0}{}{vrai}{faux}|
+\exemple|\IfEq{++10}{+10}{vrai}{faux}|
+\exemple|\IfEq{--10}{+10}{vrai}{faux}|
+\exemple|\IfEq{a}{}{vrai}{faux}|
+\exemple|\IfEq{}{a}{vrai}{faux}|
+\exemple|\IfEq{}{}{vrai}{faux}|
+
+\chapitre{La macro}{StrBefore}
+
+\exemple|\StrBefore{abcedef}{e}|
+\exemple*|\StrBefore{abcdef}{a}|
+\exemple*|\StrBefore{abcdef}{z}|
+\exemple*|\StrBefore{a b c d}{c}|
+\exemple*|\StrBefore{a b c d}{ }|
+\exemple*|\StrBefore[2]{a b c d}{ }|
+\exemple*|\StrBefore[3]{a b c d}{ }|
+\exemple*|\StrBefore[9]{a b c d}{ }|
+\exemple*|\StrBefore[-7]{a b c d}{ }|
+\exemple*|\StrBefore{abcdef}{Z}|
+\exemple*|\StrBefore[1]{aaaaaa}{aa}|
+\exemple|\StrBefore[2]{aaaaaa}{aa}|
+\exemple|\StrBefore[3]{aaaaaa}{aa}|
+\exemple*|\StrBefore[4]{aaaaaa}{aa}|
+\exemple*|\StrBefore{a}{}|
+\exemple*|\StrBefore{}{a}|
+\exemple*|\StrBefore{}{}|
+
+\AvecArgOptionnel
+\exemple|\StrBefore{abcedef}{e}[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{a}[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{z}[\aa]\aa|
+\exemple*|\StrBefore{a b c d}{c}[\aa]\aa|
+\exemple*|\StrBefore{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[2]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[3]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[9]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[-7]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{Z}[\aa]\aa|
+\exemple*|\StrBefore[1]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBefore[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBefore[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBefore[4]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBefore{a}{}[\aa]\aa|
+\exemple*|\StrBefore{}{a}[\aa]\aa|
+\exemple*|\StrBefore{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrBehind}
+
+\exemple|\StrBehind{abcedef}{e}|
+\exemple*|\StrBehind{abcdef}{a}|
+\exemple*|\StrBehind{abcdef}{z}|
+\exemple*|\StrBehind{a b c d}{c}|
+\exemple*|\StrBehind{a b c d}{ }|
+\exemple*|\StrBehind[2]{a b c d}{ }|
+\exemple*|\StrBehind[3]{a b c d}{ }|
+\exemple*|\StrBehind[9]{a b c d}{ }|
+\exemple*|\StrBehind[-7]{a b c d}{ }|
+\exemple*|\StrBehind{abcdef}{Z}|
+\exemple|\StrBehind[1]{aaaaaa}{aa}|
+\exemple|\StrBehind[2]{aaaaaa}{aa}|
+\exemple*|\StrBehind[3]{aaaaaa}{aa}|
+\exemple*|\StrBehind[4]{aaaaaa}{aa}|
+\exemple*|\StrBehind{a}{}|
+\exemple*|\StrBehind{}{a}|
+\exemple*|\StrBehind{}{}|
+
+\AvecArgOptionnel
+\exemple|\StrBehind{abcedef}{e}[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{a}[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{z}[\aa]\aa|
+\exemple*|\StrBehind{a b c d}{c}[\aa]\aa|
+\exemple*|\StrBehind{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[2]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[3]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[9]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[-7]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{Z}[\aa]\aa|
+\exemple|\StrBehind[1]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBehind[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind[4]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind{a}{}[\aa]\aa|
+\exemple*|\StrBehind{}{a}[\aa]\aa|
+\exemple*|\StrBehind{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrBetween}
+
+\exemple|\StrBetween{abcdef}{b}{e}|
+\exemple*|\StrBetween{aZaaaaZa}{Z}{Z}|
+\exemple*|\StrBetween[1,2]{aZaaaaZa}{Z}{Z}|
+\exemple*|\StrBetween{a b c d}{a}{c}|
+\exemple*|\StrBetween{a b c d}{a }{ d}|
+\exemple*|\StrBetween{abcdef}{a}{Z}|
+\exemple*|\StrBetween{abcdef}{Y}{Z}|
+\exemple*|\StrBetween[2,5]{aAaBaCaDa}{a}{a}|
+\exemple*|\StrBetween[4,1]{ab1ab2ab3ab4ab}{b}{a}|
+\exemple*|\StrBetween[3,4]{a b c d e f}{ }{ }|
+\exemple|\StrBetween[1,3]{aaaaaa}{aa}{aa}|
+\exemple*|\StrBetween{abcdef}{a}{}|
+\exemple*|\StrBetween{abcdef}{}{f}|
+\exemple*|\StrBetween{}{a}{b}|
+
+\AvecArgOptionnel
+\exemple|\StrBetween{abcdef}{b}{e}[\aa]\aa|
+\exemple*|\StrBetween{aZaaaaZa}{Z}{Z}[\aa]\aa|
+\exemple*|\StrBetween[1,2]{aZaaaaZa}{Z}{Z}[\aa]\aa|
+\exemple*|\StrBetween{a b c d}{a}{c}[\aa]\aa|
+\exemple*|\StrBetween{a b c d}{a }{ d}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{a}{Z}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{Y}{Z}[\aa]\aa|
+\exemple*|\StrBetween[2,5]{aAaBaCaDa}{a}{a}[\aa]\aa|
+\exemple*|\StrBetween[4,1]{ab1ab2ab3ab4ab}{b}{a}[\aa]\aa|
+\exemple*|\StrBetween[3,4]{a b c d e f}{ }{ }[\aa]\aa|
+\exemple|\StrBetween[1,3]{aaaaaa}{aa}{aa}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{a}{}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{}{f}[\aa]\aa|
+\exemple*|\StrBetween{}{a}{b}[\aa]\aa|
+
+\chapitre{La macro}{StrSubstitute}
+
+\exemple|\StrSubstitute{abcdef}{c}{ZZ}|
+\exemple|\StrSubstitute{aaaaaaa}{aa}{w}|
+\exemple|\StrSubstitute[0]{abacada}{a}{.}|
+\exemple|\StrSubstitute[1]{abacada}{a}{.}|
+\exemple|\StrSubstitute[2]{abacada}{a}{.}|
+\exemple|\StrSubstitute[3]{abacada}{a}{.}|
+\exemple|\StrSubstitute[4]{abacada}{a}{.}|
+\exemple|\StrSubstitute[5]{abacada}{a}{.}|
+\exemple|\StrSubstitute{a b c d e}{ }{,}|
+\exemple|\StrSubstitute{a b c d e}{ }{}|
+\exemple|\StrSubstitute{abcdef}{}{A}|
+\exemple|\StrSubstitute{abcdef}{}{}|
+\exemple*|\StrSubstitute{}{a}{b}|
+\exemple*|\StrSubstitute{}{}{}|
+
+\AvecArgOptionnel
+\exemple|\StrSubstitute{abcdef}{c}{ZZ}[\aa]\aa|
+\exemple|\StrSubstitute{aaaaaaa}{aa}{w}[\aa]\aa|
+\exemple|\StrSubstitute[0]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[1]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[2]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[3]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[4]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[5]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute{a b c d e}{ }{,}[\aa]\aa|
+\exemple|\StrSubstitute{a b c d e}{ }{}[\aa]\aa|
+\exemple|\StrSubstitute{abcdef}{}{A}[\aa]\aa|
+\exemple|\StrSubstitute{abcdef}{}{}[\aa]\aa|
+\exemple*|\StrSubstitute{}{a}{b}[\aa]\aa|
+\exemple*|\StrSubstitute{}{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrDel}
+
+\exemple|\StrDel{a1a2a3a4}{a}|
+\exemple|\StrDel[2]{a1a2a3a4}{a}|
+\exemple|\StrDel[-2]{a1a2a3a4}{a}|
+\exemple|\StrDel[10]{a1a2a3a4}{a}|
+\exemple|\StrDel[3]{a b c d e}{a}|
+
+\AvecArgOptionnel
+\exemple|\StrDel{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[2]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[-2]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[10]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[3]{a b c d e}{a}[\aa]\aa|
+
+\chapitre{La macro}{StrLen}
+
+
+\exemple|\StrLen{abcdef}|
+\exemple|\StrLen{a b c}|
+\exemple|\StrLen{ a b c }|
+\exemple|\StrLen{a}|
+\exemple|\StrLen{}|
+
+\AvecArgOptionnel
+\exemple|\StrLen{abcdef}[\aa]\aa|
+\exemple|\StrLen{a b c}[\aa]\aa|
+\exemple|\StrLen{ a b c }[\aa]\aa|
+\exemple|\StrLen{a}[\aa]\aa|
+\exemple|\StrLen{}[\aa]\aa|
+
+\chapitre{la macro}{StrMid}
+
+\exemple|\StrMid{abcdef}{2}{5}|
+\exemple*|\StrMid{a b c d}{2}{6}|
+\exemple*|\StrMid{abcdef}{4}{2}|
+\exemple|\StrMid{abcdef}{-4}{3}|
+\exemple*|\StrMid{abcdef}{-4}{-1}|
+\exemple|\StrMid{abcdef}{-4}{20}|
+\exemple*|\StrMid{abcdef}{8}{10}|
+\exemple|\StrMid{abcdef}{2}{2}|
+\exemple|\StrMid{aaaaaa}{3}{6}|
+\exemple*|\StrMid{}{4}{5}|
+
+\AvecArgOptionnel
+\exemple|\StrMid{abcdef}{2}{5}[\aa]\aa|
+\exemple*|\StrMid{a b c d}{2}{6}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{4}{2}[\aa]\aa|
+\exemple|\StrMid{abcdef}{-4}{3}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{-4}{-1}[\aa]\aa|
+\exemple|\StrMid{abcdef}{-4}{20}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{8}{10}[\aa]\aa|
+\exemple|\StrMid{abcdef}{2}{2}[\aa]\aa|
+\exemple|\StrMid{aaaaaa}{3}{6}[\aa]\aa|
+\exemple*|\StrMid{}{4}{5}[\aa]\aa|
+
+\chapitre{La macro}{StrGobbleLeft}
+
+\exemple|\StrGobbleLeft{abcdef}{3}|
+\exemple*|\StrGobbleLeft{a b c d}{3}|
+\exemple|\StrGobbleLeft{abcdef}{-3}|
+\exemple*|\StrGobbleLeft{abcdef}{9}|
+\exemple|\StrGobbleLeft{aaaaa}{4}|
+\exemple*|\StrGobbleLeft{}{2}|
+
+\AvecArgOptionnel
+\exemple|\StrGobbleLeft{abcdef}{3}[\aa]\aa|
+\exemple*|\StrGobbleLeft{a b c d}{3}[\aa]\aa|
+\exemple|\StrGobbleLeft{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrGobbleLeft{abcdef}{9}[\aa]\aa|
+\exemple|\StrGobbleLeft{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrGobbleLeft{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrGobbleRight}
+
+\exemple|\StrGobbleRight{abcdef}{3}|
+\exemple*|\StrGobbleRight{a b c d}{3}|
+\exemple|\StrGobbleRight{abcdef}{-3}|
+\exemple*|\StrGobbleRight{abcdef}{9}|
+\exemple|\StrGobbleRight{aaaaa}{4}|
+\exemple*|\StrGobbleRight{}{2}|
+
+\AvecArgOptionnel
+\exemple|\StrGobbleRight{abcdef}{3}[\aa]\aa|
+\exemple*|\StrGobbleRight{a b c d}{3}[\aa]\aa|
+\exemple|\StrGobbleRight{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrGobbleRight{abcdef}{9}[\aa]\aa|
+\exemple|\StrGobbleRight{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrGobbleRight{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrLeft}
+
+\exemple|\StrLeft{abcdef}{3}|
+\exemple*|\StrLeft{a b c d}{3}|
+\exemple*|\StrLeft{abcdef}{-3}|
+\exemple*|\StrLeft{abcdef}{9}|
+\exemple|\StrLeft{aaaaa}{4}|
+\exemple*|\StrLeft{}{2}|
+
+\AvecArgOptionnel
+\exemple|\StrLeft{abcdef}{3}[\aa]\aa|
+\exemple*|\StrLeft{a b c d}{3}[\aa]\aa|
+\exemple*|\StrLeft{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrLeft{abcdef}{9}[\aa]\aa|
+\exemple|\StrLeft{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrLeft{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrRight}
+
+\exemple|\StrRight{abcdef}{3}|
+\exemple*|\StrRight{a b c d}{3}|
+\exemple*|\StrRight{abcdef}{-3}|
+\exemple*|\StrRight{abcdef}{9}|
+\exemple|\StrRight{aaaaa}{4}|
+\exemple*|\StrRight{}{2}|
+
+\AvecArgOptionnel
+\exemple|\StrRight{abcdef}{3}[\aa]\aa|
+\exemple*|\StrRight{a b c d}{3}[\aa]\aa|
+\exemple*|\StrRight{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrRight{abcdef}{9}[\aa]\aa|
+\exemple|\StrRight{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrRight{}{2}[\aa]\aa|
+
+\chapitre{la macro}{StrChar}
+
+\exemple|\StrChar{abcdef}{5}|
+\exemple*|\StrChar{a b c d}{4}|
+\exemple|\StrChar{a b c d}{7}|
+\exemple*|\StrChar{abcdef}{10}|
+\exemple*|\StrChar{abcdef}{-5}|
+\exemple*|\StrChar{}{3}|
+
+\AvecArgOptionnel
+\exemple|\StrChar{abcdef}{5}[\aa]\aa|
+\exemple*|\StrChar{a b c d}{4}[\aa]\aa|
+\exemple|\StrChar{a b c d}{7}[\aa]\aa|
+\exemple*|\StrChar{abcdef}{10}[\aa]\aa|
+\exemple*|\StrChar{abcdef}{-5}[\aa]\aa|
+\exemple*|\StrChar{}{3}[\aa]\aa|
+
+\chapitre{La macro}{StrCount}
+
+\exemple|\StrCount{abcdef}{d}|
+\exemple|\StrCount{a b c d}{ }|
+\exemple|\StrCount{aaaaaa}{aa}|
+\exemple|\StrCount{abcdef}{Z}|
+\exemple|\StrCount{abcdef}{}|
+\exemple|\StrCount{}{a}|
+\exemple|\StrCount{}{}|
+
+\AvecArgOptionnel
+\exemple|\StrCount{abcdef}{d}[\aa]\aa|
+\exemple|\StrCount{a b c d}{ }[\aa]\aa|
+\exemple|\StrCount{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrCount{abcdef}{Z}[\aa]\aa|
+\exemple|\StrCount{abcdef}{}[\aa]\aa|
+\exemple|\StrCount{}{a}[\aa]\aa|
+\exemple|\StrCount{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrPosition}
+
+\exemple|\StrPosition{abcdef}{c}|
+\exemple|\StrPosition{abcdef}{Z}|
+\exemple|\StrPosition{a b c d}{ }|
+\exemple|\StrPosition[3]{a b c d}{ }|
+\exemple|\StrPosition[8]{a b c d}{ }|
+\exemple|\StrPosition{aaaaaa}{aa}|
+\exemple|\StrPosition[2]{aaaaaa}{aa}|
+\exemple|\StrPosition[3]{aaaaaa}{aa}|
+\exemple|\StrPosition{abcdef}{}|
+\exemple|\StrPosition{}{a}|
+\exemple|\StrPosition{}{}|
+
+\AvecArgOptionnel
+\exemple|\StrPosition{abcdef}{c}[\aa]\aa|
+\exemple|\StrPosition{abcdef}{Z}[\aa]\aa|
+\exemple|\StrPosition{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition[3]{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition[8]{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition{abcdef}{}[\aa]\aa|
+\exemple|\StrPosition{}{a}[\aa]\aa|
+\exemple|\StrPosition{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrCompare}
+
+La tol\'erance normale :\par
+\exemple|\StrCompare{abcdefghij}{abc}|
+\exemple|\StrCompare{A}{A}|
+\exemple|\StrCompare{éçà}{éçà}|
+\exemple|\StrCompare{abcdef}{a bd}|
+\exemple|\StrCompare{ }{ }|
+\exemple|\StrCompare{}{abcd}|
+\exemple|\StrCompare{abcd}{}|
+\exemple|\StrCompare{123456}{1234}|
+\exemple|\StrCompare{a b c d}{a bcd}|
+\exemple|\StrCompare{}{}|
+\exemple|\StrCompare{eee}{eeee}|
+\exemple|\StrCompare{eeee}{eee}|
+\exemple|\StrCompare{totutu}{tututu}|
+\exemple|\StrCompare{abcd}{abyz}|
+
+\AvecArgOptionnel
+\exemple|\StrCompare{abcdefghij}{abc}[\aa]\aa|
+\exemple|\StrCompare{A}{A}[\aa]\aa|
+\exemple|\StrCompare{éçà}{éçà}[\aa]\aa|
+\exemple|\StrCompare{abcdef}{a bd}[\aa]\aa|
+\exemple|\StrCompare{ }{ }[\aa]\aa|
+\exemple|\StrCompare{}{abcd}[\aa]\aa|
+\exemple|\StrCompare{abcd}{}[\aa]\aa|
+\exemple|\StrCompare{123456}{1234}[\aa]\aa|
+\exemple|\StrCompare{a b c d}{a bcd}[\aa]\aa|
+\exemple|\StrCompare{}{}[\aa]\aa|
+\exemple|\StrCompare{eee}{eeee}[\aa]\aa|
+\exemple|\StrCompare{eeee}{eee}[\aa]\aa|
+\exemple|\StrCompare{totutu}{tututu}[\aa]\aa|
+\exemple|\StrCompare{abcd}{abyz}[\aa]\aa|
+
+La tol\'erance stricte :\par\comparestrict
+\exemple|\StrCompare{abcdefghij}{abc}|
+\exemple|\StrCompare{A}{A}|
+\exemple|\StrCompare{éçà}{éçà}|
+\exemple|\StrCompare{abcdef}{a bd}|
+\exemple|\StrCompare{ }{ }|
+\exemple|\StrCompare{}{abcd}|
+\exemple|\StrCompare{abcd}{}|
+\exemple|\StrCompare{123456}{1234}|
+\exemple|\StrCompare{a b c d}{a bcd}|
+\exemple|\StrCompare{}{}|
+\exemple|\StrCompare{eee}{eeee}|
+\exemple|\StrCompare{eeee}{eee}|
+\exemple|\StrCompare{totutu}{tututu}|
+\exemple|\StrCompare{abcd}{abyz}|
+
+\AvecArgOptionnel
+\exemple|\StrCompare{abcdefghij}{abc}[\aa]\aa|
+\exemple|\StrCompare{A}{A}[\aa]\aa|
+\exemple|\StrCompare{éçà}{éçà}[\aa]\aa|
+\exemple|\StrCompare{abcdef}{a bd}[\aa]\aa|
+\exemple|\StrCompare{ }{ }[\aa]\aa|
+\exemple|\StrCompare{}{abcd}[\aa]\aa|
+\exemple|\StrCompare{abcd}{}[\aa]\aa|
+\exemple|\StrCompare{123456}{1234}[\aa]\aa|
+\exemple|\StrCompare{a b c d}{a bcd}[\aa]\aa|
+\exemple|\StrCompare{}{}[\aa]\aa|
+\exemple|\StrCompare{eee}{eeee}[\aa]\aa|
+\exemple|\StrCompare{eeee}{eee}[\aa]\aa|
+\exemple|\StrCompare{totutu}{tututu}[\aa]\aa|
+\exemple|\StrCompare{abcd}{abyz}[\aa]\aa|
+\end \ No newline at end of file
diff --git a/Master/texmf-dist/doc/generic/xstring/test_latex.pdf b/Master/texmf-dist/doc/generic/xstring/test_latex.pdf
new file mode 100644
index 00000000000..e9c4346c407
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/test_latex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/xstring/test_latex.tex b/Master/texmf-dist/doc/generic/xstring/test_latex.tex
new file mode 100644
index 00000000000..72437521de2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/test_latex.tex
@@ -0,0 +1,674 @@
+\documentclass[a4paper,10pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[dvips,margin=1.5cm,noheadfoot]{geometry}
+\pagestyle{empty}
+\usepackage{xstring}
+
+\makeatletter
+
+\newcommand*\exemple{\@ifstar{\def\frontiere{|}\@xs@MakeVerb}{\def\frontiere{}\@xs@MakeVerb}}
+\def\@xs@afterreadverb#1{%
+ \normalexpandarg
+ \tokenize\cs@resultat{#1}%
+ \fullexpandarg
+ \hbox to\linewidth{\hbox to0.7\linewidth{\hfil\tt#1}\quad\frontiere\cs@resultat\frontiere\hfil}\par}
+
+\makeatother
+
+\newcommand\chapitre[2]{\medskip{\large\textbf{#1} \texttt{\textbackslash#2}}\smallskip}
+\def\delimiteur{|}
+
+\begin{document}
+\setlength{\parindent}{0pt}
+
+\begin{center}\Large{Ceci est le fichier de test de xstring}.\end{center}\medskip
+
+Toutes les situations ne sont pas envisagées, mais au moins un grand nombre ! Les macros sont examinées dans l'ordre logique du code.
+
+Lorsque le résultat contient des espaces ou peut conduire à des doutes, il sera entouré de ''\delimiteur``, étant entendu que ''\delimiteur\delimiteur`` est une chaîne vide.\bigskip
+
+\chapitre{Le test}{IfSubStr}
+
+\exemple|\IfSubStr{abcdef}{cd}{vrai}{faux}|
+\exemple|\IfSubStr{a b c d }{b c}{vrai}{faux}|
+\exemple|\IfSubStr{a b c d }{bc}{vrai}{faux}|
+\exemple|\IfSubStr{abcdef}{}{vrai}{faux}|
+\exemple|\IfSubStr{a}{a}{vrai}{faux}|
+\exemple|\IfSubStr{aaaa}{aa}{vrai}{faux}|
+\exemple|\IfSubStr{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStr{éàèï}{à}{vrai}{faux}|
+\exemple|\IfSubStr{éàèï}{ù}{vrai}{faux}|
+\exemple|\IfSubStr{ÉÀÇ}{Ç}{vrai}{faux}|
+\exemple|\IfSubStr{a}{}{vrai}{faux}|
+\exemple|\IfSubStr{}{a}{vrai}{faux}|
+\exemple|\IfSubStr{}{}{vrai}{faux}|
+\exemple|\IfSubStr[2]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[3]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[4]{abaca}{a}{vrai}{faux}|
+\exemple|\IfSubStr[-2]{abaca}{a}{vrai}{faux}|
+
+\chapitre{Le test}{IfBeginWith}
+
+\exemple|\IfBeginWith{abcdef}{adc}{vrai}{faux}|
+\exemple|\IfBeginWith{abcdef}{abcd}{vrai}{faux}|
+\exemple|\IfBeginWith{ a b c }{ a}{vrai}{faux}|
+\exemple|\IfBeginWith{a b c d}{ab}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{a}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{aa}{vrai}{faux}|
+\exemple|\IfBeginWith{éàèï}{è}{vrai}{faux}|
+\exemple|\IfBeginWith{éàèï}{éà}{vrai}{faux}|
+\exemple|\IfBeginWith{ÉÀÇ}{É}{vrai}{faux}|
+\exemple|\IfBeginWith{a}{}{vrai}{faux}|
+\exemple|\IfBeginWith{}{a}{vrai}{faux}|
+\exemple|\IfBeginWith{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfEndWith}
+
+\exemple|\IfEndWith{abcdef}{ab}{vrai}{faux}|
+\exemple|\IfEndWith{abcdef}{f}{vrai}{faux}|
+\exemple|\IfEndWith{ a b c }{c}{vrai}{faux}|
+\exemple|\IfEndWith{ a b c }{ }{vrai}{faux}|
+\exemple|\IfEndWith{a}{a}{vrai}{faux}|
+\exemple|\IfEndWith{a}{aa}{vrai}{faux}|
+\exemple|\IfEndWith{éàèï}{è}{vrai}{faux}|
+\exemple|\IfEndWith{éàèï}{ï}{vrai}{faux}|
+\exemple|\IfEndWith{ÉÀÇ}{Ç}{vrai}{faux}|
+\exemple|\IfEndWith{a}{}{vrai}{faux}|
+\exemple|\IfEndWith{}{a}{vrai}{faux}|
+\exemple|\IfEndWith{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfSubStrBefore}
+
+\exemple|\IfSubStrBefore{abcdef}{b}{e}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{e}{c}{vrai}{faux}|
+\exemple|\IfSubStrBefore{ a b c }{ }{b}{vrai}{faux}|
+\exemple|\IfSubStrBefore{ a b c }{ b}{c }{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{z}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{y}{z}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{a}{z}{vrai}{faux}|
+\exemple|\IfSubStrBefore{aaa}{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStrBefore{abcdef}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{éàèï}{à}{ï}{vrai}{faux}|
+\exemple|\IfSubStrBefore{éàèï}{é}{à}{vrai}{faux}|
+\exemple|\IfSubStrBefore{ÉÀÇ}{Ç}{É}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{a}{b}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a}{}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore{}{}{}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,1]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,2]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,3]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[1,4]{abacada}{d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,2]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBefore[4,2]{maman papa}{a}{p}{vrai}{faux}|
+
+\chapitre{Le test}{IfStrBehind}
+
+\exemple|\IfSubStrBehind{abcdef}{b}{e}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{e}{c}{vrai}{faux}|
+\exemple|\IfSubStrBehind{ a b c }{ }{b}{vrai}{faux}|
+\exemple|\IfSubStrBehind{ a b c }{ c}{ a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{z}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{y}{z}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{a}{z}{vrai}{faux}|
+\exemple|\IfSubStrBehind{aaa}{a}{aa}{vrai}{faux}|
+\exemple|\IfSubStrBehind{abcdef}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{éàèï}{ï}{à}{vrai}{faux}|
+\exemple|\IfSubStrBehind{éàèï}{à}{é}{vrai}{faux}|
+\exemple|\IfSubStrBehind{ÉÀÇ}{À}{Ç}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{a}{b}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a}{}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{a}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{}{}{}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,1]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,2]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[1,3]{abacada}{c}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[2,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[3,1]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[3,2]{maman papa}{a}{p}{vrai}{faux}|
+\exemple|\IfSubStrBehind[4,2]{maman papa}{a}{p}{vrai}{faux}|
+
+\chapitre{Le test}{IfInteger}
+
+\exemple|\IfInteger{156}{vrai}{faux}|
+\exemple|\IfInteger{1.6}{vrai}{faux}|
+\exemple|\IfInteger{7a5}{vrai}{faux}|
+\exemple|\IfInteger{+9}{vrai}{faux}|
+\exemple|\IfInteger{-15}{vrai}{faux}|
+\exemple|\IfInteger{0}{vrai}{faux}|
+\exemple|\IfInteger{-1,2}{vrai}{faux}|
+\exemple|\IfInteger{1.}{vrai}{faux}|
+\exemple|\IfInteger{-00}{vrai}{faux}|
+\exemple|\IfInteger{+}{vrai}{faux}|
+\exemple|\IfInteger{-}{vrai}{faux}|
+\exemple|\IfInteger{.}{vrai}{faux}|
+\exemple|\IfInteger{}{vrai}{faux}|
+
+\chapitre{Le test}{IfDecimal}
+
+\exemple|\IfDecimal{6}{vrai}{faux}|
+\exemple|\IfDecimal{-78}{vrai}{faux}|
+\exemple|\IfDecimal{3.14}{vrai}{faux}|
+\exemple|\IfDecimal{3,14}{vrai}{faux}|
+\exemple|\IfDecimal{1..5}{vrai}{faux}|
+\exemple|\IfDecimal{-9.8}{vrai}{faux}|
+\exemple|\IfDecimal{+9.8}{vrai}{faux}|
+\exemple|\IfDecimal{-9,8}{vrai}{faux}|
+\exemple|\IfDecimal{+9,8}{vrai}{faux}|
+\exemple|\IfDecimal{+6.7.}{vrai}{faux}|
+\exemple|\IfDecimal{.5}{vrai}{faux}|
+\exemple|\IfDecimal{1.}{vrai}{faux}|
+\exemple|\IfDecimal{-.99}{vrai}{faux}|
+\exemple|\IfDecimal{-5.}{vrai}{faux}|
+\exemple|\IfDecimal{5a9.}{vrai}{faux}|
+\exemple|\IfDecimal{+}{vrai}{faux}|
+\exemple|\IfDecimal{-}{vrai}{faux}|
+\exemple|\IfDecimal{.}{vrai}{faux}|
+\exemple|\IfDecimal{}{vrai}{faux}|
+
+\chapitre{Le test}{IfStrEq}
+
+\exemple|\IfStrEq{abcdef}{abcdef}{vrai}{faux}|
+\exemple|\IfStrEq{a b c}{a b c}{vrai}{faux}|
+\exemple|\IfStrEq{abcd}{abc}{vrai}{faux}|
+\exemple|\IfStrEq{aab}{ab}{vrai}{faux}|
+\exemple|\IfStrEq{aab}{aa}{vrai}{faux}|
+\exemple|\IfStrEq{1.2}{1.20}{vrai}{faux}|
+\exemple|\IfStrEq{3,4}{3.4}{vrai}{faux}|
+\exemple|\IfStrEq{ }{ }{vrai}{faux}|
+\exemple|\IfStrEq{}{a}{vrai}{faux}|
+\exemple|\IfStrEq{a}{}{vrai}{faux}|
+\exemple|\IfStrEq{}{}{vrai}{faux}|
+
+\chapitre{Le test}{IfEq}
+
+\exemple|\IfEq{abcdef}{abcdef}{vrai}{faux}|
+\exemple|\IfEq{a b c}{a b c}{vrai}{faux}|
+\exemple|\IfEq{abcd}{abc}{vrai}{faux}|
+\exemple|\IfEq{aab}{ab}{vrai}{faux}|
+\exemple|\IfEq{aab}{aa}{vrai}{faux}|
+\exemple|\IfEq{1.2}{1.20}{vrai}{faux}|
+\exemple|\IfEq{+1.0000}{1}{vrai}{faux}|
+\exemple|\IfEq{-10}{10}{vrai}{faux}|
+\exemple|\IfEq{1,2}{1.2}{vrai}{faux}|
+\exemple|\IfEq{.5}{0.5}{vrai}{faux}|
+\exemple|\IfEq{,5}{0,5}{vrai}{faux}|
+\exemple|\IfEq{10}{dix}{vrai}{faux}|
+\exemple|\IfEq{123}{1a3}{vrai}{faux}|
+\exemple|\IfEq{0}{}{vrai}{faux}|
+\exemple|\IfEq{++10}{+10}{vrai}{faux}|
+\exemple|\IfEq{--10}{+10}{vrai}{faux}|
+\exemple|\IfEq{a}{}{vrai}{faux}|
+\exemple|\IfEq{}{a}{vrai}{faux}|
+\exemple|\IfEq{}{}{vrai}{faux}|
+
+\chapitre{La macro}{StrBefore}
+
+\exemple|\StrBefore{abcedef}{e}|
+\exemple*|\StrBefore{abcdef}{a}|
+\exemple*|\StrBefore{abcdef}{z}|
+\exemple*|\StrBefore{a b c d}{c}|
+\exemple*|\StrBefore{a b c d}{ }|
+\exemple*|\StrBefore[2]{a b c d}{ }|
+\exemple*|\StrBefore[3]{a b c d}{ }|
+\exemple*|\StrBefore[9]{a b c d}{ }|
+\exemple*|\StrBefore[-7]{a b c d}{ }|
+\exemple*|\StrBefore{abcdef}{Z}|
+\exemple|\StrBefore{éàèï}{è}|
+\exemple|\StrBefore[2]{étété}{é}|
+\exemple|\StrBefore{ÉÀÇ}{À}|
+\exemple*|\StrBefore[1]{aaaaaa}{aa}|
+\exemple|\StrBefore[2]{aaaaaa}{aa}|
+\exemple|\StrBefore[3]{aaaaaa}{aa}|
+\exemple*|\StrBefore[4]{aaaaaa}{aa}|
+\exemple*|\StrBefore{a}{}|
+\exemple*|\StrBefore{}{a}|
+\exemple*|\StrBefore{}{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrBefore{abcedef}{e}[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{a}[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{z}[\aa]\aa|
+\exemple*|\StrBefore{a b c d}{c}[\aa]\aa|
+\exemple*|\StrBefore{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[2]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[3]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[9]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore[-7]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBefore{abcdef}{Z}[\aa]\aa|
+\exemple|\StrBefore{éàèï}{è}[\aa]\aa|
+\exemple|\StrBefore[2]{étété}{é}[\aa]\aa|
+\exemple|\StrBefore{ÉÀÇ}{À}[\aa]\aa|
+\exemple*|\StrBefore[1]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBefore[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBefore[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBefore[4]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBefore{a}{}[\aa]\aa|
+\exemple*|\StrBefore{}{a}[\aa]\aa|
+\exemple*|\StrBefore{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrBehind}
+
+\exemple|\StrBehind{abcedef}{e}|
+\exemple*|\StrBehind{abcdef}{a}|
+\exemple*|\StrBehind{abcdef}{z}|
+\exemple*|\StrBehind{a b c d}{c}|
+\exemple*|\StrBehind{a b c d}{ }|
+\exemple*|\StrBehind[2]{a b c d}{ }|
+\exemple*|\StrBehind[3]{a b c d}{ }|
+\exemple*|\StrBehind[9]{a b c d}{ }|
+\exemple*|\StrBehind[-7]{a b c d}{ }|
+\exemple*|\StrBehind{abcdef}{Z}|
+\exemple|\StrBehind{éàèï}{è}|
+\exemple|\StrBehind{ÉÀÇ}{À}|
+\exemple|\StrBehind[1]{aaaaaa}{aa}|
+\exemple|\StrBehind[2]{aaaaaa}{aa}|
+\exemple*|\StrBehind[3]{aaaaaa}{aa}|
+\exemple*|\StrBehind[4]{aaaaaa}{aa}|
+\exemple*|\StrBehind{a}{}|
+\exemple*|\StrBehind{}{a}|
+\exemple*|\StrBehind{}{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrBehind{abcedef}{e}[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{a}[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{z}[\aa]\aa|
+\exemple*|\StrBehind{a b c d}{c}[\aa]\aa|
+\exemple*|\StrBehind{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[2]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[3]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[9]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind[-7]{a b c d}{ }[\aa]\aa|
+\exemple*|\StrBehind{abcdef}{Z}[\aa]\aa|
+\exemple|\StrBehind{éàèï}{è}[\aa]\aa|
+\exemple|\StrBehind{ÉÀÇ}{À}[\aa]\aa|
+\exemple|\StrBehind[1]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrBehind[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind[4]{aaaaaa}{aa}[\aa]\aa|
+\exemple*|\StrBehind{a}{}[\aa]\aa|
+\exemple*|\StrBehind{}{a}[\aa]\aa|
+\exemple*|\StrBehind{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrBetween}
+
+\exemple|\StrBetween{abcdef}{b}{e}|
+\exemple*|\StrBetween{aZaaaaZa}{Z}{Z}|
+\exemple*|\StrBetween[1,2]{aZaaaaZa}{Z}{Z}|
+\exemple*|\StrBetween{a b c d}{a}{c}|
+\exemple*|\StrBetween{a b c d}{a }{ d}|
+\exemple*|\StrBetween{abcdef}{a}{Z}|
+\exemple*|\StrBetween{abcdef}{Y}{Z}|
+\exemple*|\StrBetween[2,5]{aAaBaCaDa}{a}{a}|
+\exemple*|\StrBetween[4,1]{ab1ab2ab3ab4ab}{b}{a}|
+\exemple*|\StrBetween[3,4]{a b c d e f}{ }{ }|
+\exemple|\StrBetween[1,3]{aaaaaa}{aa}{aa}|
+\exemple|\StrBetween{éàèï}{é}{ï}|
+\exemple|\StrBetween{ÉÀÇ}{É}{Ç}|
+\exemple*|\StrBetween{abcdef}{a}{}|
+\exemple*|\StrBetween{abcdef}{}{f}|
+\exemple*|\StrBetween{}{a}{b}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrBetween{abcdef}{b}{e}[\aa]\aa|
+\exemple*|\StrBetween{aZaaaaZa}{Z}{Z}[\aa]\aa|
+\exemple*|\StrBetween[1,2]{aZaaaaZa}{Z}{Z}[\aa]\aa|
+\exemple*|\StrBetween{a b c d}{a}{c}[\aa]\aa|
+\exemple*|\StrBetween{a b c d}{a }{ d}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{a}{Z}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{Y}{Z}[\aa]\aa|
+\exemple*|\StrBetween[2,5]{aAaBaCaDa}{a}{a}[\aa]\aa|
+\exemple*|\StrBetween[4,1]{ab1ab2ab3ab4ab}{b}{a}[\aa]\aa|
+\exemple*|\StrBetween[3,4]{a b c d e f}{ }{ }[\aa]\aa|
+\exemple|\StrBetween[1,3]{aaaaaa}{aa}{aa}[\aa]\aa|
+\exemple|\StrBetween{éàèï}{é}{ï}[\aa]\aa|
+\exemple|\StrBetween{ÉÀÇ}{É}{Ç}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{a}{}[\aa]\aa|
+\exemple*|\StrBetween{abcdef}{}{f}[\aa]\aa|
+\exemple*|\StrBetween{}{a}{b}[\aa]\aa|
+
+\chapitre{La macro}{StrSubstitute}
+
+\exemple|\StrSubstitute{abcdef}{c}{ZZ}|
+\exemple|\StrSubstitute{aaaaaaa}{aa}{w}|
+\exemple|\StrSubstitute[0]{abacada}{a}{.}|
+\exemple|\StrSubstitute[1]{abacada}{a}{.}|
+\exemple|\StrSubstitute[2]{abacada}{a}{.}|
+\exemple|\StrSubstitute[3]{abacada}{a}{.}|
+\exemple|\StrSubstitute[4]{abacada}{a}{.}|
+\exemple|\StrSubstitute[5]{abacada}{a}{.}|
+\exemple|\StrSubstitute{a b c d e}{ }{,}|
+\exemple|\StrSubstitute{a b c d e}{ }{}|
+\exemple|\StrSubstitute{éàèï}{è}{Z}|
+\exemple|\StrSubstitute{ÉÀÇ}{Ç}{c}|
+\exemple|\StrSubstitute{abcdef}{}{A}|
+\exemple|\StrSubstitute{abcdef}{}{}|
+\exemple*|\StrSubstitute{}{a}{b}|
+\exemple*|\StrSubstitute{}{}{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrSubstitute{abcdef}{c}{ZZ}[\aa]\aa|
+\exemple|\StrSubstitute{aaaaaaa}{aa}{w}[\aa]\aa|
+\exemple|\StrSubstitute[0]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[1]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[2]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[3]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[4]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute[5]{abacada}{a}{.}[\aa]\aa|
+\exemple|\StrSubstitute{a b c d e}{ }{,}[\aa]\aa|
+\exemple|\StrSubstitute{a b c d e}{ }{}[\aa]\aa|
+\exemple|\StrSubstitute{éàèï}{è}{Z}[\aa]\aa|
+\exemple|\StrSubstitute{ÉÀÇ}{Ç}{c}[\aa]\aa|
+\exemple|\StrSubstitute{abcdef}{}{A}[\aa]\aa|
+\exemple|\StrSubstitute{abcdef}{}{}[\aa]\aa|
+\exemple*|\StrSubstitute{}{a}{b}[\aa]\aa|
+\exemple*|\StrSubstitute{}{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrDel}
+
+\exemple|\StrDel{a1a2a3a4}{a}|
+\exemple|\StrDel[2]{a1a2a3a4}{a}|
+\exemple|\StrDel[-2]{a1a2a3a4}{a}|
+\exemple|\StrDel[10]{a1a2a3a4}{a}|
+\exemple|\StrDel[3]{a b c d e}{a}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrDel{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[2]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[-2]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[10]{a1a2a3a4}{a}[\aa]\aa|
+\exemple|\StrDel[3]{a b c d e}{a}[\aa]\aa|
+
+\chapitre{La macro}{StrLen}
+
+
+\exemple|\StrLen{abcdef}|
+\exemple|\StrLen{a b c}|
+\exemple|\StrLen{ a b c }|
+\exemple|\StrLen{a}|
+\exemple|\StrLen{éàèï}|% fonctionne mal en utf8 : donne 8 au lieu de 4
+\exemple|\StrLen{ÉÀÇ}|% idem
+\exemple|\StrLen{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrLen{abcdef}[\aa]\aa|
+\exemple|\StrLen{a b c}[\aa]\aa|
+\exemple|\StrLen{ a b c }[\aa]\aa|
+\exemple|\StrLen{a}[\aa]\aa|
+\exemple|\StrLen{éàèï}[\aa]\aa|% fonctionne mal en utf8 : donne 8 au lieu de 4
+\exemple|\StrLen{ÉÀÇ}[\aa]\aa|% idem
+\exemple|\StrLen{}[\aa]\aa|
+
+\chapitre{la macro}{StrSplit}
+
+\exemple|\StrSplit{abcde}{3}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{abcde}{1}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{abcde}{0}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{abcde}{-5}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{abcde}{20}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{a b c}{4}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{éàçù}{2}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+\exemple|\StrSplit{}{3}{\xx}{\yy}\#\xx\#\quad\#\yy\#|
+
+\chapitre{la macro}{StrMid}
+
+\exemple|\StrMid{abcdef}{2}{5}|
+\exemple*|\StrMid{a b c d}{2}{6}|
+\exemple*|\StrMid{abcdef}{4}{2}|
+\exemple|\StrMid{abcdef}{-4}{3}|
+\exemple*|\StrMid{abcdef}{-4}{-1}|
+\exemple|\StrMid{abcdef}{-4}{20}|
+\exemple*|\StrMid{abcdef}{8}{10}|
+\exemple|\StrMid{abcdef}{2}{2}|
+\exemple|\StrMid{éàèï}{2}{3}|
+\exemple|\StrMid{ÉÀÇ}{2}{3}|
+\exemple|\StrMid{aaaaaa}{3}{6}|
+\exemple*|\StrMid{}{4}{5}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrMid{abcdef}{2}{5}[\aa]\aa|
+\exemple*|\StrMid{a b c d}{2}{6}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{4}{2}[\aa]\aa|
+\exemple|\StrMid{abcdef}{-4}{3}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{-4}{-1}[\aa]\aa|
+\exemple|\StrMid{abcdef}{-4}{20}[\aa]\aa|
+\exemple*|\StrMid{abcdef}{8}{10}[\aa]\aa|
+\exemple|\StrMid{abcdef}{2}{2}[\aa]\aa|
+\exemple|\StrMid{éàèï}{2}{3}[\aa]\aa|
+\exemple|\StrMid{ÉÀÇ}{2}{3}[\aa]\aa|
+\exemple|\StrMid{aaaaaa}{3}{6}[\aa]\aa|
+\exemple*|\StrMid{}{4}{5}[\aa]\aa|
+
+\chapitre{La macro}{StrGobbleLeft}
+
+\exemple|\StrGobbleLeft{abcdef}{3}|
+\exemple*|\StrGobbleLeft{a b c d}{3}|
+\exemple|\StrGobbleLeft{abcdef}{-3}|
+\exemple*|\StrGobbleLeft{abcdef}{9}|
+\exemple|\StrGobbleLeft{éàèï}{2}|
+\exemple|\StrGobbleLeft{ÉÀÇ}{1}|
+\exemple|\StrGobbleLeft{aaaaa}{4}|
+\exemple*|\StrGobbleLeft{}{2}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrGobbleLeft{abcdef}{3}[\aa]\aa|
+\exemple*|\StrGobbleLeft{a b c d}{3}[\aa]\aa|
+\exemple|\StrGobbleLeft{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrGobbleLeft{abcdef}{9}[\aa]\aa|
+\exemple|\StrGobbleLeft{éàèï}{2}[\aa]\aa|
+\exemple|\StrGobbleLeft{ÉÀÇ}{1}[\aa]\aa|
+\exemple|\StrGobbleLeft{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrGobbleLeft{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrGobbleRight}
+
+\exemple|\StrGobbleRight{abcdef}{3}|
+\exemple*|\StrGobbleRight{a b c d}{3}|
+\exemple|\StrGobbleRight{abcdef}{-3}|
+\exemple*|\StrGobbleRight{abcdef}{9}|
+\exemple|\StrGobbleRight{éàèï}{2}|
+\exemple|\StrGobbleRight{ÉÀÇ}{1}|
+\exemple|\StrGobbleRight{aaaaa}{4}|
+\exemple*|\StrGobbleRight{}{2}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrGobbleRight{abcdef}{3}[\aa]\aa|
+\exemple*|\StrGobbleRight{a b c d}{3}[\aa]\aa|
+\exemple|\StrGobbleRight{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrGobbleRight{abcdef}{9}[\aa]\aa|
+\exemple|\StrGobbleRight{éàèï}{2}[\aa]\aa|
+\exemple|\StrGobbleRight{ÉÀÇ}{1}[\aa]\aa|
+\exemple|\StrGobbleRight{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrGobbleRight{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrLeft}
+
+\exemple|\StrLeft{abcdef}{3}|
+\exemple*|\StrLeft{a b c d}{3}|
+\exemple*|\StrLeft{abcdef}{-3}|
+\exemple*|\StrLeft{abcdef}{9}|
+\exemple|\StrLeft{éàèï}{2}|
+\exemple|\StrLeft{ÉÀÇ}{1}|
+\exemple|\StrLeft{aaaaa}{4}|
+\exemple*|\StrLeft{}{2}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrLeft{abcdef}{3}[\aa]\aa|
+\exemple*|\StrLeft{a b c d}{3}[\aa]\aa|
+\exemple*|\StrLeft{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrLeft{abcdef}{9}[\aa]\aa|
+\exemple|\StrLeft{éàèï}{2}[\aa]\aa|
+\exemple|\StrLeft{ÉÀÇ}{1}[\aa]\aa|
+\exemple|\StrLeft{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrLeft{}{2}[\aa]\aa|
+
+\chapitre{La macro}{StrRight}
+
+\exemple|\StrRight{abcdef}{3}|
+\exemple*|\StrRight{a b c d}{3}|
+\exemple*|\StrRight{abcdef}{-3}|
+\exemple*|\StrRight{abcdef}{9}|
+\exemple|\StrRight{éàèï}{2}|
+\exemple|\StrRight{ÉÀÇ}{1}|
+\exemple|\StrRight{aaaaa}{4}|
+\exemple*|\StrRight{}{2}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrRight{abcdef}{3}[\aa]\aa|
+\exemple*|\StrRight{a b c d}{3}[\aa]\aa|
+\exemple*|\StrRight{abcdef}{-3}[\aa]\aa|
+\exemple*|\StrRight{abcdef}{9}[\aa]\aa|
+\exemple|\StrRight{éàèï}{2}[\aa]\aa|
+\exemple|\StrRight{ÉÀÇ}{1}[\aa]\aa|
+\exemple|\StrRight{aaaaa}{4}[\aa]\aa|
+\exemple*|\StrRight{}{2}[\aa]\aa|
+
+\chapitre{la macro}{StrChar}
+
+\exemple|\StrChar{abcdef}{5}|
+\exemple*|\StrChar{a b c d}{4}|
+\exemple|\StrChar{a b c d}{7}|
+\exemple*|\StrChar{abcdef}{10}|
+\exemple*|\StrChar{abcdef}{-5}|
+\exemple*|\StrChar{}{3}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrChar{abcdef}{5}[\aa]\aa|
+\exemple*|\StrChar{a b c d}{4}[\aa]\aa|
+\exemple|\StrChar{a b c d}{7}[\aa]\aa|
+\exemple*|\StrChar{abcdef}{10}[\aa]\aa|
+\exemple*|\StrChar{abcdef}{-5}[\aa]\aa|
+\exemple*|\StrChar{}{3}[\aa]\aa|
+
+\chapitre{La macro}{StrCount}
+
+\exemple|\StrCount{abcdef}{d}|
+\exemple|\StrCount{a b c d}{ }|
+\exemple|\StrCount{aaaaaa}{aa}|
+\exemple|\StrCount{étété}{é}|
+\exemple|\StrCount{abcdef}{Z}|
+\exemple|\StrCount{éàèï}{é}|
+\exemple|\StrCount{ÉÀÇ}{Ç}|
+\exemple|\StrCount{abcdef}{}|
+\exemple|\StrCount{}{a}|
+\exemple|\StrCount{}{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrCount{abcdef}{d}[\aa]\aa|
+\exemple|\StrCount{a b c d}{ }[\aa]\aa|
+\exemple|\StrCount{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrCount{étété}{é}[\aa]\aa|
+\exemple|\StrCount{abcdef}{Z}[\aa]\aa|
+\exemple|\StrCount{éàèï}{é}[\aa]\aa|
+\exemple|\StrCount{ÉÀÇ}{Ç}[\aa]\aa|
+\exemple|\StrCount{abcdef}{}[\aa]\aa|
+\exemple|\StrCount{}{a}[\aa]\aa|
+\exemple|\StrCount{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrPosition}
+
+\exemple|\StrPosition{abcdef}{c}|
+\exemple|\StrPosition{abcdef}{Z}|
+\exemple|\StrPosition{a b c d}{ }|
+\exemple|\StrPosition[3]{a b c d}{ }|
+\exemple|\StrPosition[8]{a b c d}{ }|
+\exemple|\StrPosition{étété}{é}|
+\exemple|\StrPosition[3]{étété}{é}|
+\exemple|\StrPosition[5]{étété}{é}|
+\exemple|\StrPosition{aaaaaa}{aa}|
+\exemple|\StrPosition[2]{aaaaaa}{aa}|
+\exemple|\StrPosition[3]{aaaaaa}{aa}|
+\exemple|\StrPosition{éàèï}{è}|
+\exemple|\StrPosition{ÉÀÇ}{À}|
+\exemple|\StrPosition{abcdef}{}|
+\exemple|\StrPosition{}{a}|
+\exemple|\StrPosition{}{}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrPosition{abcdef}{c}[\aa]\aa|
+\exemple|\StrPosition{abcdef}{Z}[\aa]\aa|
+\exemple|\StrPosition{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition[3]{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition[8]{a b c d}{ }[\aa]\aa|
+\exemple|\StrPosition{étété}{é}[\aa]\aa|
+\exemple|\StrPosition[3]{étété}{é}[\aa]\aa|
+\exemple|\StrPosition[5]{étété}{é}[\aa]\aa|
+\exemple|\StrPosition{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition[2]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition[3]{aaaaaa}{aa}[\aa]\aa|
+\exemple|\StrPosition{éàèï}{è}[\aa]\aa|
+\exemple|\StrPosition{ÉÀÇ}{À}[\aa]\aa|
+\exemple|\StrPosition{abcdef}{}[\aa]\aa|
+\exemple|\StrPosition{}{a}[\aa]\aa|
+\exemple|\StrPosition{}{}[\aa]\aa|
+
+\chapitre{La macro}{StrCompare}
+
+La tolérance normale :\par\comparenormal
+\exemple|\StrCompare{abcdefghij}{abc}|
+\exemple|\StrCompare{A}{A}|
+\exemple|\StrCompare{éçà}{éçà}|
+\exemple|\StrCompare{abcdef}{a bd}|
+\exemple|\StrCompare{ }{ }|
+\exemple|\StrCompare{}{abcd}|
+\exemple|\StrCompare{abcd}{}|
+\exemple|\StrCompare{123456}{1234}|
+\exemple|\StrCompare{a b c d}{a bcd}|
+\exemple|\StrCompare{}{}|
+\exemple|\StrCompare{eee}{eeee}|
+\exemple|\StrCompare{eeee}{eee}|
+\exemple|\StrCompare{totutu}{tututu}|
+\exemple|\StrCompare{abcd}{abyz}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrCompare{abcdefghij}{abc}[\aa]\aa|
+\exemple|\StrCompare{A}{A}[\aa]\aa|
+\exemple|\StrCompare{éçà}{éçà}[\aa]\aa|
+\exemple|\StrCompare{abcdef}{a bd}[\aa]\aa|
+\exemple|\StrCompare{ }{ }[\aa]\aa|
+\exemple|\StrCompare{}{abcd}[\aa]\aa|
+\exemple|\StrCompare{abcd}{}[\aa]\aa|
+\exemple|\StrCompare{123456}{1234}[\aa]\aa|
+\exemple|\StrCompare{a b c d}{a bcd}[\aa]\aa|
+\exemple|\StrCompare{}{}[\aa]\aa|
+\exemple|\StrCompare{eee}{eeee}[\aa]\aa|
+\exemple|\StrCompare{eeee}{eee}[\aa]\aa|
+\exemple|\StrCompare{totutu}{tututu}[\aa]\aa|
+\exemple|\StrCompare{abcd}{abyz}[\aa]\aa|
+
+La tolérance stricte :\comparestrict\par
+\exemple|\StrCompare{abcdefghij}{abc}|
+\exemple|\StrCompare{A}{A}|
+\exemple|\StrCompare{éçà}{éçà}|
+\exemple|\StrCompare{abcdef}{a bd}|
+\exemple|\StrCompare{ }{ }|
+\exemple|\StrCompare{}{abcd}|
+\exemple|\StrCompare{abcd}{}|
+\exemple|\StrCompare{123456}{1234}|
+\exemple|\StrCompare{a b c d}{a bcd}|
+\exemple|\StrCompare{}{}|
+\exemple|\StrCompare{eee}{eeee}|
+\exemple|\StrCompare{eeee}{eee}|
+\exemple|\StrCompare{totutu}{tututu}|
+\exemple|\StrCompare{abcd}{abyz}|
+\par\bigskip Mêmes exemples avec l'argument optionnel :
+
+\exemple|\StrCompare{abcdefghij}{abc}[\aa]\aa|
+\exemple|\StrCompare{A}{A}[\aa]\aa|
+\exemple|\StrCompare{éçà}{éçà}[\aa]\aa|
+\exemple|\StrCompare{abcdef}{a bd}[\aa]\aa|
+\exemple|\StrCompare{ }{ }[\aa]\aa|
+\exemple|\StrCompare{}{abcd}[\aa]\aa|
+\exemple|\StrCompare{abcd}{}[\aa]\aa|
+\exemple|\StrCompare{123456}{1234}[\aa]\aa|
+\exemple|\StrCompare{a b c d}{a bcd}[\aa]\aa|
+\exemple|\StrCompare{}{}[\aa]\aa|
+\exemple|\StrCompare{eee}{eeee}[\aa]\aa|
+\exemple|\StrCompare{eeee}{eee}[\aa]\aa|
+\exemple|\StrCompare{totutu}{tututu}[\aa]\aa|
+\exemple|\StrCompare{abcd}{abyz}[\aa]\aa|
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.pdf b/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.pdf
new file mode 100644
index 00000000000..d4ccc06b234
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.tex b/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.tex
new file mode 100644
index 00000000000..7cbb5a76425
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/xstring_doc_en.tex
@@ -0,0 +1,1394 @@
+% This is xtring_doc_en.tex, the manual of xstring
+% Christian Tellechea 2008
+%
+% email : unbonpetit@gmail.com
+%
+% 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.
+%
+\documentclass[a4paper,10pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[dvips,colorlinks=true,hyperfootnotes=false,citecolor=black,filecolor=black,linkcolor=blue,urlcolor=blue,bookmarks=false,pdfauthor={Christian Tellechea},pdftitle={xstring},pdfsubject={package for strings},pdfkeywords={xstring,latex,string},pdfcreator={LaTeX}]{hyperref}
+\usepackage[a4paper,dvips,margin=2cm]{geometry}
+\usepackage{amsmath,amssymb}
+\usepackage{moreverb}
+\usepackage{lmodern}
+\usepackage{eurosym}
+\usepackage{xstring}
+\usepackage[french,english]{babel}
+\makeatletter
+\newcommand*\exemple{\@ifstar{\def\frontiere{|}\@xs@MakeVerb}{\def\frontiere{}\@xs@MakeVerb}}
+\long\def\@xs@afterreadverb#1{%
+ \normalexpandarg
+ \tokenize\cs@resultat{#1}%
+ \fullexpandarg
+ \hbox to\linewidth{\hbox to0.7\linewidth{\hfil\tt#1}\quad\frontiere\cs@resultat\frontiere\hfil}\par}
+\makeatother
+\newcommand\guill[1]{"#1"}
+\newcommand\argu[1]{$\langle$\textit{#1}$\rangle$}
+\newcommand\ARGU[1]{\texttt{\{}\argu{#1}\texttt{\}}}
+\newcommand\arguC[1]{\texttt{[}\argu{#1}\texttt{]}}
+\newcommand\arguCC[2]{\texttt{[}\argu{#1}{,}\argu{#2}\texttt{]}}
+\newcommand\texte[1]{\texttt{text}${}_{#1}$}
+\newcommand\etoile{$\langle$\texttt{[*]}$\rangle$}
+\newcommand\voirdeftexte{~(see \ref{deftexte})}
+\newenvironment{Conditions}[1][1cm]%
+{\begin{list}%
+ {$\vartriangleright$}%
+ {\setlength{\leftmargin}{#1}
+ \setlength{\itemsep}{0pt}
+ \setlength{\parsep}{0pt}
+ \setlength{\topsep}{2ptplus3ptminus2pt}
+ }}%
+{\end{list}}
+\renewcommand\th{${}^\text{th}$}
+
+\begin{document}
+\setlength{\parindent}{0pt}
+\begin{titlepage}
+ \null\par\vfill
+ \begin{center}
+ \begin{minipage}{0.75\linewidth}
+ \begin{center}
+ \Huge\bfseries xstring\par\vspace{5pt}
+ \small v\xstringversion\par\vspace{25pt}
+ \normalsize User's manual
+ \end{center}
+ \end{minipage}
+ \end{center}
+ \vspace{1cm}
+ \begin{center}
+ Christian {\sc Tellechea}\par\small
+ \href{mailto:unbonpetit@gmail.com}{\nolinkurl{unbonpetit@gmail.com}}\par\vspace{5pt}
+ \xstringenglishdate
+ \end{center}
+ \vfill\hrulefill
+ \begin{center}
+ \begin{minipage}{0.85\linewidth}
+ \noindent
+ \hfill\textbf{\textit{Abstract}}\hfill{}\medskip\par
+ This package which requires $\varepsilon-\TeX{}$ groups together macros manipulating strings, such as:
+ \setlength{\parindent}{1.5em}
+ \begin{itemize}
+ \item[$\triangleright$] tests:
+ \begin{itemize}
+ \item does a string contains at least $n$ times an another?
+ \item does a string starts (or ends) with another? etc.
+ \item is a string an integer? A decimal?
+ \item are 2 strings equal?
+ \end{itemize}
+ \item[$\triangleright$] extractions of substrings:
+ \begin{itemize}
+ \item what is on the left (or the right) of the $n$\th{} occurrence of a substring;
+ \item what is between the occurrences of 2 substrings;
+ \item substring between 2 positions, etc.
+ \end{itemize}
+ \item[$\triangleright$] substitution of all, or the $n$ first occurrences of a substring for an other substring;
+ \item[$\triangleright$] calculation of numbers:
+ \begin{itemize}
+ \item length of a string;
+ \item position of the $n$\th{} occurrence of a substring;
+ \item how many times a string contains a substring?
+ \item comparison of 2 strings: position of the first difference.
+ \end{itemize}
+ \end{itemize}
+ \setlength{\parindent}{0pt}
+ \medskip
+ For programming purposes, other macros allow to use special characters (\verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| and \verb|%|) with the macros manipulating strings.
+ \end{minipage}
+ \end{center}
+ \hrulefill\vfill{}
+\end{titlepage}
+\pagebreak
+\tableofcontents
+\pagebreak
+
+This manual is a translation of the french manual. I apologize for my poor english but I did my best, and I hope that the following is comprehensible!
+\section{Presentation}
+\subsection{Description}
+This extension\footnote{This extension does not require \LaTeX{} and can be compiled with Plain $\varepsilon$-\TeX{}.} provides macros and tests operating on strings, as other programmation languages have. They provides the usual strings operations, such as: test if a string contains another, begins or ends with another, extractions of strings, calculation of the position of a substring, of the number of occurrences, etc.\medskip
+
+Certainly, other packages exist (for example \href{http://www.ctan.org/tex-archive/macros/latex/contrib/substr/}{\nolinkurl{substr}} and \href{http://www.ctan.org/tex-archive/macros/latex/contrib/stringstrings/}{\nolinkurl{stringstrings}}), but as well as differences on features, they do not take into account occurrences so I found them too limited and difficult to use for programming.\medskip
+
+There are 2 forms of each command of this package : the regular one and the starred one. The difference is that the regular \emph{do take care of catcodes} of the characters in the string, while the starred ones, \emph{less strict}, don't. For most users, both should behave the same way (for advanced user, read more at page~\pageref{catcodesarguments} and page~\pageref{macrosetoilees}).
+
+\subsection{Motivation}
+I decided to write this package of macros because I have never really found tools in \LaTeX{} suiting my needs for strings. So, over the last few months,I wrote a few macros that I occasionally or regularly used. Their numbers have increased and become a little too dispersed in directories in my computer, so I have grouped them together in this package.
+
+Thus, writing a coherent set of macros forces more discipline and leads to necessary improvements, which took most of the time I spent writing this package.\medskip
+
+This package is my first one as I discoverd \LaTeX{} less than a year ago, so my main motivation was to make progress in programming with \TeX, and to tackle its specific methods.
+
+\subsection{Operation}
+\label{deftexte}
+In the following, \guill{\texte{10,11,12}} means a string made of characters whose catcodes are 10, 11 or 12.
+\subsubsection{Expansion of arguments}
+\label{devarg}
+All the arguments of the macros operating on strings\footnote{Excepted the 2 last arguments of the tests.} are supposed, after a number of times of expansion, to expand to \texte{10,11,12}. By \emph{default}, to avoid many \verb|\expandafter| and to ease the use of macros, all the arguments are fully expanded before being taken into account by the macro: for this, \verb|\fullexpandarg| is called by default.\bigskip
+
+For example, if \verb|\macro| is a macro of this package requiring 2 arguments (text for the first and a number for the second), the following structures are equivalent:\medskip
+
+\begin{minipage}[t]{0.35\linewidth}
+ Structure with \verb|\fullexpandarg|\par\hrulefill\par
+ \verb|\def\aa{some text}|\par
+ \verb|\def\nn{2}|\par
+ \verb|\macro{\aa}{\nn}|
+\end{minipage}
+\hfill
+\begin{minipage}[t]{0.6\linewidth}
+ Usual structure with \LaTeX{} or with \verb|\normalexpandarg|\par\hrulefill\par
+ \verb|\def\aa{some text}|\par
+ \verb|\def\nn{2}|\par
+ \verb|\expandafter\expandafter\expandafter\macro|\par
+ \verb| \expandafter\expandafter\expandafter|\par
+ \verb| {\expandafter\aa\expandafter}\expandafter{\nn}|
+\end{minipage}\hfill{}\medskip
+
+The structure on the left allow to forget the order of expansion and avoid writing many \verb|\expandafter|. On the other hand, the arguments must be purely expandable into \texte{10,11,12} containing what is expected by the macro (number or string).\medskip
+
+However, at any time, you can find the usual order of expansion with the macro \verb|\normalexpandarg|, and use again \verb|\fullexpandarg| if you want a full expansion of the arguments.
+
+\subsubsection{Textual arguments}
+The macros operating on strings require one or several arguments containing --~or whose expansion contains~-- \texte{10,11,12}\voirdeftexte{}, using the usual syntax \verb|{|\texte{10,11,12}\verb|}|, and for optional arguments \verb|[|\texte{10,11,12}\verb|]|.\medskip
+
+The following rules shoud be observed for the expansion of textual arguments:
+
+\begin{itemize}
+ \item they can contain letters (uppercase or lowercase, accented\footnote{For a reliable operation with accented letters, the \texttt{\textbackslash fontenc} package with option \texttt{[T1]} and \texttt{\textbackslash inputenc} with appropriated option must be loaded} or not), figures, spaces, and any other character with a catcode of 10, 11 ou 12 (punctuation signs, calculation signs, parenthesis, square bracket, etc). On the other hand, the \officialeuro{} sign is not allowed.
+ \item spaces are taken into account as normal characters, except if several spaces follows in which case the \LaTeX{} rule prevails and they become a single space;
+ \item no special character is allowed, i.e. the 10 following characters are strictly forbiden: \verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| and \verb|%|.
+\end{itemize}\medskip
+
+To circumvent some of these rules and to go further in the use of the macros operating on strings, this package provides special macros that enable special characters in textual arguments. See the detailed description of this modus operandi in chapter~\ref{programmation}, page~\pageref{programmation}.
+
+\subsubsection{Expansion of macros, optional argument}
+The macros of this package are not purely expandable, i.e. they cannot be put in the argument of an \verb|\edef|. Consequently, some structures are not allowed and lead to errors when compiling. If, for example, \verb|\command{argument}| is a macro of this package operating on strings and returning a string, the following structures are not allowed:\smallskip
+
+\hspace{0.2\linewidth}\verb|\edef\Result{\command{argument}}|\par
+\qquad or this nested structure\par
+\hspace{0.2\linewidth}\verb|\commandA{\commandB{\commandC{argument}}}|\smallskip
+
+For this reason, all the macros returning a result (i.e. all excepted the tests and \verb|\StrSplit|) have an optional argument in last position. The syntax is \arguC{name}, where \argu{name} is the name of the control sequence that will receive the result of the macro: the assignment is made with an \verb|\edef| which make the result of the macro \argu{name} purely expandable. Of course, if an optional argument is present, the macro does not display anything.\medskip
+
+Thus, this structure not allowed, already seen above:\par
+\hspace{0.2\linewidth}\verb|\edef\Result{\command{arguments}}|\par
+\qquad is equivalent to:\par
+\hspace{0.2\linewidth}\verb|\command{argument}[\Result]|\medskip
+
+And this nested one:\par
+\hspace{0.2\linewidth}\verb|\commandA{\commandB{\commandC{arguments}}}|\par
+\qquad can be replaced by:\par
+\hspace{0.2\linewidth}\verb|\commandC{arguments}[\MyString]|\par
+\hspace{0.2\linewidth}\verb|\commandB{\MyString}[\MyString]|\par
+\hspace{0.2\linewidth}\verb|\commandA{\MyString}|
+
+\subsubsection{Catcode of arguments}\label{catcodesarguments}
+Macros of this package take the catcodes of characters into account. To avoid unexpected behaviour (particulary with tests), you should keep in mind that characters \emph{and their catcodes} are examined.\medskip
+
+For instance, these two arguments:\par\medskip
+\hfil\verb|{\string a\string b}|\qquad and\qquad\verb|{ab}|\hfil{}\par\smallskip
+do \emph{not} expand into equal strings for xstring! Because of the command \verb|\string|, the first expands into ''\verb|ab|`` with catcodes 12 while the second have characters with their natural catcodes 11. Catcodes do not match! It is necessary to be aware of this, particulary with command like \verb|\string| which expansion is a string with catcodes 12 and 10 : \verb|\detokenize|, \verb|\meaning|, \verb|\jobname|, \verb|\fontname|, \verb|\romannumeral|, etc.\medskip
+
+Starred macros do not take catcodes into account. They simply convert their textual arguments into arguments with catcodes 12 and 10, and call the non-starred macros with these modified arguments. For more information about this, read page~\pageref{macrosetoilees}.
+
+\section{The macros}
+\label{listemacros}
+\subsection{Presentation of macros}
+In the following chapters, all the macros will be presented this plan:\smallskip
+
+\begin{itemize}
+ \item the syntax and the value of optional arguments
+ \item a short description of the operation;
+ \item the operation under special conditions. For each conditions considered, the operation described has priority on that (those) below;
+ \item finally, several examples are given. I tried to find them most easily comprehensible and most representative of the situations met in normal use\footnote{For more examples, see the test file.}. If a doubt is possible with spaces in the result, this one will be delimited by \guill{|}, given that an empty string is represented by \guill{||}.
+\end{itemize}
+
+\subsection{The tests}
+\subsubsection{IfSubStr}
+\verb|\IfSubStr|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\ARGU{true}\ARGU{false}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+Tests if \argu{string} contains at least \argu{number} times \argu{stringA} and runs \argu{true} if so, and \argu{false} otherwise.\medskip
+
+\begin{Conditions}
+\item If \argu{number}${}\leqslant0$, runs \argu{false};
+\item If \argu{string} or \argu{stringA} is empty, runs \argu{false}.
+\end{Conditions}
+
+\exemple|\IfSubStr{xstring}{tri}{true}{false}|
+\exemple|\IfSubStr{xstring}{a}{true}{false}|
+\exemple|\IfSubStr{a bc def }{c d}{true}{false}|
+\exemple|\IfSubStr{a bc def }{cd}{true}{false}|
+\exemple|\IfSubStr[2]{1a2a3a}{a}{true}{false}|
+\exemple|\IfSubStr[3]{1a2a3a}{a}{true}{false}|
+\exemple|\IfSubStr[4]{1a2a3a}{a}{true}{false}|
+
+\subsubsection{IfSubStrBefore}
+\verb|\IfSubStrBefore|\etoile\arguCC{number1}{number2}\ARGU{string}\ARGU{stringA}\ARGU{stringB}\ARGU{true}\ARGU{false}
+\smallskip
+
+The values of the optional arguments \argu{number1} and \argu{number2} are 1 by default.\par\smallskip
+
+In \argu{string}, tests if the \argu{number1}\th{} occurrence of \argu{stringA} is on the left of the \argu{number2}\th{} occurrence of \argu{stringB}. Runs \argu{true} if so, and \argu{false} otherwise.\medskip
+
+\begin{Conditions}
+\item If one of the occurrences is not found, it runs \argu{false};
+\item If one of the arguments \argu{string}, \argu{stringA} or \argu{stringB} is empty, runs \argu{false};
+\item If one of the optional arguments is negative or zero, runs \argu{false}.
+\end{Conditions}
+
+\exemple|\IfSubStrBefore{xstring}{st}{in}{true}{false}|
+\exemple|\IfSubStrBefore{xstring}{ri}{s}{true}{false}|
+\exemple|\IfSubStrBefore{LaTeX}{LaT}{TeX}{true}{false}|
+\exemple|\IfSubStrBefore{a bc def }{ b}{ef}{true}{false}|
+\exemple|\IfSubStrBefore{a bc def }{ab}{ef}{true}{false}|
+\exemple|\IfSubStrBefore[2,1]{b1b2b3}{b}{2}{true}{false}|
+\exemple|\IfSubStrBefore[3,1]{b1b2b3}{b}{2}{true}{false}|
+\exemple|\IfSubStrBefore[2,2]{baobab}{a}{b}{true}{false}|
+\exemple|\IfSubStrBefore[2,3]{baobab}{a}{b}{true}{false}|
+
+\subsubsection{IfSubStrBehind}
+
+\verb|\IfSubStrBehind|\etoile\arguCC{number1}{number2}\ARGU{string}\ARGU{stringA}\ARGU{stringB}\ARGU{true}\ARGU{false}
+\smallskip
+
+The values of the optional arguments \argu{number1} and \argu{number2} are 1 by default.\par\smallskip
+
+In \argu{string}, tests if the \argu{number1}\th{} occurrence of \argu{stringA} is on the right of the \argu{number2}\th{} occurrence of \argu{stringB}. Runs \argu{true} if so, and \argu{false} otherwise.\medskip
+
+\begin{Conditions}
+\item If one of the occurrences is not found, it runs \argu{false};
+\item If one of the arguments \argu{string}, \argu{stringA} or \argu{stringB} is empty, runs \argu{false};
+\item If one of the optional arguments is negative or zero, runs \argu{false}.
+\end{Conditions}
+
+\exemple|\IfSubStrBehind{xstring}{ri}{xs}{true}{false}|
+\exemple|\IfSubStrBehind{xstring}{s}{i}{true}{false}|
+\exemple|\IfSubStrBehind{LaTeX}{TeX}{LaT}{true}{false}|
+\exemple|\IfSubStrBehind{a bc def }{ d}{a}{true}{false}|
+\exemple|\IfSubStrBehind{a bc def }{cd}{a b}{true}{false}|
+\exemple|\IfSubStrBehind[2,1]{b1b2b3}{b}{2}{true}{false}|
+\exemple|\IfSubStrBehind[3,1]{b1b2b3}{b}{2}{true}{false}|
+\exemple|\IfSubStrBehind[2,2]{baobab}{b}{a}{true}{false}|
+\exemple|\IfSubStrBehind[2,3]{baobab}{b}{a}{true}{false}|
+
+\subsubsection{IfBeginWith}
+
+\verb|\IfBeginWith|\etoile\ARGU{string}\ARGU{stringA}\ARGU{true}\ARGU{false}
+\smallskip
+
+Tests if \argu{string} begins with \argu{stringA}, and runs \argu{true} if so, and \argu{false} otherwise.\medskip
+
+\begin{Conditions}
+\item If \argu{string} or \argu{stringA} is empty, runs \argu{false}.
+\end{Conditions}
+
+\exemple|\IfBeginWith{xstring}{xst}{true}{false}|
+\exemple|\IfBeginWith{LaTeX}{a}{true}{false}|
+\exemple|\IfBeginWith{a bc def }{a b}{true}{false}|
+\exemple|\IfBeginWith{a bc def }{ab}{true}{false}|
+
+\subsubsection{IfEndWith}
+
+\verb|\IfEndWith|\etoile\ARGU{string}\ARGU{stringA}\ARGU{Behind}\ARGU{false}
+\smallskip
+
+Tests if \argu{string} ends with \argu{stringA}, and runs \argu{true} if so, and \argu{false} otherwise.\medskip
+
+\begin{Conditions}
+\item If \argu{string} or \argu{stringA} is empty, runs \argu{false}.
+\end{Conditions}
+
+\exemple|\IfEndWith{xstring}{ring}{true}{false}|
+\exemple|\IfEndWith{LaTeX}{a}{true}{false}|
+\exemple|\IfEndWith{a bc def }{ef }{true}{false}|
+\exemple|\IfEndWith{a bc def }{ef}{true}{false}|
+
+\subsubsection{IfInteger}
+
+\verb|\IfInteger|\etoile\ARGU{number}\ARGU{true}\ARGU{false}
+\smallskip
+
+Tests if \argu{number} is an integer, and runs \argu{true} if so, and \argu{false} otherwise.\smallskip
+
+If test is false because unexpected characters, the control sequence \verb|\@xs@afterinteger| contains the illegal part of \argu{number}.\medskip
+
+\exemple|\IfInteger{13}{true}{false}|
+\exemple|\IfInteger{-219}{true}{false}|
+\exemple|\IfInteger{+9}{true}{false}|
+\exemple|\IfInteger{3.14}{true}{false}|
+\exemple|\IfInteger{0}{true}{false}|
+\exemple|\IfInteger{49a}{true}{false}|
+\exemple|\IfInteger{+}{true}{false}|
+\exemple|\IfInteger{-}{true}{false}|
+\exemple|\IfInteger{0000}{true}{false}|
+
+\subsubsection{IfDecimal}\label{ifdecimal}
+
+\verb|\IfDecimal|\etoile\ARGU{number}\ARGU{true}\ARGU{false}
+\smallskip
+
+Tests if \argu{number} is a decimal, and runs \argu{true} if so, and \argu{false} otherwise.\smallskip
+
+Counters \verb|\integerpart| and \verb|\decimalpart| contain the integer part and decimal part of \argu{number}.
+
+If test is false because unexpected characters, the control sequence \verb|\@xs@afterdecimal| contains the illegal part of \argu{number}, whereas if test is false because decimal part is empty after decimal separator, it contains ''X``.\medskip
+
+\begin{Conditions}
+ \item Decimal separator can be a dot or a comma;
+ \item If what is on the right of decimal separator (if it exists) is empty, the test is false;
+ \item If what is on the left of decimal separator (if it exists) is empty, the integer part is assumed to be 0;
+\end{Conditions}
+
+\exemple|\IfDecimal{3.14}{true}{false}|
+\exemple|\IfDecimal{3,14}{true}{false}|
+\exemple|\IfDecimal{-0.5}{true}{false}|
+\exemple|\IfDecimal{.7}{true}{false}|
+\exemple|\IfDecimal{,9}{true}{false}|
+\exemple|\IfDecimal{1..2}{true}{false}|
+\exemple|\IfDecimal{+6}{true}{false}|
+\exemple|\IfDecimal{-15}{true}{false}|
+\exemple|\IfDecimal{1.}{true}{false}|
+\exemple|\IfDecimal{2,}{true}{false}|
+\exemple|\IfDecimal{.}{true}{false}|
+\exemple|\IfDecimal{,}{true}{false}|
+\exemple|\IfDecimal{+}{true}{false}|
+\exemple|\IfDecimal{-}{true}{false}|
+
+\subsubsection{IfStrEq}
+
+\verb|\IfStrEq|\etoile\ARGU{stringA}\ARGU{stringB}\ARGU{true}\ARGU{false}
+\smallskip
+
+Tests if the strings \argu{stringA} and \argu{stringB} are equal, i.e. if they contain successively the same characters in the same order. Runs \argu{true} if so, and \argu{false} otherwise.\smallskip
+
+\exemple|\IfStrEq{a1b2c3}{a1b2c3}{true}{false}|
+\exemple|\IfStrEq{abcdef}{abcd}{true}{false}|
+\exemple|\IfStrEq{abc}{abcdef}{true}{false}|
+\exemple|\IfStrEq{3,14}{3,14}{true}{false}|
+\exemple|\IfStrEq{12.34}{12.340}{true}{false}|
+\exemple|\IfStrEq{abc}{}{true}{false}|
+\exemple|\IfStrEq{}{abc}{true}{false}|
+\exemple|\IfStrEq{}{}{true}{false}|
+
+\subsubsection{IfEq}
+
+\verb|\IfEq|\etoile\ARGU{stringA}\ARGU{stringB}\ARGU{true}\ARGU{false}
+\smallskip
+
+Tests if the strings \argu{stringA} and \argu{stringB} are equal, \emph{except} if both \argu{stringA} and \argu{stringB} contain numbers in which case the macro tests if these numbers are equal. Runs \argu{true} if so, and \argu{false} otherwise.\smallskip
+
+\begin{Conditions}
+ \item The definition of \emph{number} is given with the macro \verb|IfDecimal| (see page~\pageref{ifdecimal}), and thus :
+ \item \guill{+} signs are optional;
+ \item Decimal separator can be a dot or a comma;
+ \item It is possible to evaluate an algebric expression with the $\varepsilon$-\TeX{} primitive \verb|\numexpr|, keeping in mind that it operate on integers only, and that results of divisions are \emph{rounded} and not truncated!
+\end{Conditions}
+
+\exemple|\IfEq{a1b2c3}{a1b2c3}{true}{false}|
+\exemple|\IfEq{abcdef}{ab}{true}{false}|
+\exemple|\IfEq{ab}{abcdef}{true}{false}|
+\exemple|\IfEq{12.34}{12,34}{true}{false}|
+\exemple|\IfEq{+12.34}{12.340}{true}{false}|
+\exemple|\IfEq{10}{+10}{true}{false}|
+\exemple|\IfEq{-10}{10}{true}{false}|
+\exemple|\IfEq{+0,5}{,5}{true}{false}|
+\exemple|\IfEq{1.001}{1.01}{true}{false}|
+\exemple|\IfEq{3*4+2}{14}{true}{false}|
+\exemple|\IfEq{\number\numexpr3*4+2}{14}{true}{false}|
+\exemple|\IfEq{0}{-0.0}{true}{false}|
+\exemple|\IfEq{}{}{true}{false}|
+
+\subsubsection{IfStrEqCase}
+
+\begin{minipage}{\textwidth}
+ \verb|\IfStrEqCase|\etoile\ARGU{string}\verb|{%|\par
+ \qquad\qquad\ARGU{string1}\ARGU{code1}\verb|%|\par
+ \qquad\qquad\ARGU{string2}\ARGU{code2}\verb|%|\par
+ \qquad\qquad\verb|etc...|\par
+ \qquad\qquad\ARGU{stringN}\ARGU{codeN}\verb|}|\arguC{other cases code}
+\end{minipage}
+\smallskip
+
+Tests successively if \argu{string} is equal to \argu{string1}, \argu{string2}, etc. Comparison is made with \verb|\IfStrEq| (see above). If the test $i$ is positive (the \argu{string} matches \argu{string\;$i$}), the macro runs \argu{code\;$i$} and ends. If all tests fail, the macro runs the optional \argu{other cases code}, if present.\smallskip
+
+\exemple|\IfStrEqCase{b}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple*|\IfStrEqCase{abc}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple|\IfStrEqCase{c}{{a}{AA}{b}{BB}{c}{CC}}[other]|
+\exemple|\IfStrEqCase{d}{{a}{AA}{b}{BB}{c}{CC}}[other]|
+\exemple|\IfStrEqCase{+3}{{1}{one}{2}{two}{3}{three}}[other]|
+\exemple|\IfStrEqCase{0.5}{{0}{zero}{.5}{half}{1}{one}}[other]|
+
+\subsubsection{IfEqCase}
+
+\begin{minipage}{\textwidth}
+ \verb|\IfEqCase|\etoile\ARGU{string}\verb|{%|\par
+ \qquad\qquad\ARGU{string1}\ARGU{code1}\verb|%|\par
+ \qquad\qquad\ARGU{string2}\ARGU{code2}\verb|%|\par
+ \qquad\qquad\verb|etc...|\par
+ \qquad\qquad\ARGU{stringN}\ARGU{codeN}\verb|}|\arguC{other cases code}
+\end{minipage}
+\smallskip
+
+Tests successively if \argu{string} is equal to \argu{string1}, \argu{string2}, etc. Comparison is made with \verb|\IEq| (see above). If the test $i$ is positive (the \argu{string} matches \argu{string\;$i$}), the macro runs \argu{code\;$i$} and ends. If all tests fail, the macro runs the optional \argu{other cases code}, if present.\smallskip
+
+\exemple|\IfEqCase{b}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple*|\IfEqCase{abc}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple|\IfEqCase{c}{{a}{AA}{b}{BB}{c}{CC}}[other]|
+\exemple|\IfEqCase{d}{{a}{AA}{b}{BB}{c}{CC}}[other]|
+\exemple|\IfEqCase{+3}{{1}{one}{2}{two}{3}{three}}[other]|
+\exemple|\IfEqCase{0.5}{{0}{zero}{.5}{half}{1}{one}}[other]|
+
+\subsection{Extraction of substrings}
+\subsubsection{StrBefore}
+
+\verb|\StrBefore|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\arguC{name}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+In \argu{string}, returns what is leftwards the \argu{number}\th{} occurrence of \argu{stringA}.\medskip
+
+\begin{Conditions}
+\item If \argu{string} or \argu{stringA} is empty, an empty string is returned;
+\item If \argu{number}${}<1$ then the macro behaves as if \argu{number}${}=1$;
+\item If the occurrence is not found, an empty string is returned.
+\end{Conditions}
+
+\exemple*|\StrBefore{xstring}{tri}|
+\exemple*|\StrBefore{LaTeX}{e}|
+\exemple*|\StrBefore{LaTeX}{p}|
+\exemple*|\StrBefore{LaTeX}{L}|
+\exemple*|\StrBefore{a bc def }{def}|
+\exemple*|\StrBefore{a bc def }{cd}|
+\exemple*|\StrBefore[1]{1b2b3}{b}|
+\exemple*|\StrBefore[2]{1b2b3}{b}|
+
+\subsubsection{StrBehind}
+
+\verb|\StrBehind|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\arguC{name}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+In \argu{string}, returns what is rightwards the \argu{number}\th{} occurrence of \argu{stringA}.\medskip
+
+\begin{Conditions}
+\item If \argu{string} or \argu{stringA} is empty, an empty string is returned;
+\item If \argu{number}${}<1$ then the macro behaves as if \argu{number}${}=1$;
+\item If the occurrence is not found, an empty string is returned.
+\end{Conditions}
+
+
+\exemple*|\StrBehind{xstring}{tri}|
+\exemple*|\StrBehind{LaTeX}{e}|
+\exemple*|\StrBehind{LaTeX}{p}|
+\exemple*|\StrBehind{LaTeX}{X}|
+\exemple*|\StrBehind{a bc def }{bc}|
+\exemple*|\StrBehind{a bc def }{cd}|
+\exemple*|\StrBehind[1]{1b2b3}{b}|
+\exemple*|\StrBehind[2]{1b2b3}{b}|
+\exemple*|\StrBehind[3]{1b2b3}{b}|
+
+\subsubsection{StrBetween}
+
+\verb|\StrBetween|\etoile\arguCC{number1}{number2}\ARGU{string}\ARGU{stringA}\ARGU{stringB}\arguC{name}
+\smallskip
+
+The values of the optional arguments \argu{number1} and \argu{number2} are 1 by default.\par\smallskip
+
+In \argu{string}, returns the substring between\footnote{In a strict sense, i.e. \emph{without} the strings \argu{stringA} and \argu{stringB}} the \argu{number1}\th{} occurrence of \argu{stringA} and \argu{number2}\th{} occurrence of \argu{stringB}.\medskip
+
+\begin{Conditions}
+\item If the occurrences are not in this order ---~\argu{stringA} \emph{followed by} \argu{stringB}~--- in \argu{string}, an empty string is returned;
+\item If one of the 2 occurrences doesn't exist in \argu{string}, an empty string is returned;
+\item If one of the optional arguments \argu{number1} ou \argu{number2} is negative or zero, an empty string is returned.
+\end{Conditions}
+
+\exemple*|\StrBetween{xstring}{xs}{ng}|
+\exemple*|\StrBetween{xstring}{i}{n}|
+\exemple*|\StrBetween{xstring}{a}{tring}|
+\exemple*|\StrBetween{a bc def }{a}{d}|
+\exemple*|\StrBetween{a bc def }{a }{f}|
+\exemple*|\StrBetween{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[2,3]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[1,3]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[3,1]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[3,2]{abracadabra}{a}{bra}|
+
+\subsubsection{StrSubstitute}
+
+\verb|\StrSubstitute|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\ARGU{stringB}\arguC{name}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+In \argu{string}, substitute the \argu{number} first occurrences of \argu{stringA} for \argu{stringB}, except if \argu{number}${}=0$ in which case \emph{all} the occurrences are substituted.
+
+\begin{Conditions}
+\item If \argu{string} is empty, an empty string is returned;
+\item If \argu{stringA} is empty or doesn't exist in \argu{string}, the macro is ineffective;
+\item If \argu{number} is greater than the number of occurrences of \argu{stringA}, then all the occurrences are substituted;
+\item If \argu{number}${}<0$ the macro behaves as if \argu{number}${}=0$;
+\item If \argu{stringB} is empty, the occurrences of \argu{stringA}, if they exist, are deleted.
+\end{Conditions}
+
+\exemple|\StrSubstitute{xstring}{i}{a}|
+\exemple|\StrSubstitute{abracadabra}{a}{o}|
+\exemple|\StrSubstitute{abracadabra}{br}{TeX}|
+\exemple|\StrSubstitute{LaTeX}{m}{n}|
+\exemple|\StrSubstitute{a bc def }{ }{M}|
+\exemple|\StrSubstitute{a bc def }{ab}{AB}|
+\exemple|\StrSubstitute[1]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[2]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[3]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[4]{a1a2a3}{a}{B}|
+
+\subsubsection{StrDel}
+
+\verb|\StrDel|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\arguC{name}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+Delete the \argu{number} first occurrences of \argu{stringA} in \argu{string}, except if \argu{number}${}=0$ in which case \emph{all} the occurrences are deleted.\medskip
+
+\begin{Conditions}
+\item If \argu{string} is empty, an empty string is returned;
+\item If \argu{stringA} is empty or doesn't exist in \argu{string}, the macro is ineffective;
+\item If \argu{number} greater then the number of occurrences of \argu{stringA}, then all the occurrences are deleted;
+\item If \argu{number}${}<0$ the macro behaves as if \argu{number}${}=0$;
+\end{Conditions}
+
+\exemple|\StrDel{abracadabra}{a}|
+\exemple|\StrDel[1]{abracadabra}{a}|
+\exemple|\StrDel[4]{abracadabra}{a}|
+\exemple|\StrDel[9]{abracadabra}{a}|
+\exemple|\StrDel{a bc def }{ }|
+
+\subsubsection{StrSplit}
+\verb|\StrSplit|\etoile\ARGU{string}\ARGU{number}\ARGU{csA}\ARGU{csB}
+\smallskip
+
+The \argu{string}, is splitted after the character at position \argu{number}. The left part is assigned to the control sequence \argu{csA} and the right part is assigned to \argu{csB}.\par
+This macro returns two strings, so it does \emph{not} display anything. Consequently, it does not provide the optional argument in last position.\medskip
+
+\begin{Conditions}
+ \item If \argu{number}${}\leqslant0$, \argu{csA} is empty and \argu{csB} is equal to \argu{string};
+ \item If \argu{number}${}\geqslant$\argu{lengthString}, \argu{csA} is equal to \argu{string} and \argu{csB} is empty;
+ \item If \argu{string} is empty, \argu{csA} and \argu{csB} are empty, whatever be the integer \argu{number}.
+\end{Conditions}
+
+\setverbdelim{=}
+\exemple=\StrSplit{abcdef}{4}{\aa}{\bb}results: |\aa| and |\bb|=
+\exemple=\StrSplit{a b c }{2}{\aa}{\bb}results: |\aa| and |\bb|=
+\exemple=\StrSplit{abcdef}{1}{\aa}{\bb}results: |\aa| and |\bb|=
+\exemple=\StrSplit{abcdef}{5}{\aa}{\bb}results: |\aa| and |\bb|=
+\exemple=\StrSplit{abcdef}{9}{\aa}{\bb}results: |\aa| and |\bb|=
+\exemple=\StrSplit{abcdef}{-3}{\aa}{\bb}results: |\aa| and |\bb|=
+\setverbdelim{|}
+
+\subsubsection{StrGobbleLeft}
+
+\verb|\StrGobbleLeft|\etoile\ARGU{string}\ARGU{number}\arguC{name}
+\smallskip
+
+In \argu{string}, delete the \argu{number} first characters on the left.\medskip
+
+\begin{Conditions}
+\item If \argu{string} is empty, an empty string is returned;
+\item If \argu{number}${}\leqslant0$, no character is deleted;
+\item If \argu{number}${}\geqslant{}$\argu{lengthString}, all the characters are deleted.
+\end{Conditions}
+
+\exemple*|\StrGobbleLeft{xstring}{2}|
+\exemple*|\StrGobbleLeft{xstring}{9}|
+\exemple*|\StrGobbleLeft{LaTeX}{4}|
+\exemple*|\StrGobbleLeft{LaTeX}{-2}|
+\exemple*|\StrGobbleLeft{a bc def }{4}|
+
+\subsubsection{StrLeft}
+
+\verb|\StrLeft|\etoile\ARGU{string}\ARGU{number}\arguC{name}
+\smallskip
+
+In \argu{string}, returns the \argu{number} first characters on the left.\medskip
+
+\begin{Conditions}
+\item If \argu{string} is empty, an empty string is returned;
+\item If \argu{number}${}\leqslant0$, no character is returned;
+\item If \argu{number}${}\geqslant{}$\argu{lengthString}, all the characters are returned.
+\end{Conditions}
+
+\exemple*|\StrLeft{xstring}{2}|
+\exemple*|\StrLeft{xstring}{9}|
+\exemple*|\StrLeft{LaTeX}{4}|
+\exemple*|\StrLeft{LaTeX}{-2}|
+\exemple*|\StrLeft{a bc def }{5}|
+
+\subsubsection{StrGobbleRight}
+
+\verb|\StrGobbleRight|\etoile\ARGU{string}\ARGU{number}\arguC{name}
+\smallskip
+
+In \argu{string}, delete the \argu{number} last characters on the right.\medskip
+
+\exemple*|\StrGobbleRight{xstring}{2}|
+\exemple*|\StrGobbleRight{xstring}{9}|
+\exemple*|\StrGobbleRight{LaTeX}{4}|
+\exemple*|\StrGobbleRight{LaTeX}{-2}|
+\exemple*|\StrGobbleRight{a bc def }{4}|
+
+\subsubsection{StrRight}
+
+\verb|\StrRight|\etoile\ARGU{string}\ARGU{number}\arguC{name}
+\smallskip
+
+In \argu{string}, returns the \argu{number} last characters on the right.\medskip
+
+\exemple*|\StrRight{xstring}{2}|
+\exemple*|\StrRight{xstring}{9}|
+\exemple*|\StrRight{LaTeX}{4}|
+\exemple*|\StrRight{LaTeX}{-2}|
+\exemple*|\StrRight{a bc def }{5}|
+
+\subsubsection{StrChar}
+
+\verb|\StrChar|\etoile\ARGU{string}\ARGU{number}\arguC{name}
+\smallskip
+
+Returns the character at the position \argu{number} in \argu{string}.\medskip
+
+\begin{Conditions}
+\item If \argu{string} is empty, no caracter is returned;
+\item If \argu{number}${}\leqslant0$ or if \argu{number}${}>{}$\argu{lengthString}, no character is returned.
+\end{Conditions}
+
+\exemple|\StrChar{xstring}{4}|
+\exemple*|\StrChar{xstring}{9}|
+\exemple*|\StrChar{xstring}{-5}|
+\exemple|\StrChar{a bc def }{6}|
+
+\subsubsection{StrMid}
+
+\verb|\StrMid|\etoile\ARGU{string}\ARGU{numberA}\ARGU{numberB}\arguC{name}
+\smallskip
+
+In \argu{string}, returns the substring between\footnote{In the broad sense, i.e. that the strings characters of the \guill{border} are returned.} the positions \argu{numberA} and \argu{numberB}.\medskip
+
+\begin{Conditions}
+\item If \argu{string} is empty, an empty string is returned;
+\item If \argu{numberA}${}>{}$\argu{numberB}, an empty string is returned;
+\item If \argu{numberA}${}<1$ and \argu{numberB}${}<1$ an empty string is returned;
+\item If \argu{numberA}${}>{}$\argu{lengthString} et \argu{numberB}${}>{}$\argu{lengthString}, an empty string is returned;
+\item If \argu{numberA}${}<1$, the macro behaves as if \argu{numberA}${}=1$;
+\item If \argu{numberB}${}>{}$\argu{lengthString}, the macro behaves as if \argu{numberB}${}={}$\argu{lengthString}.
+\end{Conditions}
+
+\exemple|\StrMid{xstring}{2}{5}|
+\exemple|\StrMid{xstring}{-4}{2}|
+\exemple*|\StrMid{xstring}{5}{1}|
+\exemple|\StrMid{xstring}{6}{15}|
+\exemple|\StrMid{xstring}{3}{3}|
+\exemple*|\StrMid{a bc def }{2}{7}|
+
+\subsection{Number results}
+\subsubsection{StrLen}
+
+\verb|\StrLen|\etoile\ARGU{string}\arguC{name}
+\smallskip
+
+Return the length of \argu{string}.
+
+\exemple|\StrLen{xstring}|
+\exemple|\StrLen{A}|
+\exemple|\StrLen{a bc def }|
+
+\subsubsection{StrCount}
+
+\verb|\StrCount|\etoile\ARGU{string}\ARGU{stringA}\arguC{name}
+\smallskip
+
+Counts how many times \argu{stringA} is contained in \argu{string}.\par\medskip
+
+\begin{Conditions}
+\item If one at least of the arguments \argu{string} or \argu{stringA} is empty, the macro return 0.
+\end{Conditions}
+
+\exemple|\StrCount{abracadabra}{a}|
+\exemple|\StrCount{abracadabra}{bra}|
+\exemple|\StrCount{abracadabra}{tic}|
+\exemple|\StrCount{aaaaaa}{aa}|
+
+\subsubsection{StrPosition}
+
+\verb|\StrPosition|\etoile\arguC{number}\ARGU{string}\ARGU{stringA}\arguC{name}
+\smallskip
+
+The value of the optional argument \argu{number} is 1 by default.\par\smallskip
+
+In \argu{string}, returns the position of the \argu{number}\th{} occurrence of \argu{stringA}.\medskip
+
+\begin{Conditions}
+\item If \argu{number} is greater than the number of occurrences of \argu{stringA}, then the macro returns 0;
+\item If \argu{string} doesn't contain \argu{stringA}, then the macro returns 0.
+\end{Conditions}
+\medskip
+
+\exemple|\StrPosition{xstring}{ring}|
+\exemple|\StrPosition[4]{abracadabra}{a}|
+\exemple|\StrPosition[2]{abracadabra}{bra}|
+\exemple|\StrPosition[9]{abracadabra}{a}|
+\exemple|\StrPosition{abracadabra}{z}|
+\exemple|\StrPosition{a bc def }{d}|
+\exemple|\StrPosition[3]{aaaaaa}{aa}|
+
+\subsubsection{StrCompare}
+\verb|\StrCompare|\etoile\ARGU{stringA}\ARGU{stringB}\arguC{name}
+\smallskip
+
+This macro has 2 tolerances: the ''normal`` tolerance, used bu default, and the ''strict`` tolerance.\medskip
+
+\begin{itemize}
+ \item The normal tolerance, activated with \verb|\comparenormal|.\par
+ The macro compares characters from left to right in \argu{stringA} and \argu{stringB} until a difference appears or the end of the shortest string is reached. The position of the first difference is returned and if no difference is found, the macro return 0.
+ \item The strict tolerance, activated with \verb|\comparestrict|.\par
+ The macro compares the 2 strings. If they are equal, it returns 0. If not, the position of the first difference is returned.
+\end{itemize}
+\smallskip
+
+Examples with the normal tolerance:\par\comparenormal
+\exemple|\StrCompare{abcd}{abcd}|
+\exemple|\StrCompare{abcd}{abc}|
+\exemple|\StrCompare{abc}{abcd}|
+\exemple|\StrCompare{éùçà}{éùçà}|
+\exemple|\StrCompare{a b c}{abc}|
+\exemple|\StrCompare{aaa}{baaa}|
+\exemple|\StrCompare{abc}{xyz}|
+\exemple|\StrCompare{123456}{123457}|
+\exemple|\StrCompare{abc}{}|
+\medskip
+
+Examples with the strict tolerance:\par\comparestrict
+\exemple|\StrCompare{abcd}{abcd}|
+\exemple|\StrCompare{abcd}{abc}|
+\exemple|\StrCompare{abc}{abcd}|
+\exemple|\StrCompare{éùçà}{éùçà}|
+\exemple|\StrCompare{a b c}{abc}|
+\exemple|\StrCompare{aaa}{baaa}|
+\exemple|\StrCompare{abc}{xyz}|
+\exemple|\StrCompare{123456}{123457}|
+\exemple|\StrCompare{abc}{}|
+\comparenormal
+
+\section{Using the macros for programming purposes}
+\label{programmation}
+\subsection{Verbatimize to a control sequence}
+The macro \verb|\verbtocs| allow to read the content of a \guill{verb} argument containing special characters: \verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| et \verb|%|. The catcodes of \guill{normal} characters are left unchanged while special characters take a catcode 12. Then, these characters are assigned to a control sequence. The syntax is:\medskip
+
+\hfill\verb|\verbtocs|\ARGU{name}|\argu{characters}|\hfill{}
+\smallskip
+
+\argu{name} is the name of the control sequence receiving, with an \verb|\edef|, the \argu{characters}. Consequently, \argu{name} contains \texte{10,11,12}\voirdeftexte.\medskip
+
+By default, the character delimiting the verb content is \guill{|}. Obviously, this character cannot be both delimiting and being contained into what it delimits. If you need to verbatimize characters containing \guill{|}, you can change at any time the character delimiting the verb content with the macro:\par\medskip
+\hfill\verb|\setverbdelim|\ARGU{character}\hfill{}\smallskip
+
+Any \argu{character} with a catcode 11 or 12 can be used\footnote{Several characters can be used, but the syntax of \texttt{\textbackslash verbtocs} becomes less readable ! For this reason, a warning occurs when the argument of \texttt{\textbackslash setverbdelim} contains more than a single character.}. For example, after \verb|\setverbdelim{=}|, a verb argument look like this: \verb|=|\argu{characters}\verb|=|.\medskip
+
+About verb arguments, keep in mind that:
+\begin{itemize}
+ \item all the characters before |\argu{characters}| are ignored;
+ \item inside the verb argument, all the spaces are taken into account, even if they are consecutive.
+\end{itemize}
+\medskip
+
+Example:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\result} |a & b{ c% d$ e \f|
+ \result
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\result} |a & b{ c% d$ e \f|
+ \result
+\end{minipage}
+
+\subsection{Tokenization of a text to a control sequence}
+
+The reverse process of what has been seen above is to transform a \texte{10,11,12} into control sequences. This is done by the macro:\medskip
+
+\hfill\verb|\tokenize|\ARGU{name}\ARGU{control sequence}\hfill{}
+\smallskip
+
+\argu{control sequence} is fully expanded if \verb|\fullexpandarg| has been called (see page~\pageref{devarg}), and is not expanded if \verb|\normalexpandarg| has benn called. In both cases, the expansion must be \texte{10,11,12}. Then, this \texte{10,11,12} is converted into tokens and assigned with a \verb|\def| to the control sequence \argu{name}.\medskip
+
+Example:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\text}|\textbf{a} $\frac{1}{2}$|
+ text: \text
+ \tokenize{\result}{\text}
+ \par
+ result: \result
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \raggedright
+ \verbtocs{\text}
+ |\textbf{a} $\frac{1}{2}$|
+ text: \text
+ \tokenize{\result}{\text}
+ \par
+ result: \result
+\end{minipage}
+\medskip
+
+Obviously, the control sequence \verb|\result| can be called at the last line since the control sequences it contains are defined.
+
+\subsection{Expansion of a control sequence before verbatimize}
+\subsubsection{The scancs macro}
+It is possible to expand $n$ times a control sequence before converting this expansion into text. This is done by the macro:\medskip
+
+\hfill\verb|\scancs|\arguC{number}\ARGU{name}\ARGU{control sequence}\hfill{}
+\smallskip
+
+\argu{number}${}=1$ by default and represents the number of times \argu{control sequence} will be expanded before being converted in characters with catcodes 12 (or 10 for spaces). These characters are then assigned to \argu{name}.
+
+\subsubsection{Mind the catcodes !}
+Let's take a simple example where \argu{control sequence} expands to text:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\test{a b1 d}
+ \scancs{\result}{\test}
+ \resultat
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\test{a b1 d}
+ \scancs{\result}{\test}
+ \result
+\end{minipage}
+\medskip
+
+But mind the catcodes !
+
+In this example, \verb|\scancs{\result}{\test}| is not equivalent to \verb|\edef\result{\test}|.\medskip
+
+Indeed, with \verb|\scancs{\resultat}{\test}|, \verb|\result| contains \texte{10,12} and expands to:\par
+\hfill\verb|a|${}_{12}$\ \verb*| |${}_{10}$\ \verb|b|${}_{12}$\ \verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|d|${}_{12}$\hfill{}
+\medskip
+
+With \verb|\edef\resultat{\test}|, \verb|\resultat| contains \texte{10,11,12}, i.e. characters whose catcodes are 11 (the letters), 12 (the figure 1) and 10 (the spaces). It expands to:\par
+\hfill\verb|a|${}_{11}$\ \verb*| |${}_{10}$\ \verb|b|${}_{11}$\ \verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|d|${}_{11}$\hfill{}
+
+\subsubsection{Depth of expansion}
+If necessary, the number of expansions can be controled with the optional argument.
+In the following example, when \verb|\scancs| is called the first time, \verb|\c| is expanded 3 times and gives "\verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|z|${}_{11}$\ \verb*| |${}_{10}$\ \verb|3|${}_{12}$" which is converted into "\verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|z|${}_{12}$\ \verb*| |${}_{10}$\ \verb|3|${}_{12}$".\smallskip
+
+On the other hand, if after $n$ expansions, the result is a control sequence, this control sequence is transformed into characters with catcodes 12.
+In the example above, when \verb|\scancs| is called the second time, \verb|\scancs[2]{\resultat}{\c}| expands \verb|\c| 2 times: this gives the control sequence \fbox{\texttt{\textbackslash a}} which is converted into "\verb|\|${}_{12}$~\verb|a|${}_{12}$".\medskip
+
+This example show all the "depths" of expansion, from 3 to 0:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{1 z 3}
+ \def\b{\a}
+ \def\c{\b}
+ \scancs[3]{\result}{\c}
+ \result\par
+ \scancs[2]{\result}{\c}
+ \result\par
+ \scancs[1]{\result}{\c}
+ \result\par
+ \scancs[0]{\result}{\c}
+ \result
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{1 z 3}
+ \def\b{\a}
+ \def\c{\b}
+ \scancs[3]{\result}{\c}
+ \result\par
+ \scancs[2]{\result}{\c}
+ \result\par
+ \scancs[1]{\result}{\c}
+ \result\par
+ \scancs[0]{\result}{\c}
+ \result
+\end{minipage}
+\medskip
+
+Obviously, it is necessary to ensure that the expansion to the desired depth is possible.
+
+\subsubsection{Expansion of several control sequences}
+In normal use, the third argument \argu{control sequence} (or one of its expansions) must contain a single control sequence that will be expanded. If this third argument or one of its expansion contains several control sequences, compilation stops with an error message asking you to use the starred version. This starred version, more difficult to use allows to expand \argu{number} times \emph{all} the control sequences contained in the third argument. Let's see this with this example:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{LaTeX}
+ \def\b{is powerful}
+ \scancs*[1]{\result}{\a \b}
+ \result\par
+ \scancs*[2]{\result}{\a\space\b}
+ \result
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{LaTeX}
+ \def\b{is powerful}
+ \scancs*[1]{\result}{\a \b}
+ \result\par
+ \scancs*[2]{\result}{\a\space\b}
+ \result
+\end{minipage}
+\medskip
+
+First of all, a warning message has been sent to log: "if third argument or its expansion have braces or spaces, they will be removed when scanned! Use starred \verb|\scancs*| macro with care". Let's see what it means\ldots\medskip
+
+In the first result, a space is missing between the words \guill{LaTeX} and \guill{is}, though a space was present in the code between the 2 control sequences \verb|\a| and \verb|\b|. Indeed, \TeX{} ignores spaces that follow control sequences. Consequently, \verb|{\a \b}| is read as \verb|{\a\b}|, whatever be the number of spaces in the code between \verb|\a| and \verb|\b|. To obtain a space between \guill{LaTeX} and \guill{is}, we could have used the control sequence \verb|\space| whose expansion is a space, and write for the third argument: \verb|{\a\space\b}|. We could also have modified the defintion of \verb|\a| with a space after the word "LaTeX" like this: \verb|\def\a{LaTeX }|.\medskip
+
+However, it is necessary to be carfull when expanding control sequences more than one time: if a control sequence is expanded $n$ times and gives \texte{10,11,12}, the next expansion gobbles spaces. The second result shows that the second expansion gobbled all the spaces and consequently, \verb|\result| contains \guill{LaTeXispowerful}!\medskip
+
+Moreover, it's also the meaning of the warning message, if the $n$\th{} expansion of a control sequence contains braces, they will be gobbled, like spaces.\medskip
+
+Finaly, when using \verb|\scancs| a space is inserted after each control sequence. Indeed, \verb|\detokenize| (an $\varepsilon$-\TeX{} command) called by \verb|\scancs| inserts a space after each control sequence. There is no way to avoid this.
+
+\subsubsection{Examples}
+In the following example, control sequences are expanded 2 times: \verb|\d| gives \verb|\b|, and \verb|\b| gives\\\verb|\textbf{a}\textit{b}|. Notice that a space is inserted after each control sequence.\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{\textbf{a}\textit{b}}
+ \def\b{\a}
+ \def\c{\b}
+ \def\d{\c}
+ \scancs*[2]{\result}{\d\b}
+ \result
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{\textbf{a}\textit{b}}
+ \def\b{\a}
+ \def\c{\b}
+ \def\d{\c}
+ \scancs*[2]{\result}{\d\b}
+ \result
+\end{minipage}
+\medskip
+
+This is an example that shows the deletion of braces during the next expansion:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{1{2}}
+ \def\b{\a}
+ \scancs*[1]{\result}{\b{A}}
+ \result\par
+ \scancs*[2]{\result}{\b{A}}
+ \result\par
+ \scancs*[3]{\result}{\b{A}}
+ \result\par
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{1{2}}
+ \def\b{\a}
+ \scancs*[1]{\result}{\b{A}}
+ \result\par
+ \scancs*[2]{\result}{\b{A}}
+ \result\par
+ \scancs*[3]{\result}{\b{A}}
+ \result\par
+\end{minipage}
+\medskip
+
+Finaly, here is an example where we take advantage of the space inserted after each sequence control to find the $n$\th{} control sequence in the expansion of a control sequence.\medskip
+
+In the example above, we find the fourth control sequence in \verb|\myCS| whose expansion is:\par\medskip
+\hfill\verb|\a xy{3 2}\b7\c123 {m}\d{8}\e|\hfill{}
+\medskip
+
+Obviously, we expect: \verb|\d|\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\antislash}|\|
+ \newcommand\findcs[2]{%
+ \scancs[1]{\theCS}{#2}%
+ \tokenize{\theCS}{\theCS}%
+ \scancs[1]{\theCS}{\theCS}%
+ \StrBehind[#1]{\theCS}{\antislash}[\theCS]%
+ \StrBefore{\theCS}{ }[\theCS]%
+ \edef\theCS{\antislash\theCS}}
+ \verbtocs{\myCS}|\a xy{3 2}\b7\c123 {m}\d{8}\e|
+ % here, \myCS contains text
+ \findcs{4}{\myCS}
+ \theCS\par
+ \def\myCS{\a xy{3 2}\b7\c123 {m}\d{8}\e}
+ % here, \myCS contains control sequences
+ \findcs{4}{\myCS}
+ \theCS
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\antislash}|\|
+ \newcommand\findcs[2]{%
+ \scancs[1]{\theCS}{#2}%
+ \tokenize{\theCS}{\theCS}%
+ \scancs[1]{\theCS}{\theCS}%
+ \StrBehind[#1]{\theCS}{\antislash}[\theCS]%
+ \StrBefore{\theCS}{ }[\theCS]%
+ \edef\theCS{\antislash\theCS}}
+ \verbtocs{\myCS}|\a xy{3 2}\b7\c123 {m}\d{8}\e|
+ % here, \myCS contains text
+ \findcs{4}{\myCS}
+ \theCS\par
+ \def\myCS{\a xy{3 2}\b7\c123 {m}\d{8}\e}
+ % here, \myCS contains control sequences
+ \findcs{4}{\myCS}
+ \theCS
+\end{minipage}
+
+\subsection{Inside the definition of a macro}
+Some difficulties arise inside the definition of a macro, i.e. between braces following a \verb|\def\macro| or a\\\verb|\newcommand\macro|.\medskip
+
+It is forbidden to use the command \verb|\verb| inside the definition of a macro. For the same reasons:\par\medskip
+\hfill\textbf{Do not use \texttt{\textbackslash verbtocs} inside the definition of a macro}.\hfill{}\medskip
+
+But then, how to manipulate special characters and "verbatimize" inside the définition of macros ?\bigskip
+
+The \verb|\detokenize| primitive of $\varepsilon$-\TeX can be used but it has limitations:
+\begin{itemize}
+ \item braces must be balanced;
+ \item consecutive spaces make a single space;
+ \item the \verb|%| sign is not allowed;
+ \item a space is inserted after each control sequence;
+ \item \verb|#| signs become \verb|##|.
+\end{itemize}
+\medskip
+
+It is better to use \verb|\scancs| and define \emph{outside the definition of the macros} control sequences containing special characters with \verb|\verbtocs|. It is also possible to use \verb|\tokenize| to transform the final result (which is generaly \texte{10,11,12}) into control sequences. See example using these macros at the end of this manual, page~\pageref{exemples}.\medskip
+
+In the following teaching example\footnote{It is possible to make much more simple using \texttt{\textbackslash detokenize}. The macro becomes:\par\texttt{\textbackslash newcommand\textbackslash bracearg[1]\{\textbackslash detokenize\{\{\#1\}\}\}}}, the macro \verb|\bracearg| adds braces to its argument. To make this possible, 2 control sequences \verb|\Ob| and \verb|\Cb| containing "\verb|{|" and "\verb|}|" are defined outside the definition of \verb|\bracearg|, and expanded inside it:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\Ob}|{|
+ \verbtocs{\Cb}|}|
+ \newcommand\bracearg[1]{%
+ \def\text{#1}%
+ \scancs*{\result}{\Ob\text\Cb}%
+ \result}
+ \bracearg{xstring}\par
+ \bracearg{\a}
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\Ob}|{|
+ \verbtocs{\Cb}|}|
+ \newcommand\bracearg[1]{%
+ \def\text{#1}%
+ \scancs*{\result}{\Ob\text\Cb}%
+ \result}
+ \bracearg{xstring}\par
+ \bracearg{\a}
+\end{minipage}
+
+\subsection{Starred macros}\label{macrosetoilees}
+Commands manipulating strings take catcodes of characters into account. To prevent any differences between catcode and then avoid unexpected results, all these macros have starred version. Starred macros convert their textual arguments into arguments with catcode 12 and 10 and call the non-starred macros with these modified arguments.\medskip
+
+Here is an example:\par\smallskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \IfStrEq{\string a\string b}{ab}{true}{false}\par
+ \IfStrEq*{\string a\string b}{ab}{true}{false}
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \IfStrEq{\string a\string b}{ab}{true}{false}\par
+ \IfStrEq*{\string a\string b}{ab}{true}{false}
+\end{minipage}\smallskip
+
+In this example, the first argument expands into \verb|{ab}| where, because of \verb|\string|, both characters have a catcode 12. The second argument is \verb|{ab}| where characters have their natural catcode 11. The strings are \emph{not equal} because of unmatching catcodes. Therefore, the test is negative. It is positive only with the starred macro.\medskip
+
+Here is an other ewample :\par\smallskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \scancs[0]\mytext{abc}
+ \StrPosition{\mytext}{b}\par
+ \StrPosition*{\mytext}{b}\par
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \scancs[0]\mytext{abc}
+ \StrPosition{\mytext}{b}\par
+ \StrPosition*{\mytext}{b}\par
+\end{minipage}\medskip
+
+The control sequence \verb|\mytext| contains \verb|{abc}| with catcodes 12 : indeed, \verb|\scancs| returns strings with catcodes 12 and 10 for space. Logically, the non-starred macro return 0 which means that it considers that the character ''\verb|b|${}_{11}$`` is not contained in the string ''\verb|a|${}_{12}$\verb|b|${}_{12}$\verb|c|${}_{12}$``. The starred macro behaves as expected and returns the correct position.\bigskip
+
+For the macros returning a string, if the starred version is used, the result will be a string with characters' catcode 12 and 10 fot space. For example, after ''\verb|\StrBefore*{a b c d}{c}[\mytext]|``, the expansion of the control sequence \verb|\mytext| will be ''\verb|a|${}_{12}$\verb*| |${}_{10}$\verb|b|${}_{12}$\verb*| |${}_{10}$``.
+
+\subsection{Examples}
+\label{exemples}
+Here are some very simple examples involving the macros of this package in programming purposes.
+
+\subsubsection{Example 1}
+We want to substitute the 2 first \verb|\textit| by \verb|\textbf| in the control sequence \verb|\myCS| winch contains \par\smallskip
+\hfill\verb|\textit{A}\textit{B}\textit{C}|\hfill{}
+\medskip
+
+We expect: \textbf{A}\textbf{B}\textit{C}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\myCS{\textit{A}\textit{B}\textit{C}}
+ \scancs[1]{\text}{\myCS}
+ \StrSubstitute*[2]{\text}{textit}{textbf}[\text]
+ \tokenize{\myCS}{\text}
+ \myCS
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\myCS{\textit{A}\textit{B}\textit{C}}
+ \scancs[1]{\text}{\myCS}
+ \StrSubstitute*[2]{\text}{textit}{textbf}[\text]
+ \tokenize{\myCS}{\text}
+ \myCS
+\end{minipage}
+
+\subsubsection{Example 2}
+Let's try to write a macro \verb|\tofrac| that transforms an argument of this type \guill{a/b} into \guill{$\frac{a}{b}$}:\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\csfrac}|\frac|%
+ \verbtocs{\Ob}|{|%
+ \verbtocs{\Cb}|}|%
+ \newcommand\tofrac[1]{%
+ \scancs[0]{\myfrac}{#1}%
+ \StrBefore{\myfrac}{/}[\num]%
+ \StrBehind{\myfrac}{/}[\den]%
+ \tokenize\myfrac{\csfrac\Ob\num\Cb\Ob\den\Cb}%
+ $\myfrac$}
+ \tofrac{15/9}
+ \tofrac{u_{n+1}/u_n}
+ \tofrac{a^m/a^n}
+ \tofrac{x+\sqrt{x}/\sqrt{x^2+x+1}}
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\csfrac}|\frac|%
+ \verbtocs{\Ob}|{|%
+ \verbtocs{\Cb}|}|%
+ \newcommand\tofrac[1]{%
+ \scancs[0]{\myfrac}{#1}%
+ \StrBefore{\myfrac}{/}[\num]%
+ \StrBehind{\myfrac}{/}[\den]%
+ \tokenize\myfrac{\csfrac\Ob\num\Cb\Ob\den\Cb}%
+ $\myfrac$}
+ \tofrac{15/9}
+ \tofrac{u_{n+1}/u_n}
+ \tofrac{a^m/a^n}
+ \tofrac{x+\sqrt{x}/\sqrt{x^2+x+1}}
+\end{minipage}
+
+\subsubsection{Example 3}
+In a control sequence \verb|\text|, let's try to write in bold the first word that follows the word "new". In this example, \verb|\text| contains:\par\medskip
+\hfill\verb|Try the new package xstring !|\hfill{}\bigskip
+\setverbdelim{|}
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\text{Try the new package xstring !}
+ \def\word{new}
+ \StrBehind[1]{\text}{\word}[\name]
+ \IfBeginWith{\name}{ }%
+ {\StrGobbleLeft{\name}{1}[\name]}%
+ {}%
+ \StrBefore{\name}{ }[\name]
+ \verbtocs{\before}|\textbf{|
+ \verbtocs{\after}|}|
+ \StrSubstitute[1]%
+ {\text}{\name}{\before\name\after}[\text]
+ \tokenize{\text}{\text}
+ \text
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\text{Try the new package xstring !}
+ \def\word{new}
+ \StrBehind[1]{\text}{\word}[\name]
+ \IfBeginWith{\name}{ }%
+ {\StrGobbleLeft{\name}{1}[\name]}%
+ {}%
+ \StrBefore{\name}{ }[\name]
+ \verbtocs{\before}|\textbf{|
+ \verbtocs{\after}|}|
+ \StrSubstitute[1]%
+ {\text}{\name}{\before\name\after}[\text]
+ \tokenize{\text}{\text}
+ \text
+\end{minipage}
+
+\subsubsection{Example 4}
+A control sequence \verb|\myCS| défined with an \verb|\edef| contains control sequences with their possible arguments. How to reverse the order of the 2 first control sequences? In this example, \verb|\myCS| contains:\par\medskip
+\hfill\verb|\textbf{A}\textit{B}\texttt{C}|\hfill{}\bigskip
+
+We expect a final result containing \verb|\textit{B}\textbf{A}\texttt{C}| and displaying \textit{B}\textbf{A}\texttt{C}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\myCS{\textbf{A}\textit{B}\texttt{C}}
+ \scancs[1]{\text}{\myCS}
+ \verbtocs{\antislash}|\|
+ \StrBefore[3]{\text}{\antislash}[\firsttwo]
+ \StrBehind{\text}{\firsttwo}[\others]
+ \StrBefore[2]{\firsttwo}{\antislash}[\avant]
+ \StrBehind{\firsttwo}{\avant}[\apres]%
+ \tokenize{\myCS}{\apres\avant\others}%
+ result: \myCS
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\myCS{\textbf{A}\textit{B}\texttt{C}}
+ \scancs[1]{\text}{\myCS}
+ \verbtocs{\antislash}|\|
+ \StrBefore[3]{\text}{\antislash}[\firsttwo]
+ \StrBehind{\text}{\firsttwo}[\others]
+ \StrBefore[2]{\firsttwo}{\antislash}[\avant]
+ \StrBehind{\firsttwo}{\avant}[\apres]%
+ \tokenize{\myCS}{\apres\avant\others}%
+ result: \myCS
+\end{minipage}
+
+\subsubsection{Example 5}
+A control sequence \verb|\myCS| defined with an \verb|\edef| contains control sequences and "groups" between braces. Let's try to find the $n$\th{} group, i.e. what is between the $n$\th{} pair of balanced braces. In this example, \verb|\myCS| contains:\par\medskip
+\hfill\verb|\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}|\hfill{}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \newcount\occurr
+ \newcount\nbgroup
+ \newcommand\findgroup[2]{%
+ \scancs[1]{\text}{#2}%
+ \occurr=0
+ \nbgroup=0
+ \def\findthegroup{%
+ \StrBehind{\text}{\Obr}[\remain]%
+ \advance\occurr by 1% next "{"
+ \StrBefore[\the\occurr]{\remain}{\Cbr}[\group]%
+ \StrCount{\group}{\Obr}[\nbA]%
+ \StrCount{\group}{\Cbr}[\nbB]%
+ \ifnum\nbA=\nbB% balanced braces ?
+ \advance\nbgroup by 1
+ \ifnum\nbgroup<#1% not the good group ?
+ \StrBehind{\text}{\group}[\text]%
+ \occurr=0% initialise \text & \occur
+ \findthegroup% do it again
+ \fi
+ \else% unbalanced braces ?
+ % look for next "}"
+ \findthegroup
+ \fi}
+ \findthegroup
+ \group}
+
+ \verbtocs{\Obr}|{|
+ \verbtocs{\Cbr}|}|
+ \def\myCS{\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}}
+
+ group 1: \findgroup{1}{\myCS}\par
+ group 2: \findgroup{2}{\myCS}\par
+ group 3: \findgroup{3}{\myCS}
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \newcount\occurr
+ \newcount\nbgroup
+ \newcommand\findgroup[2]{%
+ \scancs[1]{\text}{#2}%
+ \occurr=0
+ \nbgroup=0
+ \def\findthegroup{%
+ \StrBehind{\text}{\Obr}[\remain]%
+ \advance\occurr by 1% next "{"
+ \StrBefore[\the\occurr]{\remain}{\Cbr}[\group]%
+ \StrCount{\group}{\Obr}[\nbA]%
+ \StrCount{\group}{\Cbr}[\nbB]%
+ \ifnum\nbA=\nbB% balanced braces ?
+ \advance\nbgroup by 1
+ \ifnum\nbgroup<#1% if it's not the sought group
+ \StrBehind{\text}{\group}[\text]%
+ \occurr=0% initialization of \text & \occur
+ \findthegroup% do it again
+ \fi
+ \else% unbalanced braces ?
+ % look for next "}"
+ \findthegroup
+ \fi}
+ \findthegroup
+ \group}
+
+ \verbtocs{\Obr}|{|
+ \verbtocs{\Cbr}|}|
+ \def\myCS{\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}}
+
+ groupe 1: \findgroup{1}{\myCS}\par
+ groupe 2: \findgroup{2}{\myCS}\par
+ groupe 3: \findgroup{3}{\myCS}
+\end{minipage}
+\medskip
+
+Notice that 2 counters, 2 tests and a double recursion are necessary to find the group: one of each to find which "\verb|}|" delimits the end of the current group, and the others to calculate the number of the group being read.\bigskip\bigskip
+
+\begin{center}
+$\star$\par
+$\star$\quad$\star$
+\end{center}
+\bigskip\bigskip
+
+That's all, I hope you will find this package useful !\par
+Please, send me an email if you find a bug or if you have any idea of improvement\ldots\medskip
+
+Christian Tellechea
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.pdf b/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.pdf
new file mode 100644
index 00000000000..23f8bcb2dd1
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.tex b/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.tex
new file mode 100644
index 00000000000..5d7226b1862
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/xstring/xstring_doc_fr.tex
@@ -0,0 +1,1385 @@
+% This is xtring_doc_fr.tex, the manual of xstring (in french)
+% Christian Tellechea 2008
+%
+% email : unbonpetit@gmail.com
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% 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.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[a4paper,10pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[dvips,colorlinks=true,hyperfootnotes=false,citecolor=black,filecolor=black,linkcolor=blue,urlcolor=blue,bookmarks=false,pdfauthor={Christian TELLECHEA},pdftitle={xstring},pdfsubject={package pour la manipulation de chaines de caractères},pdfkeywords={xstring,latex,string,chaine de caractères},pdfcreator={LaTeX}]{hyperref}
+\usepackage[a4paper,dvips,margin=2cm]{geometry}
+\usepackage{amssymb}
+\usepackage{moreverb}
+\usepackage{lmodern}
+\usepackage{eurosym}
+\usepackage{xstring}
+\usepackage[frenchb]{babel}
+
+\makeatletter
+\newcommand*\exemple{\@ifstar{\def\frontiere{|}\@xs@MakeVerb}{\def\frontiere{}\@xs@MakeVerb}}
+\long\def\@xs@afterreadverb#1{%
+ \normalexpandarg
+ \tokenize\cs@resultat{#1}%
+ \fullexpandarg
+ \hbox to\linewidth{\hbox to0.7\linewidth{\hfil\tt#1}\quad\frontiere\cs@resultat\frontiere\hfil}\par}
+\makeatother
+\newcommand\guill[1]{\og{}#1\fg{}}
+\newcommand\argu[1]{$\langle$\textit{#1}$\rangle$}
+\newcommand\ARGU[1]{\texttt{\{}\argu{#1}\texttt{\}}}
+\newcommand\arguC[1]{\texttt{[}\argu{#1}\texttt{]}}
+\newcommand\arguCC[2]{\texttt{[}\argu{#1}{,}\argu{#2}\texttt{]}}
+\newcommand\texte[1]{\texttt{texte}${}_{#1}$}
+\newcommand\etoile{$\langle$\texttt{[*]}$\rangle$}
+\newcommand\voirdeftexte{~(voir \ref{deftexte})}
+\newenvironment{Conditions}[1][1cm]%
+{\begin{list}%
+ {$\vartriangleright$}%
+ {\setlength{\leftmargin}{#1}
+ \setlength{\itemsep}{0pt}
+ \setlength{\parsep}{0pt}
+ \setlength{\topsep}{2ptplus3ptminus2pt}
+ }}%
+{\end{list}}
+
+\begin{document}
+\setlength{\parindent}{0pt}
+\begin{titlepage}
+ \null\par\vfill
+ \begin{center}
+ \begin{minipage}{0.75\linewidth}
+ \begin{center}
+ \Huge\bfseries xstring\par\vspace{5pt}
+ \small v\xstringversion\par\vspace{25pt}
+ \normalsize Manuel de l'utilisateur
+ \end{center}
+ \end{minipage}
+ \end{center}
+ \vspace{1cm}
+ \begin{center}
+ Christian {\sc Tellechea}\par\small
+ \href{mailto:unbonpetit@gmail.com}{\nolinkurl{unbonpetit@gmail.com}}\par\vspace{5pt}
+ \xstringfrenchdate
+ \end{center}
+ \vfill\hrulefill
+ \begin{center}
+ \begin{minipage}{0.85\linewidth}
+ \noindent
+ \hfill\textbf{\textit{Résumé}}\hfill{}\medskip\par
+ Cette extension qui requiert Plain $\varepsilon$-\TeX{} regroupe un ensemble de macros manipulant des chaînes de caractères :
+ \setlength{\parindent}{1.5em}
+ \begin{itemize}
+ \item[$\triangleright$] des tests :
+ \begin{itemize}
+ \item une chaîne en contient elle une autre au moins $n$ fois ?
+ \item une chaîne commence t-elle ou finit-elle par une autre ? etc.
+ \item une chaîne représente t-elle un entier relatif ? Un nombre décimal ?
+ \item deux chaînes sont-elles égales ?
+ \end{itemize}
+ \item[$\triangleright$] des extractions de chaînes :
+ \begin{itemize}
+ \item renvoi de ce qui se trouve avant (ou après) la $n$\ieme{} occurrence d'une sous-chaîne;
+ \item renvoi de ce qui se trouve entre les occurrences de 2 sous-chaînes;
+ \item sous-chaîne comprise entre 2 positions, etc.
+ \end{itemize}
+ \item[$\triangleright$] le remplacement de toutes ou des $n$ premières occurrences d'une sous-chaîne par une autre sous-chaîne;
+ \item[$\triangleright$] des calculs de nombres :
+ \begin{itemize}
+ \item longueur d'une chaîne;
+ \item position de la la $n$\ieme{} occurrence d'une sous-chaîne;
+ \item comptage du nombre d'occurrences d'une sous-chaîne dans une autre;
+ \item position du 1\ier{} caractère différent entre 2 chaînes.
+ \end{itemize}
+ \end{itemize}
+ \setlength{\parindent}{0pt}
+ \medskip
+ D'autres commandes permettent de traiter les caractères spéciaux (\verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| et \verb|%|) de façon à les utiliser dans les arguments des macros de ce package, ce qui permet d'utiliser ces macros à fins de programmation.
+ \end{minipage}
+ \end{center}
+ \hrulefill\vfill{}
+\end{titlepage}
+\pagebreak
+\tableofcontents
+\pagebreak
+
+\section{Présentation}
+\subsection{Description}
+Cette extension\footnote{L'extension ne nécessite pas \LaTeX et peut être compilée sous Plain $\varepsilon$-\TeX{}.} regroupe des macros et des tests opérant sur des chaînes de caractères, un peu comme en disposent des langages dit \guill{évolués}. On y trouve les opérations habituelles sur les chaînes de caractères, comme par exemple : test si une chaîne en contient une autre, commence ou finit par une autre, test si une chaîne est un nombre entier ou décimal, extractions de sous-chaînes ou de caractères, calculs de position d'une sous-chaîne, calculs du nombre d'occurrences, etc.\medskip
+
+Certes d'autres packages manipulant les chaînes de caractères existent (par exemple \href{http://www.ctan.org/tex-archive/macros/latex/contrib/substr/}{\nolinkurl{substr}} et \href{http://www.ctan.org/tex-archive/macros/latex/contrib/stringstrings/}{\nolinkurl{stringstrings}}), mais outre des différences notables quant aux fonctionnalités, ils ne prennent pas en charge les occurrences des sous-chaînes et me semblent soit trop limités, soit trop difficiles à utiliser pour la programmation.\medskip
+
+Chaque macro de ce package manipulant des caractères peut fonctionner selon 2 modes correspondants aux macros \emph{naturelles} ou \emph{étoilées}. La différence entre les deux vient du fait que les macros non étoilées tiennent compte des \guill{catcodes\footnote{Codes de catégories, en français.}} des caractères composant les chaînes, alors que les versions étoilées sont \emph{moins strictes} et n'en tiennent pas compte. Pour la plupart des utilisateurs, la question ne devrait pas se poser, et dans la majorité des cas les deux versions se comportent de la même façon (pour de plus amples informations pour les utilisateurs avancés, voir en particulier le chapitre sur les catcodes des arguments page~\pageref{catcodesarguments} et celui sur les macros étoilées, page~\pageref{macrosetoilees}).
+
+\subsection{Motivation}
+J'ai été conduit à écrire ce type de macros car je n'ai jamais vraiment trouvé de d'outils sous \LaTeX{} adaptés à mes besoins concernant le traitement de chaînes de caractères. Alors, au fil des derniers mois, et avec l'aide de contributeurs\footnote{Je remercie chaleureusement Manuel alias \guill{\nolinkurl{mpg}} pour son aide précieuse, sa compétence et sa disponibilité.} de \nolinkurl{fr.comp.text.tex}, j'ai écrit quelques macros qui me servaient ponctuellement ou régulièrement. Leur nombre s'étant accru, et celles-ci devenant un peu trop dispersées dans les répertoires de mon ordinateur, je les ai regroupées dans ce package.
+
+Ainsi, le fait de donner corps à un ensemble cohérent de macros force à davantage de rigueur et induit naturellement de nécessaires améliorations, ce qui a pris la majeure partie du temps que j'ai consacré à ce package. Pour harmoniser le tout, mais à contre-c\oe{}ur, j'ai fini par choisir des noms de macros à consonances anglo-saxonnes.\medskip
+
+Ensuite, et ça a été ma principale motivation puisque j'ai découvert \LaTeX{} il y a moins d'un an, l'écriture de xstring qui est mon premier package m'a surtout permis de beaucoup progresser en programmation pure, et aborder des méthodes propres à la programmation sous \TeX.
+
+\subsection{Fonctionnement}
+\label{deftexte}
+Dans la suite, on écrira \guill{\texte{10,11,12}} une suite de caractères dont les catcodes sont 10, 11 ou 12.
+\subsubsection{Développement des arguments}
+\label{devarg}
+Tous les arguments des macros\footnote{À l'exeption des 2 derniers arguments des macros tests qui contiennent des séquences de contrôle à exécuter selon le résultat du test, ainsi qu'à l'exception de l'argument optionnel venant en dernière position.} manipulant des chaînes de caractères sont susceptibles de donner, à une certaine profondeur de développement du \texte{10,11,12}. Ainsi, \emph{par défaut}, pour éviter des chaines d'\verb|\expandafter| et faciliter l'usage des macros de ce package, tous les arguments sont développés le plus possible avant d'être pris en compte par la macro appelée : pour cela, la commande \verb|\fullexpandarg| est appelée par défaut.\bigskip
+
+Par exemple, si \verb|\macro| est une macro de ce package nécessitant un argument texte et un argument nombre obligatoires, les constructions suivantes sont équivalentes :\medskip
+
+\begin{minipage}[t]{0.35\linewidth}
+ Construction avec \verb|\fullexpandarg|\par\hrulefill\par
+ \verb|\def\aa{du texte}|\par
+ \verb|\def\nn{2}|\par
+ \verb|\macro{\aa}{\nn}|
+\end{minipage}
+\hfill
+\begin{minipage}[t]{0.6\linewidth}
+ Construction habituelle sous \LaTeX{} ou avec \verb|\normalexpandarg|\par\hrulefill\par
+ \verb|\def\aa{du texte}|\par
+ \verb|\def\nn{2}|\par
+ \verb|\expandafter\expandafter\expandafter\macro|\par
+ \verb| \expandafter\expandafter\expandafter|\par
+ \verb| {\expandafter\aa\expandafter}\expandafter{\nn}|
+\end{minipage}\hfill{}\medskip
+
+La construction de gauche permet de s'affranchir de l'ordre de développement des arguments et épargne à l'utilisateur des chaînes d'\verb|\expandafter|. En revanche, les arguments doivent être purement développables, et donner à leur développement maximum du \texte{10,11,12} contenant ce qui est attendu (nombre ou chaîne de caractères).\medskip
+
+On peut cependant revenir à tout moment à l'ordre habituel de développement avec la commande\\\verb|\normalexpandarg|, et utiliser quand on le souhaite \verb|\fullexpandarg| qui est appelée par défaut pour basculer à nouveau vers le développement maximum des arguments.
+
+\subsubsection{Arguments textuels}
+Les macros de packages manipulant des chaînes de caractères, elles nécessitent un ou plusieurs arguments contenant du \texte{10,11,12}\voirdeftexte{}, en respectant la classique syntaxe entre accolades \verb|{|\texte{10,11,12}\verb|}| ou entre crochet pour les arguments optionnels \verb|[|\texte{10,11,12}\verb|]|.\medskip
+
+Il convient de respecter les règles suivantes pour le développement des arguments textuels :
+\begin{itemize}
+ \item ils peuvent contenir des lettres (majuscules ou minuscules, accentuées\footnote{Pour pouvoir utiliser des lettres accentuées de façon fiable, il est nécessaire de charger le packages \texttt{\textbackslash fontenc} avec l'option \texttt{[T1]}, ainsi que \texttt{\textbackslash inputenc} avec l'option correspondant au codage du fichier tex.} ou non), des chiffres et des espaces, ainsi que tout caractère de catcode 10, 11 ou 12 (signes de ponctuation, signes opératoires mathématiques, parenthèses, crochets, etc). Le signe \officialeuro, par contre, génèrera des erreurs;
+ \item les espaces sont gérés et comptabilisés comme des caractères à part entière, à la condition qu'il ne se suivent pas, auquel cas, la règle \LaTeX{}ienne prévaut et plusieurs espaces consécutifs n'en font qu'un seul;
+ \item aucun caractère spécial n'est accepté, c'est-à-dire que les 10 caractères suivants sont strictement interdits : \verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| et \verb|%|.
+\end{itemize}\medskip
+
+Pour contourner certaines de ces règles et aller plus loin dans les possibilités des macros pour les utiliser à des fins de programmation, il existe des macros spéciales qui permettent d'inclure dans des arguments textuels n'importe quel caractère spécial, c'est-à-dire un caractère dont le catcode est différent de 10, 11 ou 12, ainsi que des séquences de contrôle en contenant. Voir la description détaillée de ce mode de fonctionnement au chapitre \ref{programmation}, page~\pageref{programmation}.
+
+\subsubsection{Développement des macros, argument optionnel}
+Les macros de ce package ne sont pas purement développables et ne peuvent donc pas être mises dans l'argument d'un \verb|\edef|. Par conséquent, certaines constructions ne sont pas acceptées et conduisent à des erreurs lors de la compilation. Si par exemple, \verb|\commande{argument}| est une macro de ce package avec son argument, supposée renvoyer une chaîne de caractères, alors les constructions suivantes ne sont pas permises :\smallskip
+
+\hspace{0.2\linewidth}\verb|\edef\Resultat{\commande{argument}}|\par
+\qquad pas plus que\par
+\hspace{0.2\linewidth}\verb|\commandeA{\commandeB{\commandeC{argument}}}|\smallskip
+
+C'est pour cela que les macros renvoyant un résultat, c'est-à-dire toutes sauf les tests et \verb|\StrSplit|, sont dotées d'un argument optionnel venant en dernière position. Cet argument prend la forme de \arguC{nom}, où \argu{nom} est le nom d'une séquence de contrôle qui recevra (l'assignation se fait avec un \verb|\edef|) le résultat de la macro, ce qui fait que \verb|\|\argu{nom} est purement développable et peut donc se trouver dans l'argument d'un \verb|\edef|. Dans le cas de la présence d'un argument optionnel en dernière position, aucun affichage n'aura lieu. Cet argument optionnel, évidemment, n'est pas développé contrairement aux autres arguments. Il permet ainsi contourner les limitations évoquées dans les exemples ci dessus.\medskip
+
+Ainsi cette construction non permise :\par
+\hspace{0.2\linewidth}\verb|\edef\Resultat{\commande{arguments}}|\par
+\qquad est équivalente à\par
+\hspace{0.2\linewidth}\verb|\commande{argument}[\Resultat]|\medskip
+
+Et cet autre construction non permise :\par
+\hspace{0.2\linewidth}\verb|\commandeA{\commandeB{\commandeC{arguments}}}|\par
+\qquad se comporte de même que\par
+\hspace{0.2\linewidth}\verb|\commandeC{arguments}[\MaChaine]|\par
+\hspace{0.2\linewidth}\verb|\commandeB{\MaChaine}[\MaChaine]|\par
+\hspace{0.2\linewidth}\verb|\commandeA{\MaChaine}|\par
+
+\subsubsection{Catcodes des arguments}\label{catcodesarguments}
+Les macros présentées ici tiennent compte des catcodes des caractères constituant les chaînes de caractères. Il faut donc garder à l'esprit particulièrement lors des tests, que les caractères \emph{et leurs catcodes} sont examinés.\medskip
+
+Par exemple, ces 2 arguments textuels :\par\smallskip
+\hfil\verb|{\string a\string b}|\qquad et\qquad\verb|{ab}|\hfil{}\par\smallskip
+ne se développent pas en 2 arguments égaux au yeux de xstring. Dans le premier cas, à cause de l'emploi de la primitive \verb|\string|, les caractères \og\verb|ab|\fg{} ont un catcode de 12 alors que dans l'autre cas, ils ont leurs catcodes naturels de 11. Il convient donc d'être conscient de ces subtilités lorsque l'on emploie des primitives dont les résultats sont des chaînes de caractères ayant des catcodes de 12 et 10 comme \verb|\string|, \verb|\detokenize|, \verb|\meaning|, \verb|\jobname|, \verb|\fontname|, \verb|\romannumeral|, etc.\medskip
+
+Pour demander aux macros de ne pas tenir compte des catcodes, on peut utiliser les macros étoilées. Celles-ci convertissent tous leurs aguments textuels en chaines de caractères dont les catcodes sont 12 (et 10 pour l'espace) avant que la macro non étoilée travaille sur ces arguments ainsi modifiés. De plus amples explications ainsi que des exemples peuvent être consultés au chapitre sur les macros étoilées, page~\pageref{macrosetoilees}.
+
+\section{Les macros}
+\label{listemacros}
+\subsection{Présentation des macros}
+Dans ce chapitre, la totalité des macros est présentée selon ce plan :\smallskip
+
+\begin{itemize}
+ \item la syntaxe ainsi que la valeur d'éventuels arguments optionnels;
+ \item une brève description du fonctionnement;
+ \item le fonctionnement sous certaines conditions particulières. Pour chaque conditions envisagée, le fonctionnement décrit est prioritaire sur celui (ceux) se trouvant au dessous de lui;
+ \item enfin, quelques exemples sont donnés. J'ai essayé de les trouver les plus facilement compréhensibles et les plus représentatifs des situations rencontrées dans une utilisation normale\footnote{Pour une collection plus importante d'exemples, on peut aussi consulter le fichier de test.}. Si un doute est possible quant à la présence d'espaces dans le résultat, celui-ci sera délimité par des \guill{|}, étant entendu qu'une chaîne vide est représentée par \guill{||}.
+\end{itemize}\smallskip
+
+\subsection{Les tests}
+\subsubsection{IfSubStr}
+\verb|\IfSubStr|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 1 par défaut.\par
+\smallskip
+
+Teste si \argu{chaine} contient au moins \argu{nombre} fois \argu{chaineA} et exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\medskip
+
+\begin{Conditions}
+ \item Si \argu{nombre}${}\leqslant0$, exécute \argu{faux};
+ \item Si \argu{chaine} ou \argu{chaineA} est vide, exécute \argu{faux}.
+\end{Conditions}
+
+\exemple|\IfSubStr{xstring}{tri}{vrai}{faux}|
+\exemple|\IfSubStr{xstring}{a}{vrai}{faux}|
+\exemple|\IfSubStr{a bc def }{c d}{vrai}{faux}|
+\exemple|\IfSubStr{a bc def }{cd}{vrai}{faux}|
+\exemple|\IfSubStr[2]{1a2a3a}{a}{vrai}{faux}|
+\exemple|\IfSubStr[3]{1a2a3a}{a}{vrai}{faux}|
+\exemple|\IfSubStr[4]{1a2a3a}{a}{vrai}{faux}|
+
+\subsubsection{IfSubStrBefore}
+\verb|\IfSubStrBefore|\etoile\arguCC{nombre1}{nombre2}\ARGU{chaine}\ARGU{chaineA}\ARGU{chaineB}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Les arguments optionnels \argu{nombre1} et \argu{nombre2} valent 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, la macro teste si l'occurrence \no\argu{nombre1} de \argu{chaineA} se trouve à gauche de l'occurrence \no\argu{nombre2} de \argu{chaineB}. Exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\medskip
+
+\begin{Conditions}
+ \item Si l'une des occurrences n'est pas trouvée, exécute \argu{faux};
+ \item Si l'un des arguments \argu{chaine}, \argu{chaineA} ou \argu{chaineB} est vide, exécute \argu{faux};
+ \item Si l'un au moins des deux arguments optionnels est négatif ou nul, exécute \argu{faux}.
+\end{Conditions}
+
+\exemple|\IfSubStrBefore{xstring}{st}{in}{vrai}{faux}|
+\exemple|\IfSubStrBefore{xstring}{ri}{s}{vrai}{faux}|
+\exemple|\IfSubStrBefore{LaTeX}{LaT}{TeX}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a bc def }{ b}{ef}{vrai}{faux}|
+\exemple|\IfSubStrBefore{a bc def }{ab}{ef}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,1]{b1b2b3}{b}{2}{vrai}{faux}|
+\exemple|\IfSubStrBefore[3,1]{b1b2b3}{b}{2}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,2]{baobab}{a}{b}{vrai}{faux}|
+\exemple|\IfSubStrBefore[2,3]{baobab}{a}{b}{vrai}{faux}|
+
+\subsubsection{IfSubStrBehind}
+\verb|\IfSubStrBehind|\etoile\arguCC{nombre1}{nombre2}\ARGU{chaine}\ARGU{chaineA}\ARGU{chaineB}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Les arguments optionnels \argu{nombre1} et \argu{nombre2} valent 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, la macro teste si l'occurrence \no\argu{nombre1} de \argu{chaineA} se trouve après l'occurrence \\\no\argu{nombre2} de \argu{chaineB}. Exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\medskip
+
+\begin{Conditions}
+ \item Si l'une des occurrences n'est pas trouvée, exécute \argu{faux};
+ \item Si l'un des arguments \argu{chaine}, \argu{chaineA} ou \argu{chaineB} est vide, exécute \argu{faux};
+ \item Si l'un au moins des deux arguments optionnels est négatif ou nul, exécute \argu{faux}.
+\end{Conditions}
+
+\exemple|\IfSubStrBehind{xstring}{ri}{xs}{vrai}{faux}|
+\exemple|\IfSubStrBehind{xstring}{s}{i}{vrai}{faux}|
+\exemple|\IfSubStrBehind{LaTeX}{TeX}{LaT}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a bc def }{ d}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind{a bc def }{cd}{a b}{vrai}{faux}|
+\exemple|\IfSubStrBehind[2,1]{b1b2b3}{b}{2}{vrai}{faux}|
+\exemple|\IfSubStrBehind[3,1]{b1b2b3}{b}{2}{vrai}{faux}|
+\exemple|\IfSubStrBehind[2,2]{baobab}{b}{a}{vrai}{faux}|
+\exemple|\IfSubStrBehind[2,3]{baobab}{b}{a}{vrai}{faux}|
+
+\subsubsection{IfBeginWith}
+
+\verb|\IfBeginWith|\etoile\ARGU{chaine}\ARGU{chaineA}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si \argu{chaine} commence par \argu{chaineA}, et exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\medskip
+
+\begin{Conditions}
+\item Si \argu{chaine} ou \argu{chaineA} est vide, exécute \argu{faux}.
+\end{Conditions}
+
+\exemple|\IfBeginWith{xstring}{xst}{vrai}{faux}|
+\exemple|\IfBeginWith{LaTeX}{a}{vrai}{faux}|
+\exemple|\IfBeginWith{a bc def }{a b}{vrai}{faux}|
+\exemple|\IfBeginWith{a bc def }{ab}{vrai}{faux}|
+
+\subsubsection{IfEndWith}
+
+\verb|\IfEndWith|\etoile\ARGU{chaine}\ARGU{chaineA}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si \argu{chaine} se termine par \argu{chaineA}, et exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} ou \argu{chaineA} est vide, exécute \argu{faux}.
+\end{Conditions}
+
+\exemple|\IfEndWith{xstring}{ring}{vrai}{faux}|
+\exemple|\IfEndWith{LaTeX}{a}{vrai}{faux}|
+\exemple|\IfEndWith{a bc def }{ef }{vrai}{faux}|
+\exemple|\IfEndWith{a bc def }{ef}{vrai}{faux}|
+
+\subsubsection{IfInteger}
+
+\verb|\IfInteger|\etoile\ARGU{nombre}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si \argu{nombre} est un nombre entier relatif, et exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\smallskip
+
+Si le test est faux pour cause de caractères non autorisés, la séquence de contrôle \verb|\@xs@afterinteger| contient la partie illégale de \argu{nombre}.\medskip
+
+\exemple|\IfInteger{13}{vrai}{faux}|
+\exemple|\IfInteger{-219}{vrai}{faux}|
+\exemple|\IfInteger{+9}{vrai}{faux}|
+\exemple|\IfInteger{3.14}{vrai}{faux}|
+\exemple|\IfInteger{0}{vrai}{faux}|
+\exemple|\IfInteger{49a}{vrai}{faux}|
+\exemple|\IfInteger{+}{vrai}{faux}|
+\exemple|\IfInteger{-}{vrai}{faux}|
+\exemple|\IfInteger{0000}{vrai}{faux}|
+
+\subsubsection{IfDecimal}\label{ifdecimal}
+
+\verb|\IfDecimal|\etoile\ARGU{nombre}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si \argu{nombre} est un nombre décimal, et exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\smallskip
+
+Les compteurs \verb|\integerpart| et \verb|\decimalpart| contiennent les parties entières et décimales de \argu{nombre}.
+
+Si le test est faux pour cause de caractères non autorisés, la séquence de contrôle \verb|\@xs@afterdecimal| contient la partie illégale de \argu{nombre}, alors que si le test est faux parce que la partie décimale après le séparateur décimal est vide, elle contient \guill{X}.\medskip
+
+\begin{Conditions}
+ \item Le séparateur décimal peut être un point ou une virgule;
+ \item Si ce qui se trouve à droite du séparateur décimal s'il est présent est vide, le test est faux;
+ \item Si ce qui se trouve à gauche du séparateur décimal s'il est présent est vide, la partie entière est considérée comme étant 0.
+\end{Conditions}
+
+\exemple|\IfDecimal{3.14}{vrai}{faux}|
+\exemple|\IfDecimal{3,14}{vrai}{faux}|
+\exemple|\IfDecimal{-0.5}{vrai}{faux}|
+\exemple|\IfDecimal{.7}{vrai}{faux}|
+\exemple|\IfDecimal{,9}{vrai}{faux}|
+\exemple|\IfDecimal{1..2}{vrai}{faux}|
+\exemple|\IfDecimal{+6}{vrai}{faux}|
+\exemple|\IfDecimal{-15}{vrai}{faux}|
+\exemple|\IfDecimal{1.}{vrai}{faux}|
+\exemple|\IfDecimal{2,}{vrai}{faux}|
+\exemple|\IfDecimal{.}{vrai}{faux}|
+\exemple|\IfDecimal{,}{vrai}{faux}|
+\exemple|\IfDecimal{+}{vrai}{faux}|
+\exemple|\IfDecimal{-}{vrai}{faux}|
+
+\subsubsection{IfStrEq}
+
+\verb|\IfStrEq|\etoile\ARGU{chaineA}\ARGU{chaineB}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si les chaînes \argu{chaineA} et \argu{chaineB} sont égales, c'est-à-dire si elles contiennent successivement les mêmes caractères dans le même ordre. Exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\smallskip
+
+\exemple|\IfStrEq{a1b2c3}{a1b2c3}{vrai}{faux}|
+\exemple|\IfStrEq{abcdef}{abcd}{vrai}{faux}|
+\exemple|\IfStrEq{abc}{abcdef}{vrai}{faux}|
+\exemple|\IfStrEq{3,14}{3,14}{vrai}{faux}|
+\exemple|\IfStrEq{12.34}{12.340}{vrai}{faux}|
+\exemple|\IfStrEq{abc}{}{vrai}{faux}|
+\exemple|\IfStrEq{}{abc}{vrai}{faux}|
+\exemple|\IfStrEq{}{}{vrai}{faux}|
+
+\subsubsection{IfEq}
+
+\verb|\IfEq|\etoile\ARGU{chaineA}\ARGU{chaineB}\ARGU{vrai}\ARGU{faux}
+\smallskip
+
+Teste si les chaînes \argu{chaineA} et \argu{chaineB} sont égales, \emph{sauf} si \argu{chaineA} et \argu{chaineB} contiennent des nombres, auquel cas la macro teste si les nombres sont égaux. Exécute \argu{vrai} dans l'affirmative, et \argu{faux} dans le cas contraire.\smallskip
+
+\begin{Conditions}
+ \item La définition de \emph{nombre} est celle évoquée dans la macro \verb|IfDecimal| (voir page~\pageref{ifdecimal}), et donc :
+ \item Les signes \guill{+} sont facultatifs;
+ \item Le séparateur décimal peut être indifféremment la virgule ou le point;
+ \item Il est possible d'évaluer des expressions algébriques en utilisant la primitive \verb|\numexpr| de $\varepsilon$-\TeX{}, en gardant à l'esprit qu'elle ne donne que des résultats entiers et qu'elle arrondit les résultats non entiers à l'entier le plus proche.
+\end{Conditions}
+
+\exemple|\IfEq{a1b2c3}{a1b2c3}{vrai}{faux}|
+\exemple|\IfEq{abcdef}{ab}{vrai}{faux}|
+\exemple|\IfEq{ab}{abcdef}{vrai}{faux}|
+\exemple|\IfEq{12.34}{12,34}{vrai}{faux}|
+\exemple|\IfEq{+12.34}{12.340}{vrai}{faux}|
+\exemple|\IfEq{10}{+10}{vrai}{faux}|
+\exemple|\IfEq{-10}{10}{vrai}{faux}|
+\exemple|\IfEq{+0,5}{,5}{vrai}{faux}|
+\exemple|\IfEq{1.001}{1.01}{vrai}{faux}|
+\exemple|\IfEq{3*4+2}{14}{vrai}{faux}|
+\exemple|\IfEq{\number\numexpr3*4+2}{14}{vrai}{faux}|
+\exemple|\IfEq{0}{-0.0}{vrai}{faux}|
+\exemple|\IfEq{}{}{vrai}{faux}|
+
+\subsubsection{IfStrEqCase}
+
+\begin{minipage}{\textwidth}
+ \verb|\IfStrEqCase|\etoile\ARGU{chaine}\verb|{%|\par
+ \qquad\qquad\ARGU{chaine1}\ARGU{code1}\verb|%|\par
+ \qquad\qquad\ARGU{chaine2}\ARGU{code2}\verb|%|\par
+ \qquad\qquad\verb|etc...|\par
+ \qquad\qquad\ARGU{chaineN}\ARGU{codeN}\verb|}|\arguC{code alternatif}
+\end{minipage}
+\smallskip
+
+Teste successivement si \argu{chaine} est égale à \argu{chaine1}, \argu{chaine2}, etc. La comparaison se fait au sens de \verb|\IfStrEq| (voir paragraphes précédents). Si un test est positif, le code correspondant est exécuté et la macro se termine. Si tous les tests sont négatifs, le code optionnel \argu{code alternatif} est exécuté s'il est présent.\smallskip
+
+\exemple|\IfStrEqCase{b}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple*|\IfStrEqCase{abc}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple|\IfStrEqCase{c}{{a}{AA}{b}{BB}{c}{CC}}[autre]|
+\exemple|\IfStrEqCase{d}{{a}{AA}{b}{BB}{c}{CC}}[autre]|
+\exemple|\IfStrEqCase{+3}{{1}{un}{2}{deux}{3}{trois}}[autre]|
+\exemple|\IfStrEqCase{0.5}{{0}{zero}{.5}{moitié}{1}{un}}[autre]|
+
+\subsubsection{IfEqCase}
+
+\begin{minipage}{\textwidth}
+ \verb|\IfEqCase|\etoile\ARGU{chaine}\verb|{%|\par
+ \qquad\qquad\ARGU{chaine1}\ARGU{code1}\verb|%|\par
+ \qquad\qquad\ARGU{chaine2}\ARGU{code2}\verb|%|\par
+ \qquad\qquad\verb|etc...|\par
+ \qquad\qquad\ARGU{chaineN}\ARGU{codeN}\verb|}|\arguC{code alternatif}
+\end{minipage}
+\smallskip
+
+Teste successivement si \argu{chaine} est égale à \argu{chaine1}, \argu{chaine2}, etc. La comparaison se fait au sens de \verb|\IfEq| (voir paragraphes précédents). Si un test est positif, le code correspondant est exécuté et la macro se termine. Si tous les tests sont négatifs, le code optionnel \argu{code alternatif} est exécuté s'il est présent.\smallskip
+
+\exemple|\IfEqCase{b}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple*|\IfEqCase{abc}{{a}{AA}{b}{BB}{c}{CC}}|
+\exemple|\IfEqCase{c}{{a}{AA}{b}{BB}{c}{CC}}[autre]|
+\exemple|\IfEqCase{d}{{a}{AA}{b}{BB}{c}{CC}}[autre]|
+\exemple|\IfEqCase{+3}{{1}{un}{2}{deux}{3}{trois}}[autre]|
+\exemple|\IfEqCase{0.5}{{0}{zero}{.5}{moitié}{1}{un}}[autre]|
+
+\subsection{Les macros renvoyant une chaîne}
+
+\subsubsection{StrBefore}
+\verb|\StrBefore|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\arguC{nom}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, renvoie ce qui se trouve avant l'occurrence \no\argu{nombre} de \argu{chaineA}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} ou \argu{chaineA} est vide, une chaîne vide est renvoyée;
+ \item Si \argu{nombre}${}<1$ alors, la macro se comporte comme si \argu{nombre}${}=1$;
+ \item Si l'occurrence n'est pas trouvée, une chaîne vide est renvoyée.
+\end{Conditions}
+
+\exemple*|\StrBefore{xstring}{tri}|
+\exemple*|\StrBefore{LaTeX}{e}|
+\exemple*|\StrBefore{LaTeX}{p}|
+\exemple*|\StrBefore{LaTeX}{L}|
+\exemple*|\StrBefore{a bc def }{def}|
+\exemple*|\StrBefore{a bc def }{cd}|
+\exemple*|\StrBefore[1]{1b2b3}{b}|
+\exemple*|\StrBefore[2]{1b2b3}{b}|
+
+\subsubsection{StrBehind}
+\verb|\StrBehind|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\arguC{nom}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, renvoie ce qui se trouve après l'occurrence \no\argu{nombre} de \argu{chaineA}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} ou \argu{chaineA} est vide, une chaîne vide est renvoyée;
+ \item Si \argu{nombre}${}<1$ alors, la macro se comporte comme si \argu{nombre}${}=1$;
+ \item Si l'occurrence n'est pas trouvée, une chaîne vide est renvoyée.
+\end{Conditions}
+
+\exemple*|\StrBehind{xstring}{tri}|
+\exemple*|\StrBehind{LaTeX}{e}|
+\exemple*|\StrBehind{LaTeX}{p}|
+\exemple*|\StrBehind{LaTeX}{X}|
+\exemple*|\StrBehind{a bc def }{bc}|
+\exemple*|\StrBehind{a bc def }{cd}|
+\exemple*|\StrBehind[1]{1b2b3}{b}|
+\exemple*|\StrBehind[2]{1b2b3}{b}|
+\exemple*|\StrBehind[3]{1b2b3}{b}|
+
+\subsubsection{StrBetween}
+\verb|\StrBetween|\etoile\arguCC{nombre1}{nombre2}\ARGU{chaine}\ARGU{chaineA}\ARGU{chaineB}\arguC{nom}
+\smallskip
+
+Les arguments optionnels \argu{nombre1} et \argu{nombre2} valent 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, renvoie ce qui se trouve entre\footnote{Au sens strict, c'est-à-dire \emph{sans} les chaînes frontière} les occurrences \no\argu{nombre1} de \argu{chaineA} et \no \argu{nombre2} de \argu{chaineB}.
+\medskip
+
+\begin{Conditions}
+ \item Si les occurrences ne sont pas dans l'ordre (\argu{chaineA} \emph{puis} \argu{chaineB}) dans \argu{chaine}, une chaîne vide est renvoyée;
+ \item Si l'une des 2 occurrences n'existe pas dans \argu{chaine}, une chaîne vide est renvoyée;
+ \item Si l'un des arguments optionnels \argu{nombre1} ou \argu{nombre2} est négatif ou nul, une chaîne vide est renvoyée.
+\end{Conditions}
+
+\exemple*|\StrBetween{xstring}{xs}{ng}|
+\exemple*|\StrBetween{xstring}{i}{n}|
+\exemple*|\StrBetween{xstring}{a}{tring}|
+\exemple*|\StrBetween{a bc def }{a}{d}|
+\exemple*|\StrBetween{a bc def }{a }{f}|
+\exemple*|\StrBetween{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[2,3]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[1,3]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[3,1]{a1b1a2b2a3b3}{a}{b}|
+\exemple*|\StrBetween[3,2]{abracadabra}{a}{bra}|
+
+\subsubsection{StrSubstitute}
+\verb|\StrSubstitute|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\ARGU{chaineB}\arguC{nom}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 0 par défaut.\par\smallskip
+
+Dans \argu{chaine}, la macro remplace les \argu{nombre} premières occurrences de \argu{chaineA} par \argu{chaineB}, sauf si \argu{nombre}${}=0$ auquel cas, \emph{toutes} les occurrences sont remplacées.
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, une chaîne vide est renvoyée;
+ \item Si \argu{chaineA} est vide ou n'existe pas dans \argu{chaine}, la macro est sans effet;
+ \item Si \argu{nombre} est supérieur au nombre d'occurrences de \argu{chaineA}, alors toutes les occurrences sont remplacées;
+ \item Si \argu{nombre}${}<0$ alors la macro se comporte comme si \argu{nombre}${}=0$;
+ \item Si \argu{chaineB} est vide, alors les occurrences de \argu{chaineA}, si elles existent, sont supprimées.
+\end{Conditions}
+
+\exemple|\StrSubstitute{xstring}{i}{a}|
+\exemple|\StrSubstitute{abracadabra}{a}{o}|
+\exemple|\StrSubstitute{abracadabra}{br}{TeX}|
+\exemple|\StrSubstitute{LaTeX}{m}{n}|
+\exemple|\StrSubstitute{a bc def }{ }{M}|
+\exemple|\StrSubstitute{a bc def }{ab}{AB}|
+\exemple|\StrSubstitute[1]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[2]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[3]{a1a2a3}{a}{B}|
+\exemple|\StrSubstitute[4]{a1a2a3}{a}{B}|
+
+\subsubsection{StrDel}
+\verb|\StrDel|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\arguC{nom}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 0 par défaut.\par\smallskip
+
+Supprime les \argu{nombre} premières occurrences de \argu{chaineA} dans \argu{chaine}, sauf si \argu{nombre}${}=0$ auquel cas, \emph{toutes} les occurrences sont supprimées.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, une chaîne vide est renvoyée;
+ \item Si \argu{chaineA} est vide ou n'existe pas dans \argu{chaine}, la macro est sans effet;
+ \item Si \argu{nombre} est supérieur au nombre d'occurrences de \argu{chaineA}, alors toutes les occurrences sont supprimées;
+ \item Si \argu{nombre}${}<0$ alors la macro se comporte comme si \argu{nombre}${}=0$;
+\end{Conditions}
+
+\exemple|\StrDel{abracadabra}{a}|
+\exemple|\StrDel[1]{abracadabra}{a}|
+\exemple|\StrDel[4]{abracadabra}{a}|
+\exemple|\StrDel[9]{abracadabra}{a}|
+\exemple|\StrDel{a bc def }{ }|
+\exemple*|\StrDel{a bc def }{def}|
+
+\subsubsection{StrSplit}
+\verb|\StrSplit|\etoile\ARGU{chaine}\ARGU{nombre}\ARGU{chaineA}\ARGU{chaineB}
+\smallskip
+
+La \argu{chaine}, est coupée en deux chaînes après le caractère se situant à la position \argu{nombre}. La partie gauche est assigné à la séquence de contrôle \argu{csA} et la partie droite à \argu{csB}.\par
+Cette macro renvoie \emph{deux chaînes} et donc \textbf{n'affiche rien}. Par conséquent, elle ne dispose pas de l'argument optionnel en dernière position.\medskip
+
+\begin{Conditions}
+ \item Si \argu{nombre}${}\leqslant0$, \argu{csA} sera vide et \argu{csB} contiendra la totalité de \argu{chaine};
+ \item Si \argu{nombre}${}\geqslant$\argu{longueurChaine}, \argu{csA} contiendra la totalité de \argu{chaine} et \argu{csB} sera vide;
+ \item Si \argu{chaine} est vide \argu{csA} et \argu{csB} seront vides, quelque soit l'entier \argu{nombre}.
+\end{Conditions}
+
+\setverbdelim{=}
+\exemple=\StrSplit{abcdef}{4}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\exemple=\StrSplit{a b c }{2}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\exemple=\StrSplit{abcdef}{1}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\exemple=\StrSplit{abcdef}{5}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\exemple=\StrSplit{abcdef}{9}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\exemple=\StrSplit{abcdef}{-3}{\aa}{\bb}résultats : |\aa| et |\bb|=
+\setverbdelim{|}
+
+\subsubsection{StrGobbleLeft}
+\verb|\StrGobbleLeft|\etoile\ARGU{chaine}\ARGU{nombre}\arguC{nom}
+\smallskip
+
+Dans \argu{chaine}, enlève les \argu{nombre} premiers caractères de gauche.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, renvoie une chaîne vide;
+ \item Si \argu{nombre}${}\leqslant0$, aucun caractère n'est supprimé.
+ \item Si \argu{nombre}${}\geqslant{}$\argu{longueurChaine}, tous les caractères sont supprimés.
+\end{Conditions}
+
+\exemple*|\StrGobbleLeft{xstring}{2}|
+\exemple*|\StrGobbleLeft{xstring}{9}|
+\exemple*|\StrGobbleLeft{LaTeX}{4}|
+\exemple*|\StrGobbleLeft{LaTeX}{-2}|
+\exemple*|\StrGobbleLeft{a bc def }{4}|
+
+\subsubsection{StrLeft}
+\verb|\StrLeft|\etoile\ARGU{chaine}\ARGU{nombre}\arguC{nom}
+\smallskip
+
+Dans \argu{chaine}, renvoie la sous-chaîne de gauche de longueur \argu{nombre}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, renvoie une chaîne vide;
+ \item Si \argu{nombre}${}\leqslant0$, aucun caractère n'est retourné.
+ \item Si \argu{nombre}${}\geqslant{}$\argu{longueurChaine}, tous les caractères sont retournés.
+\end{Conditions}
+
+\exemple*|\StrLeft{xstring}{2}|
+\exemple*|\StrLeft{xstring}{9}|
+\exemple*|\StrLeft{LaTeX}{4}|
+\exemple*|\StrLeft{LaTeX}{-2}|
+\exemple*|\StrLeft{a bc def }{5}|
+
+\subsubsection{StrGobbleRight}
+\verb|\StrGobbleRight|\etoile\ARGU{chaine}\ARGU{nombre}\arguC{nom}
+\smallskip
+
+Agit comme \verb|\StrGobbleLeft|, mais enlève les caractères à droite de \argu{chaine}.
+
+\exemple*|\StrGobbleRight{xstring}{2}|
+\exemple*|\StrGobbleRight{xstring}{9}|
+\exemple*|\StrGobbleRight{LaTeX}{4}|
+\exemple*|\StrGobbleRight{LaTeX}{-2}|
+\exemple*|\StrGobbleRight{a bc def }{4}|
+
+\subsubsection{StrRight}
+\verb|\StrRight|\etoile\ARGU{chaine}\ARGU{nombre}\arguC{nom}
+\smallskip
+
+Agit comme \verb|\StrLeft|, mais renvoie les caractères à la droite de \argu{chaine}.
+
+\exemple*|\StrRight{xstring}{2}|
+\exemple*|\StrRight{xstring}{9}|
+\exemple*|\StrRight{LaTeX}{4}|
+\exemple*|\StrRight{LaTeX}{-2}|
+\exemple*|\StrRight{a bc def }{5}|
+
+\subsubsection{StrChar}
+\verb|\StrChar|\etoile\ARGU{chaine}\ARGU{nombre}\arguC{nom}
+\smallskip
+
+Renvoie le caractère à la position \argu{nombre} dans la chaîne \argu{chaine}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, aucun caractère n'est renvoyé;
+ \item Si \argu{nombre}${}\leqslant0$ ou si \argu{nombre}${}>{}$\argu{longueurChaine}, aucun caractère n'est renvoyé.
+\end{Conditions}
+
+\exemple|\StrChar{xstring}{4}|
+\exemple*|\StrChar{xstring}{9}|
+\exemple*|\StrChar{xstring}{-5}|
+\exemple|\StrChar{a bc def }{6}|
+
+\subsubsection{StrMid}
+\verb|\StrMid|\etoile\ARGU{chaine}\ARGU{nombreA}\ARGU{nombreB}\arguC{nom}
+\smallskip
+
+Dans \argu{chaine}, renvoie la sous chaîne se trouvant entre\footnote{Au sens large, c'est-à-dire que les chaînes \guill{frontière} sont renvoyés.} les positions \argu{nombreA} et \argu{nombreB}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{chaine} est vide, une chaîne vide est renvoyée;
+ \item Si \argu{nombreA}${}>{}$\argu{nombreB}, alors rien n'est renvoyé;
+ \item Si \argu{nombreA}${}<1$ et \argu{nombreB}${}<1$ alors rien n'est renvoyé;
+ \item Si \argu{nombreA}${}>{}$\argu{longueurChaine} et \argu{nombreB}${}>{}$\argu{longueurChaine}, alors rien n'est renvoyé;
+ \item Si \argu{nombreA}${}<1$, alors la macro se comporte comme si \argu{nombreA}${}=1$;
+ \item Si \argu{nombreB}${}>{}$\argu{longueurChaine}, alors la macro se comporte comme si \argu{nombreB}${}={}$\argu{longueurChaine}.
+\end{Conditions}
+
+\exemple|\StrMid{xstring}{2}{5}|
+\exemple|\StrMid{xstring}{-4}{2}|
+\exemple*|\StrMid{xstring}{5}{1}|
+\exemple|\StrMid{xstring}{6}{15}|
+\exemple|\StrMid{xstring}{3}{3}|
+\exemple*|\StrMid{a bc def }{2}{7}|
+
+
+\subsection{Les macros renvoyant des nombres}
+\subsubsection{StrLen}
+\verb|\StrLen|\etoile\ARGU{chaine}\arguC{nom}
+\smallskip
+
+Renvoie la longueur de \argu{chaine}.
+
+\exemple|\StrLen{xstring}|
+\exemple|\StrLen{A}|
+\exemple|\StrLen{a bc def }|
+
+\subsubsection{StrCount}
+\verb|\StrCount|\etoile\ARGU{chaine}\ARGU{chaineA}\arguC{nom}
+\smallskip
+
+Compte combien de fois \argu{chaineA} est contenue dans \argu{chaine}.\par\medskip
+
+\begin{Conditions}
+ \item Si l'un au moins des arguments \argu{chaine} ou \argu{chaineA} est vide, la macro renvoie 0.
+\end{Conditions}
+
+\exemple|\StrCount{abracadabra}{a}|
+\exemple|\StrCount{abracadabra}{bra}|
+\exemple|\StrCount{abracadabra}{tic}|
+\exemple|\StrCount{aaaaaa}{aa}|
+
+\subsubsection{StrPosition}
+\verb|\StrPosition|\etoile\arguC{nombre}\ARGU{chaine}\ARGU{chaineA}\arguC{nom}
+\smallskip
+
+L'argument optionnel \argu{nombre} vaut 1 par défaut.\par\smallskip
+
+Dans \argu{chaine}, renvoie la position de l'occurrence \no\argu{nombre} de \argu{chaineA}.\medskip
+
+\begin{Conditions}
+ \item Si \argu{nombre} est supérieur au nombre d'occurrences de \argu{chaineA}, alors la macro renvoie 0.
+ \item Si \argu{chaine} ne contient pas \argu{chaineA}, alors la macro renvoie 0.
+\end{Conditions}
+\medskip
+
+\exemple|\StrPosition{xstring}{ring}|
+\exemple|\StrPosition[4]{abracadabra}{a}|
+\exemple|\StrPosition[2]{abracadabra}{bra}|
+\exemple|\StrPosition[9]{abracadabra}{a}|
+\exemple|\StrPosition{abracadabra}{z}|
+\exemple|\StrPosition{a bc def }{d}|
+\exemple|\StrPosition[3]{aaaaaa}{aa}|
+
+\subsubsection{StrCompare}
+\verb|\StrCompare|\etoile\ARGU{chaineA}\ARGU{chaineB}\arguC{nom}
+\smallskip
+
+Cette macro peut fonctionner avec 2 tolérances : la tolérance \guill{normale} sélectionnée par défaut, et la tolérance \guill{stricte}.\medskip
+
+\begin{itemize}
+ \item La tolérance normale, activée par la commande \verb|\comparenormal|.\par
+ La macro compare successivement les caractères de gauche à droite des chaînes \argu{chaineA} et \argu{chaineB} jusqu'à ce qu'une différence apparaîsse ou que la fin de la plus courte chaîne soit atteinte. Si aucune différence n'est trouvée, la macro renvoie 0. Sinon, la position de la 1\iere{} différence est renvoyée.
+ \item La tolérance stricte, activée par la commande \verb|\comparestrict|.\par
+ La macro compare les 2 chaînes. Si elles sont égales, elle renvoie 0 sinon la position de la 1\iere{} différence est renvoyée.
+\end{itemize}
+\smallskip
+
+L'ordre des 2 chaînes n'a aucune influence sur le comportement de la macro.\medskip
+
+Exemples en tolérance normale :\par\comparenormal
+\exemple|\StrCompare{abcd}{abcd}|
+\exemple|\StrCompare{abcd}{abc}|
+\exemple|\StrCompare{abc}{abcd}|
+\exemple|\StrCompare{éùçà}{éùçà}|
+\exemple|\StrCompare{a b c}{abc}|
+\exemple|\StrCompare{aaa}{baaa}|
+\exemple|\StrCompare{abc}{xyz}|
+\exemple|\StrCompare{123456}{123457}|
+\exemple|\StrCompare{abc}{}|
+\medskip
+
+Exemples en tolérance stricte :\par\comparestrict
+\exemple|\StrCompare{abcd}{abcd}|
+\exemple|\StrCompare{abcd}{abc}|
+\exemple|\StrCompare{abc}{abcd}|
+\exemple|\StrCompare{éùçà}{éùçà}|
+\exemple|\StrCompare{a b c}{abc}|
+\exemple|\StrCompare{aaa}{baaa}|
+\exemple|\StrCompare{abc}{xyz}|
+\exemple|\StrCompare{123456}{123457}|
+\exemple|\StrCompare{abc}{}|
+\comparenormal
+
+\section{Utilisation des macros à des fins de programmation}
+\label{programmation}
+\subsection{Verbatimiser vers une séquence de contrôle}
+La macro \verb|\verbtocs| permet le lire le contenu d'un argument \guill{verb} qui peut contenir les caractères spéciaux : \verb|&|, \verb|~|, \verb|\|, \verb|{|, \verb|}|, \verb|_|, \verb|#|, \verb|$|, \verb|^| et \verb|%|. Les caractères \guill{normaux} gardent leur catcodes naturels, sauf les caractères spéciaux qui prennent un catcode de 12. Ensuite, ces caractères sont assignés à une séquence de contrôle. La syntaxe complète est :\medskip
+
+\hfill\verb|\verbtocs|\ARGU{nom}|\argu{caractères}|\hfill{}
+\smallskip
+
+\argu{nom} est le nom d'une séquence de contrôle qui recevra à l'aide d'un \verb|\edef| les \argu{caractères} dont les caractères spéciaux auront reçu un catcode de 12. \argu{nom} contiendra donc du \texte{10,11,12}\voirdeftexte.\medskip
+
+Par défaut, le caractère délimitant le contenu verb est \guill{|}, étant entendu que ce caractère ne peut être à la fois le délimiteur et être contenu dans ce qu'il délimite. Au cas où on voudrait \guill{verbatimiser} des caractères contenant \guill{|}, on peut changer à tout moment le caractère délimitant le contenu verb par la macro :\par\medskip
+\hfill\verb|\setverbdelim|\ARGU{caractère}\hfill{}\smallskip
+
+Tout \argu{caractère} ayant un catcode de 11 ou 12 peut être utilisé\footnote{Plusieurs caractères peuvent être utilisés au risque d'alourdir la syntaxe de \texttt{\textbackslash verbtocs} ! Pour cette raison, avertissement sera émis si l'argument de \texttt{\textbackslash setverbdelim} contient plusieurs caractères.}. Par exemple, après \verb|\setverbdelim{=}|, un argument textuel verb aura cette syntaxe \verb|=|\argu{caractères}\verb|=|.\medskip
+
+Concernant ces arguments verb, il faut tenir compte des deux points suivants :
+\begin{itemize}
+ \item tous les caractères se trouvant avant |\argu{caractères}| seront ignorés;
+ \item à l'intérieur de l'argument textuel verb, tous les espaces sont comptabilisés même s'ils sont consécutifs.
+\end{itemize}
+\medskip
+
+exemple :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\resultat} |a & b{ c% d$ e \f|
+ \resultat
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\resultat} |a & b{ c% d$ e \f|
+ \resultat
+\end{minipage}
+
+\subsection{Tokenisation d'un texte vers une séquence de contrôle}
+Le processus inverse de ce qui a été vu au dessus consiste à transformer un \texte{10,11,12} en séquences de contrôle. Pour cela, on dispose de la macro :\medskip
+
+\hfill\verb|\tokenize|\ARGU{nom}\ARGU{séquence de contrôle}\hfill{}
+\smallskip
+
+\argu{séquence de contrôle} est développée le plus possible si l'on a invoqué \verb|\fullexpandarg| (voir page~\pageref{devarg}); elle n'est pas développée si l'on invoque \verb|\normalexpandarg|. Dans les deux cas, le développement doit donner du \texte{10,11,12}. Ensuite, ce \texte{10,11,12} est transformé en tokens puis assigné à l 'aide d'un \verb|\def| à la séquence de contrôle \argu{nom}.\medskip
+
+exemple :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\text}|\textbf{a} $\frac{1}{2}$|
+ texte : \text
+ \tokenize{\resultat}{\text}
+ \par
+ résultat : \resultat
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \raggedright
+ \verbtocs{\text}
+ |\textbf{a} $\frac{1}{2}$|
+ texte : \text
+ \tokenize{\resultat}{\text}
+ \par
+ résultat : \resultat
+\end{minipage}
+\medskip
+
+Il est bien évident à la dernière ligne, que l'appel à la séquence de contrôle \verb|\resultat| est ici possible puisque les séquences de contrôle qu'elle contient sont définies.\medskip
+
+\subsection{Développement d'une séquence de contrôle avant une conversion en verb}
+\subsubsection{La macro scancs}
+On peut souhaiter développer une séquence de contrôle avant de convertir ce développement en texte. Pour cela existe la macro :\medskip
+
+\hfill\verb|\scancs|\arguC{nombre}\ARGU{nom}\ARGU{séquence de contrôle}\hfill{}
+\smallskip
+
+Le \argu{nombre} vaut 1 par défaut et représente la profondeur à laquelle va être développée la \argu{séquence de contrôle} avant d'être transformée en caractères de catcode 12 (ou 10 pour l'espace) puis assignée à la séquence de contrôle \argu{nom} qui contiendra donc du \texte{10,12}\voirdeftexte.
+
+\subsubsection{Attention aux catcodes !}
+Prenons un cas simple où la \argu{séquence de contrôle} se développe en texte, comme dans l'exemple suivant :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\test{a b1 d}
+ \scancs{\resultat}{\test}
+ \resultat
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\test{a b1 d}
+ \scancs{\resultat}{\test}
+ \resultat
+\end{minipage}
+\medskip
+
+Mais attention au catcodes !
+
+Dans l'exemple précédent, \verb|\scancs{\resultat}{\test}| n'est pas équivalent à \verb|\edef\resultat{\test}|.\medskip
+
+En effet, dans le 1\ier{} cas avec \verb|\scancs{\resultat}{\test}|, \verb|\resultat| contient du \texte{10,12} (des caractères de catcode 12 et des espaces de catcode 10) et se développe en :\par
+\hfill\verb|a|${}_{12}$\ \verb*| |${}_{10}$\ \verb|b|${}_{12}$\ \verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|d|${}_{12}$\hfill{}
+\medskip
+
+Dans le le second cas avec \verb|\edef\resultat{\test}|, \verb|\resultat| contient des caractères de catcode 11 (les lettres), un caractère de catcode 12 (le chiffre 1) et des espaces de catcode 10, et se développe en :\par
+\hfill\verb|a|${}_{11}$\ \verb*| |${}_{10}$\ \verb|b|${}_{11}$\ \verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|d|${}_{11}$\hfill{}
+
+\subsubsection{Profondeur de développement}
+Si cela s'avère nécessaire, on peut aussi contrôler la profondeur de développement avec l'argument optionnel. Ainsi, dans l'exemple suivant, au 1\ier{} appel de \verb|\scancs|, la séquence de contrôle \verb|\c| subit un 3-developpement qui donne \og{}\verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|z|${}_{11}$\ \verb*| |${}_{10}$\ \verb|3|${}_{12}$\fg{} qui est transformé en \og{}\verb|1|${}_{12}$\ \verb*| |${}_{10}$\ \verb|z|${}_{12}$\ \verb*| |${}_{10}$\ \verb|3|${}_{12}$\fg{}.\smallskip
+
+Par contre, si le $n$-développement donne une séquence de contrôle, alors cette séquence de contrôle est transformée en caractères de catcode 12. Ainsi, au 2\ieme{} appel de \verb|\scancs|, la ligne \verb|\scancs[2]{\resultat}{\c}| procède au 2-développement de la séquence de contrôle \verb|\c| qui donne la séquence de contrôle \fbox{\texttt{\textbackslash a}} qui est transformée en \og{}\verb|\|${}_{12}$~\verb|a|${}_{12}$\fg{}.
+
+L'exemple montre toutes les profondeurs de développement jusqu'à la profondeur 0 :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{1 z 3}
+ \def\b{\a}
+ \def\c{\b}
+ \scancs[3]{\resultat}{\c}
+ \resultat\par
+ \scancs[2]{\resultat}{\c}
+ \resultat\par
+ \scancs[1]{\resultat}{\c}
+ \resultat\par
+ \scancs[0]{\resultat}{\c}
+ \resultat
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{1 z 3}
+ \def\b{\a}
+ \def\c{\b}
+ \scancs[3]{\resultat}{\c}
+ \resultat\par
+ \scancs[2]{\resultat}{\c}
+ \resultat\par
+ \scancs[1]{\resultat}{\c}
+ \resultat\par
+ \scancs[0]{\resultat}{\c}
+ \resultat
+\end{minipage}
+\medskip
+
+Il est bien évident qu'il faut s'assurer que le développement à la profondeur souhaitée soit possible, sous peine d'erreur à la compilation.\medskip
+
+\subsubsection{Développement de plusieurs séquences de contrôle}
+En toute rigueur, le 3\ieme{} argument \argu{séquence de contrôle} (ou l'un de ses développements) doit contenir une seule et unique séquence de contrôle qui elle seule sera développée. Si ce 3\ieme{} argument ou l'un ses développements contient plusieurs séquences de contrôle, la compilation s'arrête avec un message d'erreur invitant à utiliser la version étoilée. La macro étoilée, d'utilisation plus délicate et qu'il convient donc d'utiliser avec attention, permet en effet de développer \emph{toutes} les séquences de contrôle contenues dans le 3\ieme{} argument à la profondeur spécifiée dans le 1\ier{} argument. Voyons cela sur un exemple :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{LaTeX}
+ \def\b{est puissant}
+ \scancs*[1]{\resultat}{\a \b}
+ \resultat\par
+ \scancs*[2]{\resultat}{\a\space\b}
+ \resultat
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{LaTeX}
+ \def\b{est puissant}
+ \scancs*[1]{\resultat}{\a \b}
+ \resultat\par
+ \scancs*[2]{\resultat}{\a\space\b}
+ \resultat
+\end{minipage}
+\medskip
+
+Tout d'abord, un message d'attention a été généré à la compilation. Voyons sa signification\ldots\medskip
+
+En premier lieu, on constate qu'il manque une espace entre les mots \guill{LaTeX} et \guill{est}, bien qu'une espace ait été insérée entre les 2 séquences de contrôles \verb|\a| et \verb|\b|. Cela est dû à ce que, lors de la lecture de l'argument, \TeX{} ignore les espaces situées après les séquences de contrôle. Et donc, \verb|{\a \b}| est assimilé à \verb|{\a\b}|, quelque soit le nombre d'espaces insérées entre \verb|\a| et \verb|\b|. Pour avoir notre espace entre \guill{LaTeX} et \guill{est}, on aurait pu utiliser la séquence de contrôle \verb|\space| qui se développe en une espace, et écrire comme 3\ieme{} argument : \verb|{\a\space\b}|. On aurait aussi pu insérer une espace à la fin de la définition de \verb|\a| et écrire \verb|\def\a{LaTeX }|.\medskip
+
+Ensuite, il convient cependant de faire attention lorsqu'on utilise des profondeurs de développement supérieures à 1 : si une séquence de contrôle se $n$-développe en du \texte{10,11,12}, au développement suivant, les espaces seront avalées à la lecture. On le voit dans après la ligne \verb|\scancs*[2]{\result}{\a\space\b}| où \verb|\resultat| contient \guill{LaTeXestpuissant} où tous les espaces ont été mangés lors du 2-développement!\medskip
+
+De plus, et c'est aussi le sens du message d'avertissement généré par la version étoilée, il faut savoir que si le $n$-développement contient des accolades, celles-ci, tout comme les espaces, seront supprimées au développement suivant.\medskip
+
+Enfin, lors de l'utilisation de \verb|\scancs|, une espace est insérée après chaque séquence de contrôle. En effet, la primitive \verb|\detokenize| de $\varepsilon$-\TeX{} qui a été utilisée ici, insère une espace apès chaque séquence de contrôle. Il n'y a pas moyen de l'éviter.\medskip
+
+\subsubsection{Exemples}
+Dans l'exemple suivant, les séquences de contrôle subissent un 2-développement. \verb|\d| donne donc \verb|\b|, et \verb|\b| donne \verb|\textbf{a}\textit{b}|, et on constate bien qu'une espace est insérée après chaque séquence de contrôle. \par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{\textbf{a}\textit{b}}
+ \def\b{\a}
+ \def\c{\b}
+ \def\d{\c}
+ \scancs*[2]{\resultat}{\d\b}
+ \resultat
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{\textbf{a}\textit{b}}
+ \def\b{\a}
+ \def\c{\b}
+ \def\d{\c}
+ \scancs*[2]{\resultat}{\d\b}
+ \resultat
+\end{minipage}
+\medskip
+
+Voici un exemple illustrant la perte des accolades au développement suivant :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\a{1{2}}
+ \def\b{\a}
+ \scancs*[1]{\resultat}{\b{A}}
+ \resultat\par
+ \scancs*[2]{\resultat}{\b{A}}
+ \resultat\par
+ \scancs*[3]{\resultat}{\b{A}}
+ \resultat\par
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\a{1{2}}
+ \def\b{\a}
+ \scancs*[1]{\resultat}{\b{A}}
+ \resultat\par
+ \scancs*[2]{\resultat}{\b{A}}
+ \resultat\par
+ \scancs*[3]{\resultat}{\b{A}}
+ \resultat\par
+\end{minipage}
+\medskip
+
+Enfin, voici un dernier exemple où l'on met à profit l'espace inséré après chaque séquence de contrôle par \verb|\scancs| pour trouver la $n$\ieme{} séquence de contrôle dans le développement d'une séquence de contrôle.
+
+Dans l'exemple ci-dessous, on cherchera la 4\ieme{} séquence de contrôle dans \verb|\myCS| qui contient :\par\medskip
+\hfill\verb|\a xy{3 2}\b7\c123 {m}\d{8}\e|\hfill{}
+\medskip
+
+On cherche bien évidemment à obtenir \verb|\d| !\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\antislash}|\|
+ \newcommand\findcs[2]{%
+ \scancs[1]{\theCS}{#2}%
+ \tokenize{\theCS}{\theCS}%
+ \scancs[1]{\theCS}{\theCS}%
+ \StrBehind[#1]{\theCS}{\antislash}[\theCS]%
+ \StrBefore{\theCS}{ }[\theCS]%
+ \edef\theCS{\antislash\theCS}}
+ \verbtocs{\myCS}|\a xy{3 2}\b7\c123 {m}\d{8}\e|
+ % ici, \myCS contient du texte
+ \findcs{4}{\myCS}
+ \theCS\par
+ \def\myCS{\a xy{3 2}\b7\c123 {m}\d{8}\e}
+ % ici, \myCS contient des séquences de contrôle
+ \findcs{4}{\myCS}
+ \theCS
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\antislash}|\|
+ \newcommand\findcs[2]{%
+ \scancs[1]{\theCS}{#2}%
+ \tokenize{\theCS}{\theCS}%
+ \scancs[1]{\theCS}{\theCS}%
+ \StrBehind[#1]{\theCS}{\antislash}[\theCS]%
+ \StrBefore{\theCS}{ }[\theCS]%
+ \edef\theCS{\antislash\theCS}}
+ \verbtocs{\myCS}|\a xy{3 2}\b7\c123 {m}\d{8}\e|
+ % ici, \myCS contient du texte
+ \findcs{4}{\myCS}
+ \theCS\par
+ \def\myCS{\a xy{3 2}\b7\c123 {m}\d{8}\e}
+ % ici, \myCS contient des séquences de contrôle
+ \findcs{4}{\myCS}
+ \theCS
+\end{minipage}
+\medskip
+
+Au début de la macro \verb|\findcs|, les appels successifs à \verb|\tokenize| puis une deuxième fois à \verb|\scancs| sont nécessaires pour que la macro fonctionne dans le cas où l'argument est une séquence de contrôle se développant en du \texte{10,11,12} : de cette façon en \guill{tokenisant} puis \guill{detokenisant}, des espaces seront bien insérés après chaque séquence de contrôle.
+
+\subsection{À l'interieur d'une définition de macro}
+Certaines difficultés surviennent lorsque l'on se trouve à l'intérieur de la définition d'une macro, c'est-à-dire entre les accolades suivant un \verb|\def\macro| ou un \verb|\newcommand\macro|.\medskip
+
+Pour les mêmes raison qu'il est interdit d'employer la commande \verb|\verb| à l'intérieur de la définition d'une macro, les arguments textuels verb du type |\argu{caractères}| sont également interdits. Il faut donc observer la règle suivante :\par\medskip
+\hfill \textbf{Ne pas utiliser d'argument textuel verb \og{}|\argu{texte}|\fg{} à l'intérieur de la définition d'une macro}.\hfill{}\medskip
+
+Par conséquent, la macro \verb|\verbtocs| est interdite à l'intérieur de la définition d'une macro.\bigskip
+
+Mais alors, comment faire pour manipuler des arguments textuels verb et \guill{verbatimiser} dans les définitions de macro ?\bigskip
+
+Il y a la primitive \verb|\detokenize| de $\varepsilon$-\TeX, mais elle comporte des restrictions, entre autres :
+\begin{itemize}
+ \item les accolades doivent être équilibrées;
+ \item les espaces consécutifs sont ignorés;
+ \item les signes \verb|%| sont interdits;
+ \item une espace est ajoutée après chaque séquence de contrôle;
+ \item les caractères \verb|#| sont doublés.
+\end{itemize}
+\medskip
+
+Il est préférable d'utiliser la macro \verb|\scancs|, et définir avec \verb|\verbtocs| à l'extérieur des définitions de macros, des séquences de contrôle contenant des caractères spéciaux. On pourra aussi utiliser la macro \verb|\tokenize| pour transformer le résultat final (qui est une chaîne de caractères) en une séquence de contrôle. On peut voir des exemples utilisant ces macros page~\pageref{exemples}, à la fin de ce manuel.\medskip
+
+Dans l'exemple artificiel\footnote{On peut agir beaucoup plus simplement en utilisant la commande \texttt{\textbackslash detokenize}. Il suffit de définir la macro ainsi :\par\texttt{\textbackslash newcommand\textbackslash bracearg[1]\{\textbackslash detokenize\{\{\#1\}\}\}}} qui suit, on écrit une macro qui met son argument entre accolades. Pour cela, on définit en dehors de la définition de la macro 2 séquences de contrôles \verb|\Ob| et \verb|\Cb| contenant une accolade ouvrante et une accolade fermante. Ces séquences de contrôle sont ensuite développées et utilisées à l'intérieur de la macro pour obtenir le résultat voulu :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\Ob}|{|
+ \verbtocs{\Cb}|}|
+ \newcommand\bracearg[1]{%
+ \def\text{#1}%
+ \scancs*{\result}{\Ob\text\Cb}%
+ \result}
+ \bracearg{xstring}\par
+ \bracearg{\a}
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\Ob}|{|
+ \verbtocs{\Cb}|}|
+ \newcommand\bracearg[1]{%
+ \def\text{#1}%
+ \scancs*{\result}{\Ob\text\Cb}%
+ \result}
+ \bracearg{xstring}\par
+ \bracearg{\a}
+\end{minipage}
+
+\subsection{Macros étoilées}\label{macrosetoilees}
+Les macros manipulant les chaînes de caractères prennent en compte les catcodes des caractères. Pour s'affranchir d'éventuelles différences entre les catcodes des arguments et éviter des résultats inattendus, toutes ces macros disposent de version étoilées. Les versions étoilées convertissent tous les arguments textuels en chaîne de caractètres dont les catcodes sont 12, et 10 pour l'espace. Ces arguments ainsi modifiés sont transmis aux macros non étoilées.\medskip
+
+Voici un exemple :\par\smallskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \IfStrEq{\string a\string b}{ab}{vrai}{faux}\par
+ \IfStrEq*{\string a\string b}{ab}{vrai}{faux}
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \IfStrEq{\string a\string b}{ab}{vrai}{faux}\par
+ \IfStrEq*{\string a\string b}{ab}{vrai}{faux}
+\end{minipage}\smallskip
+
+Dans l'exemple ci-dessus, le premier argument contient \verb|{ab}| où, à cause de \verb|\string|, les 2 caractères ont un catcode de 12. Le deuxième argument est \verb|{ab}| où les caractères ont leurs catcodes naturels de 11. Les chaînes n'étant pas égales à cause des catcodes, le test est donc \emph{négatif} dans la version non étoilée.\medskip
+
+Voici un autre exemple :\par\smallskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \scancs[0]\montexte{abc}
+ \StrPosition{\montexte}{b}\par
+ \StrPosition*{\montexte}{b}\par
+ \end{boxedverbatim}
+ \hspace{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \scancs[0]\montexte{abc}
+ \StrPosition{\montexte}{b}\par
+ \StrPosition*{\montexte}{b}\par
+\end{minipage}\medskip
+
+La séquence de contrôle \verb|\montexte| contient \verb|{abc}| dont les catcodes valent 12 puisque \verb|\scancs| renvoie des chaînes de caractères de catcodes 12 et 10. La version non étoilée renvoie 0 ce qui signifie qu'elle considère que le caractère \og{}\verb|b|${}_{11}$\fg{} n'est pas contenu dans \og{}\verb|a|${}_{12}$\verb|b|${}_{12}$\verb|c|${}_{12}$\fg{}.\bigskip
+
+Pour les macros renvoyant une chaîne, si on emploie les versions étoilées, le résultat sera une chaîne de caractères dont les catcodes sont 12, et 10 pour l'espace. Ainsi après un \og\verb|\StrBefore*{a b c d}{c}[\montexte]|\fg{}, la séquence de contrôle \verb|\montexte| se développera en \og{}\verb|a|${}_{12}$\verb*| |${}_{10}$\verb|b|${}_{12}$\verb*| |${}_{10}$\fg{}.
+
+\subsection{Exemples d'utilisation en programmation}
+\label{exemples}
+Voici quelques exemples très simples d'utilisation des macros comme on pourrait en rencontrer en programmation.
+
+\subsubsection{Exemple 1}
+On cherche à remplacer les deux premiers \verb|\textit| par \verb|\textbf| dans la séquence de contrôle \verb|\myCS| qui contient :\par\smallskip
+\hfill\verb|\textit{A}\textit{B}\textit{C}|\hfill{}
+\medskip
+
+On cherche évidemment à obtenir : \textbf{A}\textbf{B}\textit{C}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\myCS{\textit{A}\textit{B}\textit{C}}
+ \scancs[1]{\text}{\myCS}
+ \StrSubstitute*[2]{\text}{textit}{textbf}[\text]
+ \tokenize{\myCS}{\text}
+ \myCS
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\myCS{\textit{A}\textit{B}\textit{C}}
+ \scancs[1]{\text}{\myCS}
+ \StrSubstitute*[2]{\text}{textit}{textbf}[\text]
+ \tokenize{\myCS}{\text}
+ \myCS
+\end{minipage}
+
+\subsubsection{Exemple 2}
+Cherchons à écrire une macro \verb|\tofrac| qui transforme une écriture du type \guill{a/b} par \guill{$\frac{a}{b}$} :\par\medskip
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \verbtocs{\csfrac}|\frac|%
+ \verbtocs{\Ob}|{|%
+ \verbtocs{\Cb}|}|%
+ \newcommand\tofrac[1]{%
+ \scancs[0]{\myfrac}{#1}%
+ \StrBefore{\myfrac}{/}[\num]%
+ \StrBehind{\myfrac}{/}[\den]%
+ \tokenize\myfrac{\csfrac\Ob\num\Cb\Ob\den\Cb}%
+ $\myfrac$}
+ \tofrac{15/9}
+ \tofrac{u_{n+1}/u_n}
+ \tofrac{a^m/a^n}
+ \tofrac{x+\sqrt{x}/\sqrt{x^2+x+1}}
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \verbtocs{\csfrac}|\frac|%
+ \verbtocs{\Ob}|{|%
+ \verbtocs{\Cb}|}|%
+ \newcommand\tofrac[1]{%
+ \scancs[0]{\myfrac}{#1}%
+ \StrBefore{\myfrac}{/}[\num]%
+ \StrBehind{\myfrac}{/}[\den]%
+ \tokenize\myfrac{\csfrac\Ob\num\Cb\Ob\den\Cb}%
+ $\myfrac$}
+ \tofrac{15/9}
+ \tofrac{u_{n+1}/u_n}
+ \tofrac{a^m/a^n}
+ \tofrac{x+\sqrt{x}/\sqrt{x^2+x+1}}
+\end{minipage}
+
+\subsubsection{Exemple 3}
+Soit une phrase composée de texte. Dans une séquence de contrôle \verb|\phrase|, essayons de mettre en gras le 1\ier{} mot qui suit le mot \guill{package}. Nous prendrons par exemple comme phrase :\par\medskip
+\hfill\verb|Le package xstring est nouveau.|\hfill{}\bigskip
+\setverbdelim{|}
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\phrase{Le package xstring est nouveau.}
+ \def\mot{package}
+ \StrBehind[1]{\phrase}{\mot}[\nom]
+ \IfBeginWith{\nom}{ }%
+ {\StrGobbleLeft{\nom}{1}[\nom]}%
+ {}%
+ \StrBefore{\nom}{ }[\nom]
+ \verbtocs{\avant}|\textbf{|
+ \verbtocs{\apres}|}|
+ \StrSubstitute[1]%
+ {\phrase}{\nom}{\avant\nom\apres}[\phrase]
+ \tokenize{\phrase}{\phrase}
+ \phrase
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\phrase{Le package xstring est nouveau.}
+ \def\mot{package}
+ \StrBehind[1]{\phrase}{\mot}[\nom]
+ \IfBeginWith{\nom}{ }%
+ {\StrGobbleLeft{\nom}{1}[\nom]}%
+ {}%
+ \StrBefore{\nom}{ }[\nom]
+ \verbtocs{\avant}|\textbf{|
+ \verbtocs{\apres}|}|
+ \StrSubstitute[1]%
+ {\phrase}{\nom}{\avant\nom\apres}[\phrase]
+ \tokenize{\phrase}{\phrase}
+ \phrase
+\end{minipage}
+
+\subsubsection{Exemple 4}
+Soit une séquence de contrôle \verb|\myCS| définie par un \verb|\def| contenant des séquences de contrôles avec leurs éventuels arguments. Comment intervertir les 2 premières séquences de contrôle ? On prendra comme exemple une séquence de contrôle contenant :\par\medskip
+\hfill\verb|\textbf{A}\textit{B}\texttt{C}|\hfill{}\bigskip
+
+On cherche à obtenir une séquence de contrôle finale contenant \verb|\textit{B}\textbf{A}\texttt{C}| et donnant : \textit{B}\textbf{A}\texttt{C}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \def\myCS{\textbf{A}\textit{B}\texttt{C}}
+ \scancs[1]{\chaine}{\myCS}
+ \verbtocs{\antislash}|\|
+ \StrBefore[3]{\chaine}{\antislash}[\firsttwo]
+ \StrBehind{\chaine}{\firsttwo}[\others]
+ \StrBefore[2]{\firsttwo}{\antislash}[\avant]
+ \StrBehind{\firsttwo}{\avant}[\apres]%
+ \tokenize{\myCS}{\apres\avant\others}%
+ résultat : \myCS
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \def\myCS{\textbf{A}\textit{B}\texttt{C}}
+ \scancs[1]{\chaine}{\myCS}
+ \verbtocs{\antislash}|\|
+ \StrBefore[3]{\chaine}{\antislash}[\firsttwo]
+ \StrBehind{\chaine}{\firsttwo}[\others]
+ \StrBefore[2]{\firsttwo}{\antislash}[\avant]
+ \StrBehind{\firsttwo}{\avant}[\apres]%
+ \tokenize{\myCS}{\apres\avant\others}%
+ résultat : \myCS
+\end{minipage}
+
+\subsubsection{Exemple 5}
+Soit une séquence de contrôle \verb|\myCS| définie par un \verb|\def| contenant des séquences de contrôles et des groupes entre accolades. Essayons de trouver le $n$\ieme{} groupe, c'est à dire ce qui se trouve entre la $n$\ieme{} paire d'accolades équilibrées. On prendra comme exemple une séquence de contrôle contenant :\par\medskip
+\hfill\verb|\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}|\hfill{}\medskip
+
+\begin{minipage}[r]{0.6\linewidth}
+ \hfill
+ \begin{boxedverbatim}
+ \newcount\occurr
+ \newcount\nbgroup
+ \newcommand\findgroup[2]{%
+ \scancs[1]{\chaine}{#2}%
+ \occurr=0
+ \nbgroup=0
+ \def\findthegroup{%
+ \StrBehind{\chaine}{\Obr}[\remain]%
+ \advance\occurr by 1% accolade fermante suivante
+ \StrBefore[\the\occurr]{\remain}{\Cbr}[\group]%
+ \StrCount{\group}{\Obr}[\nbA]%
+ \StrCount{\group}{\Cbr}[\nbB]%
+ \ifnum\nbA=\nbB% accolades équilibrées ?
+ \advance\nbgroup by 1
+ \ifnum\nbgroup<#1% si c'est pas le bon groupe
+ \StrBehind{\chaine}{\group}[\chaine]%
+ \occurr=0% on initialise \chaine et \occur
+ \expandafter\expandafter\expandafter
+ \findthegroup\expandafter% et on recommence
+ \fi
+ \else% accolades non équilibrées ?
+ % cherche accolade fermante suivante
+ \expandafter\findthegroup
+ \fi}
+ \findthegroup
+ \group}
+
+ \verbtocs{\Obr}|{|
+ \verbtocs{\Cbr}|}|
+ \def\myCS{\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}}
+ groupe 1: \findgroup{1}{\myCS}\par
+ groupe 2: \findgroup{2}{\myCS}\par
+ groupe 3: \findgroup{3}{\myCS}
+ \end{boxedverbatim}
+ \hspace*{0.3cm}
+\end{minipage}%
+\begin{minipage}[r]{0.3\linewidth}
+ \newcount\occurr
+ \newcount\nbgroup
+ \newcommand\findgroup[2]{%
+ \scancs[1]{\chaine}{#2}%
+ \occurr=0
+ \nbgroup=0
+ \def\findthegroup{%
+ \StrBehind{\chaine}{\Obr}[\remain]%
+ \advance\occurr by 1% accolade fermante suivante
+ \StrBefore[\the\occurr]{\remain}{\Cbr}[\group]%
+ \StrCount{\group}{\Obr}[\nbA]%
+ \StrCount{\group}{\Cbr}[\nbB]%
+ \ifnum\nbA=\nbB% accolades équilibrées ?
+ \advance\nbgroup by 1
+ \ifnum\nbgroup<#1% si c'est pas le bon groupe
+ \StrBehind{\chaine}{\group}[\chaine]%
+ \occurr=0% on initialise \chaine et \occur
+ \expandafter\expandafter\expandafter
+ \findthegroup\expandafter% et on recommence
+ \fi
+ \else% accolades non équilibrées ?
+ % cherche accolade fermante suivante
+ \expandafter\findthegroup
+ \fi}
+ \findthegroup
+ \group}
+
+ \verbtocs{\Obr}|{|
+ \verbtocs{\Cbr}|}|
+ \def\myCS{\a{1\b{2}}\c{3}\d{4\e{5}\f{6{7}}}}
+ groupe 1: \findgroup{1}{\myCS}\par
+ groupe 2: \findgroup{2}{\myCS}\par
+ groupe 3: \findgroup{3}{\myCS}
+\end{minipage}
+\medskip
+
+On peut observer qu'il faut deux compteurs, deux tests et une double récursivité pour trouver le bon groupe : un de chaque pour compter quelle accolade fermante va délimiter le groupe en cours, et l'autre pour compter quel groupe est examiné.\vspace{10pt}
+
+\begin{center}
+$\star$\par
+$\star$\quad$\star$
+\end{center}
+\vspace{10pt}
+
+C'est tout, j'espère que ce package vous sera utile !\par
+Merci de me signaler par email tout bug ou toute proposition d'amélioration\ldots\medskip
+
+Christian Tellechea
+\end{document} \ No newline at end of file