texlive[46302] Master/texmf-dist: listofitems (13jan18)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 13 23:26:15 CET 2018


Revision: 46302
          http://tug.org/svn/texlive?view=revision&revision=46302
Author:   karl
Date:     2018-01-13 23:26:15 +0100 (Sat, 13 Jan 2018)
Log Message:
-----------
listofitems (13jan18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/listofitems/README
    trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf
    trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex
    trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf
    trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex
    trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex

Modified: trunk/Master/texmf-dist/doc/generic/listofitems/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/listofitems/README	2018-01-13 22:25:57 UTC (rev 46301)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/README	2018-01-13 22:26:15 UTC (rev 46302)
@@ -4,9 +4,9 @@
              listofitems
                package
                
-                v1.51
+                v1.52
 
-             24/10/2017
+             13/01/2018
 ___________________________________
 
 Authors   : Christian Tellechea, Steven B. Segletes

Modified: trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex	2018-01-13 22:25:57 UTC (rev 46301)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex	2018-01-13 22:26:15 UTC (rev 46302)
@@ -222,8 +222,7 @@
 The macro \verb|\foosep| is created. It is used with the syntax 
   \verb|\foosep[<index>]| and allows access to the parsing-separator that follows the 
   item of rank \verb|<index>|. 
-The last parsing-separator (the one following the last item) is implicitly 
-  defined by \listofitems. 
+The last parsing-separator (the one following the last item) is empty. 
 If the \verb|<index>| is empty, \verb|\foosep[]| is empty.
 
 \paragraph{Select several possible parsing separators}

Modified: trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex	2018-01-13 22:25:57 UTC (rev 46301)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex	2018-01-13 22:26:15 UTC (rev 46302)
@@ -158,7 +158,8 @@
 
 Si l'index est vide, alors \verb|\foo[]| se développe en la \verb|<liste>| entière.
 
-La macro \verb|\foosep| est créé. Elle s'utilise avec la syntaxe \verb|\foosep[<index>]| et permet d'accéder au séparateur qui suit l'élément de rang \verb|<index>|. Le dernier séparateur (celui qui suit le dernier élément) est défini par \listofitems. Si l'\verb|<index>| est vide, \verb|\foosep[]| a un développement vide.
+\paragraph{Accéder à un séparateur}
+Lorsque \verb|\readlist\foo{<liste>}| est exécuté, la macro \verb|\foosep| est créé. Elle s'utilise avec la syntaxe \verb|\foosep[<index>]| et permet d'accéder au séparateur qui suit l'élément de rang \verb|<index>|. Le dernier séparateur (celui qui suit le dernier élément) est vide. Si l'\verb|<index>| est vide, \verb|\foosep[]| a un développement vide.
 
 \paragraph{Choisir plusieurs séparateurs possibles}
 Pour spécifier plusieurs séparateurs possibles, il faut utiliser l'opérateur \textbf{OU} noté \og\verb-||-\fg{}. On peut par exemple utiliser cette fonctionnalité pour isoler les termes dans une somme algébrique :

Modified: trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex	2018-01-13 22:25:57 UTC (rev 46301)
+++ trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex	2018-01-13 22:26:15 UTC (rev 46302)
@@ -3,13 +3,12 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                                    %
 \def\loiname                 {listofitems}                           %
-\def\loiver                      {1.51}                              %
+\def\loiver                      {1.52}                              %
 %                                                                    %
-\def\loidate                  {2017/10/24}                           %
+\def\loidate                  {2018/01/13}                           %
 %                                                                    %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-% --------------------------------------------------------------------
 % Author     : Christian Tellechea, Steven B. Segletes
 % Status     : Maintained
 % Maintainer : Christian Tellechea
@@ -18,7 +17,7 @@
 % Package URL: https://www.ctan.org/pkg/listofitems
 % Bug tracker: https://framagit.org/unbonpetit/listofitems/issues
 % Repository : https://framagit.org/unbonpetit/listofitems/tree/master
-% Copyright  : Christian Tellechea 2017
+% Copyright  : Christian Tellechea 2017-2018
 % Licence    : Released under the LaTeX Project Public License v1.3c
 %              or later, see http://www.latex-project.org/lppl.txt
 % Files      : 1) listofitems.tex
@@ -28,7 +27,7 @@
 %              5) listofitems-en.tex
 %              6) listofitems-en.pdf
 %              7) README
-% --------------------------------------------------------------------
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \expandafter\edef\csname loi_restorecatcode\endcsname{\catcode\number`\_=\number\catcode`\_\relax}
 \catcode`\_11
 
@@ -185,15 +184,10 @@
 %%%%%%%%%%%%%%%%%%%%%% macro publique \readlist %%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newcount\loi_nestcnt
-\def\greadlist{%
-	\let\loi_def\gdef \let\loi_edef\xdef \def\loi_let{\global\let}%
+\def\greadlist{\let\loi_def\gdef\let\loi_edef\xdef\def\loi_let{\global\let}\readlist_o}%
+\def\readlist{\let\loi_def\def\let\loi_edef\edef\let\loi_let\let\readlist_o}
+\def\readlist_o{%
 	\loi_nestcnt1 % niveau initial = 1
-	\loi_argcsname\loi_let{loi_previndex[\number\loi_nestcnt]}\empty
-	\loi_ifstar{\_removeextremespacestrue\readlist_i}{\_removeextremespacesfalse\readlist_i}%
-}
-\def\readlist{%
-	\let\loi_def\def \let\loi_edef\edef \let\loi_let\let
-	\loi_nestcnt1 % niveau initial = 1
 	\loi_argcsname\let{loi_previndex[\number\loi_nestcnt]}\empty
 	\loi_ifstar{\_removeextremespacestrue\readlist_i}{\_removeextremespacesfalse\readlist_i}%
 }
@@ -228,6 +222,7 @@
 \long\def\readlist_iv#1#2{% #1=compteur d'index  #2=liste d'\'el\'ements \`a examiner
 	\loi_ifempty{#2}
 		{\loi_argcsname\loi_edef{\loi_listname len[\csname loi_previndex[\number\loi_nestcnt]\endcsname0]}{\number\numexpr#1-1\relax}%
+		\loi_argcsname\loi_let{\loi_listname sep[\csname loi_previndex[\number\loi_nestcnt]\endcsname\number\numexpr#1-1\relax]}\empty% le dernier <sep> est <vide>
 		\advance\loi_nestcnt-1
 		\loi_argcsname\loi_let\loi_currentsep{loi_listofsep[\number\loi_nestcnt]}%
 		}
@@ -388,4 +383,7 @@
       - correction d'un bug dans \loi_ifcs
 
 v1.51 24/10/2017
-      - correction d'un bug dans \loi_ifcs
\ No newline at end of file
+      - correction d'un bug dans \loi_ifcs
+
+v1.52 13/01/2018
+      - le dernier s\'eparateur est <vide>
\ No newline at end of file



More information about the tex-live-commits mailing list