diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-10 20:06:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-10 20:06:19 +0000 |
commit | 628eea3f8781ad62db9ab791bf8dc7887cb3c682 (patch) | |
tree | fe43a888a937250537f8630100c51c8697fcab4c /Master/texmf-dist/tex/generic/listofitems | |
parent | 2a7a4bc5f7b280171baee6973331f681d20ac23f (diff) |
listofitems (10mar24)
git-svn-id: svn://tug.org/texlive/trunk@70556 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/listofitems')
-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 |