diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/listofitems/listofitems.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/listofitems/listofitems.tex | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/generic/listofitems/listofitems.tex b/Master/texmf-dist/tex/generic/listofitems/listofitems.tex index 419bb233bfa..13008a3f75b 100644 --- a/Master/texmf-dist/tex/generic/listofitems/listofitems.tex +++ b/Master/texmf-dist/tex/generic/listofitems/listofitems.tex @@ -3,9 +3,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % \def\loiname {listofitems} % -\def\loiver {1.64} % +\def\loiver {1.65} % % % -\def\loidate {2024/02/10} % +\def\loidate {2024/03/09} % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -95,7 +95,8 @@ } {% }% - \string} + \string +} \def\loi_argcsname#1#{\loi_argcsname_a{#1}} \def\loi_argcsname_a#1#2{\loi_expafter{#1}{\csname#2\endcsname}} \long\def\loi_addtomacro#1#2{\loi_exparg{\def#1}{#1#2}} @@ -263,7 +264,7 @@ }% }% } -\long\def\loi_count_occur#1\in#2:#3{% compte le nombre d'occurrences de #1 dans #2 et met le résultat dans la macro #3 +\long\def\loi_count_occur#1\in#2\_nil#3{% compte le nombre d'occurrences de #1 dans #2 et met le résultat dans la macro #3 ##BUGFIX v1.65 \long\def\loi_count_occur_a##1##2#1##3\_nil{% \loi_ifempty{##3} {% @@ -281,8 +282,8 @@ \loi_second } {% - \loi_count_occur#1\in#3:\loi_tempa - \loi_count_occur#2\in#3:\loi_tempb + \loi_count_occur#1\in#3\_nil\loi_tempa + \loi_count_occur#2\in#3\_nil\loi_tempb \loi_ifnum{\loi_tempa=\loi_tempb\relax}% }% } @@ -601,7 +602,7 @@ {% \long\def\readlist_i##1\_nil##2{% \loi_exparg{\loi_exparg\loi_grabpaired_expr\loi_listofpair}{\loi_gobarg##1}{#2}\loi_grabpaired_result\loi_grabpaired_remain - \loi_exparg{\loi_exparg{\readlist_j{##2}}{\loi_grabpaired_remain}}{\loi_grabpaired_result}{#2}}%{#} + \loi_exparg{\loi_exparg{\readlist_j{##2}}{\loi_grabpaired_remain}}{\loi_grabpaired_result}{#2}}% }% }% \readlist_i\relax% le \relax meuble l'argument délimité @@ -877,4 +878,8 @@ v1.64 10/02/2024 \listlen) - la primitive \expanded est désormais obligatoire - code source UFT8, manuel compilé avec luaLaTeX - - code plus lisiblement formaté
\ No newline at end of file + - code plus lisiblement formaté + ---------------------------------------------------------------------- +v1.65 09/03/2024 + - bug corrigé dans la définition de \loi_count_occur, l'argument ne + doit _pas_ être délimité par ":"
\ No newline at end of file |