diff options
Diffstat (limited to 'macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex')
-rw-r--r-- | macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex b/macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex index f44525f170..436511bcf5 100644 --- a/macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex +++ b/macros/latex/contrib/profcollege/latex/PfCRangementNombres.tex @@ -1,7 +1,7 @@ %%% % Rangement des nombres %%% -\setKVdefault[ClesRgt]{Croissant,Decroissant=false,Strict,Fraction=false,Details=false} +\setKVdefault[ClesRgt]{Croissant,Decroissant=false,Strict,Fraction=false,Details=false,Seul=false} \dtlexpandnewvalue% \DTLgnewdb{mtnumedb}% @@ -53,7 +53,12 @@ \itemtomacro\ListeRgt[\xcnt]\y% \DTLnewdbentry{mtRGTdb}{numeric}{\y}% }% -% % +% % + \ifboolKV[ClesRgt]{Seul}{% + \xdef\PfCListeRgtRecup{}% + \dtlsort{numeric}{mtRGTdb}{\dtlicompare}% + \DTLforeach{mtRGTdb}{\numeroDonnee=numeric}{\xdef\PfCListeRgtRecup{\PfCListeRgtRecup \numeroDonnee\DTLiflastrow{}{,}}}% + }{% \ifboolKV[ClesRgt]{Decroissant}{% % On trie la liste \dtlsort{numeric=descending}{mtRGTdb}{\dtlicompare}% @@ -64,4 +69,5 @@ \ensuremath{\DTLforeach{mtRGTdb}{\numeroDonnee=numeric}{\num{\numeroDonnee}\DTLiflastrow{}{\ifboolKV[ClesRgt]{Strict}{<}{\leqslant}}}}% }% }% +}% }%
\ No newline at end of file |