texlive[45478] Master/texmf-dist: listofitems (5oct17)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 6 00:22:24 CEST 2017


Revision: 45478
          http://tug.org/svn/texlive?view=revision&revision=45478
Author:   karl
Date:     2017-10-06 00:22:24 +0200 (Fri, 06 Oct 2017)
Log Message:
-----------
listofitems (5oct17)

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.sty
    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	2017-10-05 20:49:39 UTC (rev 45477)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/README	2017-10-05 22:22:24 UTC (rev 45478)
@@ -4,14 +4,14 @@
              listofitems
                package
                
-                v1.3
+                v1.4
 
-             18/11/2016
+             05/10/2017
 ___________________________________
 
 Authors   : Christian Tellechea, Steven B. Segletes
 Maintainer: Christian Tellechea
-E-mail    : unbonpetit at openmailbox.org     (CT)
+E-mail    : unbonpetit at netc.fr (CT)
             steven.b.segletes.civ at mail.mil (SBS)
             Comments, bug reports and suggestions are welcome.
 Licence   : Released under the LaTeX Project Public License v1.3c or
@@ -27,4 +27,4 @@
 
 This package allows one to capture all the items of a list, for which
 the parsing character has been selected by the user, and to access any
-of these items with a simple syntax.
+of these items with a simple syntax.
\ No newline at end of file

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	2017-10-05 20:49:39 UTC (rev 45477)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex	2017-10-05 22:22:24 UTC (rev 45478)
@@ -113,7 +113,7 @@
 		\smallbreak
 		\americanloidate
 		\vskip1.5cm
-		{Christian \bsc{Tellechea}\footnote{\texttt{unbonpetit at openmailbox.org}}\par Steven B. \bsc{Segletes}\footnote{steven.b.segletes.civ at mail.mil}}
+		{Christian \bsc{Tellechea}\footnote{\texttt{unbonpetit at netc.fr}}\par Steven B. \bsc{Segletes}\footnote{steven.b.segletes.civ at mail.mil}}
 		\par
 	\endgroup
 	\vskip2cm

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	2017-10-05 20:49:39 UTC (rev 45477)
+++ trunk/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex	2017-10-05 22:22:24 UTC (rev 45478)
@@ -88,8 +88,8 @@
 			\catcode`\<13 \catcode`\>13 \def<{\begingroup$\langle$\itshape}\def>{$\rangle$\endgroup}%
 			\@ifstar\@sverb\@verb}
 \endgroup
-\def\longfrloidate at i#1/#2/#3\@nil{#3 \ifcase #2 \or janvier\or février\or mars\or avril\or mai\or juin\or juillet\or aout\or septembre\or octobre\or novembre\or décembre\fi\space#1}
-\edef\longfrloidate{\expandafter\longfrloidate at i\loidate\@nil}
+\def\longfrloidate at i#1/#2/#3\@nil{\number#3\relax\space \ifcase #2 \or janvier\or février\or mars\or avril\or mai\or juin\or juillet\or aout\or septembre\or octobre\or novembre\or décembre\fi\space#1}
+\def\longfrloidate{\expandafter\longfrloidate at i\loidate\@nil}
 \makeatother
 \begin{document}
 \parindent=0pt
@@ -105,7 +105,7 @@
 		\smallbreak
 		\longfrloidate
 		\vskip1.5cm
-		{Christian \bsc{Tellechea}\footnote{\texttt{unbonpetit at openmailbox.org}}\par Steven B. \bsc{Segletes}\footnote{steven.b.segletes.civ at mail.mil}}
+		{Christian \bsc{Tellechea}\footnote{\texttt{unbonpetit at netc.fr}}\par Steven B. \bsc{Segletes}\footnote{steven.b.segletes.civ at mail.mil}}
 		\par
 	\endgroup
 	\vskip2cm

Modified: trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.sty	2017-10-05 20:49:39 UTC (rev 45477)
+++ trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.sty	2017-10-05 22:22:24 UTC (rev 45478)
@@ -1,3 +1,3 @@
 \input listofitems.tex
-\ProvidesPackage\loiname[\loidate\space v\loiver\space Grab items in lists using user-specified sep char]
+\ProvidesPackage\loiname[\loidate\space v\loiver\space Grab items in lists using user-specified sep char (CT)]
 \endinput
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex	2017-10-05 20:49:39 UTC (rev 45477)
+++ trunk/Master/texmf-dist/tex/generic/listofitems/listofitems.tex	2017-10-05 22:22:24 UTC (rev 45478)
@@ -3,36 +3,32 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                                    %
 \def\loiname                 {listofitems}                           %
-\def\loiver                      {1.3}                              %
+\def\loiver                      {1.4}                               %
 %                                                                    %
-\def\loidate                  {2016/11/18}                           %
+\def\loidate                  {2017/10/05}                           %
 %                                                                    %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 % --------------------------------------------------------------------
-% 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.
+% Author     : Christian Tellechea, Steven B. Segletes
+% Status     : Maintained
+% Maintainer : Christian Tellechea
+% Email      : unbonpetit at netc.fr
+%              steven.b.segletes.civ at mail.mil
+% 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
+% Licence    : Released under the LaTeX Project Public License v1.3c
+%              or later, see http://www.latex-project.org/lppl.txt
+% Files      : 1) listofitems.tex
+%              2) listofitems.sty
+%              3) listofitems-fr.tex
+%              4) listofitems-fr.pdf
+%              5) listofitems-en.tex
+%              6) listofitems-en.pdf
+%              7) README
 % --------------------------------------------------------------------
-% This work has the LPPL maintenance status `maintained'.
-%
-% The Current Maintainer of this work is Christian Tellechea
-% email: unbonpetit at openmailbox.org
-%        Commentaires, suggestions et signalement de bugs bienvenus !
-%        Comments, bug reports and suggestions are welcome.
-% --------------------------------------------------------------------
-% L'extension listofitems est compos\'ee des 7 fichiers suivants :
-%   - code               : listofitems            (.tex et .sty)
-%   - manuel en francais : listofitems-fr         (.tex et .pdf)
-%   - manuel en anglais  : listofitems-en         (.tex et .pdf)
-%   - fichier lisezmoi   : README
-% --------------------------------------------------------------------
 \expandafter\edef\csname loi_restorecatcode\endcsname{\catcode\number`\_=\number\catcode`\_\relax}
 \catcode`\_11
 
@@ -70,19 +66,21 @@
 \long\def\loi_second#1#2{#2}
 \long\def\loi_firsttonil#1#2\_nil{#1}
 \long\def\loi_antefi#1#2\fi{#2\fi#1}
-\long\def\loi_swaparg#1#2{#2{#1}}
-\long\def\loi_exparg#1#2{\expandafter\loi_swaparg\expandafter{#2}{#1}}
-\long\def\loi_expafternil#1\_nil{\begingroup\def\loi_temp{\endgroup#1}\expandafter\loi_temp}
+\long\def\loi_exparg#1#2{\expandafter\loi_exparg_i\expandafter{#2}{#1}}% \loi_exparg{<a>}{<b>} devient <a>{<*b>}
+\long\def\loi_exparg_i#1#2{#2{#1}}
+\long\def\loi_expafter#1#2{\expandafter\loi_expafter_i\expandafter{#2}{#1}}% \loi_expafter{<a>}{<b>} devient <a><*b>
+\long\def\loi_expafter_i#1#2{#2#1}
 \def\loi_macroname{\loi_ifinrange\escapechar[[0:255]]{\expandafter\loi_gobarg}{}\string}
-\def\loi_argcsname#1#{\begingroup\def\loi_temp{\endgroup#1}\loi_argcsname_i}
-\def\loi_argcsname_i#1{\expandafter\loi_temp\csname#1\endcsname}
+\def\loi_argcsname#1#{\loi_argcsname_i{#1}}
+\def\loi_argcsname_i#1#2{\loi_expafter{#1}{\csname#2\endcsname}}
 
 %--- macros de test
-\def\loi_ifnum#1{\ifnum#1\expandafter\loi_first\else\expandafter\loi_second\fi}
+\long\def\loi_ifnum#1{\ifnum#1\expandafter\loi_first\else\expandafter\loi_second\fi}
 \long\def\loi_ifx#1{\ifx#1\expandafter\loi_first\else\expandafter\loi_second\fi}
 \long\def\loi_ifempty#1{\loi_exparg\loi_ifx{\expandafter\relax\detokenize{#1}\relax}}
 \def\loi_ifstar#1#2{\def\loi_ifstar_i{\loi_ifx{*\loi_nxttok}{\loi_first{#1}}{#2}}\futurelet\loi_nxttok\loi_ifstar_i}
-\long\def\loi_ifcs#1{% #1 est-il une sc ?
+\long\def\loi_ifprimitive#1{\edef\loi_tempa{\meaning#1}\edef\loi_tempb{\string#1}\loi_ifx{\loi_tempa\loi_tempb}}
+\long\def\loi_ifcs#1{% #1 est-il une sc (n'\'etant pas une primitive) ?
 	\loi_ifempty{#1}
 		\loi_second% si #1 est vide, faux
 		{\loi_ifspacefirst{#1}
@@ -90,7 +88,9 @@
 			{\loi_exparg\loi_ifempty{\loi_gobarg#1}% 1 seul token ?
 				{\begingroup \escapechar`\_
 					\if\expandafter\loi_firsttonil\string#1\_nil\expandafter\loi_firsttonil\string\relax\_nil
-						\endgroup\expandafter\loi_first
+						\loi_ifprimitive
+							{\endgroup\expandafter\loi_second}
+							{\endgroup\expandafter\loi_first}%
 					\else
 						\endgroup\expandafter\loi_second
 					\fi
@@ -106,7 +106,7 @@
 %      et pages 175 \`a 184 du livre "Apprendre \`a programmer en TeX"
 \def\loi_fornum#1=#2to#3\do{%
 	\edef#1{\number\numexpr#2}\edef\loi_sgncmp{\ifnum#1<\numexpr#3\relax>+\else<-\fi}%
-	\loi_argcsname\loi_fornum_i{loi_fornum_\string#1\expandafter}\expandafter{\number\numexpr#3\expandafter}\loi_sgncmp#1%
+	\expandafter\loi_fornum_i\csname loi_fornum_\string#1\expandafter\endcsname\expandafter{\number\numexpr#3\expandafter}\loi_sgncmp#1%
 }
 \long\def\loi_fornum_i#1#2#3#4#5#6{\def#1{\unless\ifnum#5#3#2\relax\loi_antefi{#6\edef#5{\number\numexpr#5#41\relax}#1}\fi}#1}
 
@@ -231,7 +231,7 @@
 		\advance\loi_nestcnt-1
 		\loi_argcsname\loi_let\loi_currentsep{loi_listofsep[\number\loi_nestcnt]}%
 		}
-		{\loi_expafternil\readlist_vi{#2}{}\_nil\loi_currentsep||\loi_quark||#2\_nil{#1}}% aller isoler le 1er item
+		{\loi_expafter{\readlist_vi{#2}{}}\loi_currentsep||\loi_quark||#2\_nil{#1}}% aller isoler le 1er item
 }
 \long\def\readlist_v#1#2{\readlist_vi{#2}{}#1||\loi_quark||#2\_nil}% #1=liste s\'eparateurs (s\'ep=||)  #2=chaine de tokens
 \long\def\readlist_vi#1#2#3||{% #1=liste restante   #2=dernier <sep utile>  #3=<sep courant>
@@ -375,4 +375,11 @@
       - macros \greadlist et \gitemtomacro pour la globalit\'e
 
 v1.3  18/11/2016
-      - bugs corrig\'es dans la gestion de la globalit\'e
\ No newline at end of file
+      - bugs corrig\'es dans la gestion de la globalit\'e
+
+v1.4  05/10/2017
+      - test \loi_ifprimitive ajout\'e au test \loi_ifcs
+      - suppression de \loi_expafternil, cr\'eation de \loi_expafter,
+        modification de \loi_argcsname
+      - correction d'un bug : \setsepchar{\par} ne provoque plus
+        d'erreur. \loi_ifnum devient \long
\ No newline at end of file



More information about the tex-live-commits mailing list