summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-13 22:26:15 +0000
committerKarl Berry <karl@freefriends.org>2018-01-13 22:26:15 +0000
commit4cc1370e31979d579fabb2561b6de643adde68d9 (patch)
tree90dafa44c09ca347bfd067e7ec5f1aa056702103
parenta4e9c5d7905538e43846cfce2a67a41ccb495f9f (diff)
listofitems (13jan18)
git-svn-id: svn://tug.org/texlive/trunk@46302 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/generic/listofitems/README4
-rw-r--r--Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdfbin368857 -> 369013 bytes
-rw-r--r--Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex3
-rw-r--r--Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdfbin332231 -> 332550 bytes
-rw-r--r--Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex3
-rw-r--r--Master/texmf-dist/tex/generic/listofitems/listofitems.tex26
6 files changed, 17 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/generic/listofitems/README b/Master/texmf-dist/doc/generic/listofitems/README
index 3f54ce0bf69..0e0c3b5560a 100644
--- a/Master/texmf-dist/doc/generic/listofitems/README
+++ b/Master/texmf-dist/doc/generic/listofitems/README
@@ -4,9 +4,9 @@ ___________________________________
listofitems
package
- v1.51
+ v1.52
- 24/10/2017
+ 13/01/2018
___________________________________
Authors : Christian Tellechea, Steven B. Segletes
diff --git a/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf b/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf
index e1dd5d41321..2ad46be1f3d 100644
--- a/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf
+++ b/Master/texmf-dist/doc/generic/listofitems/listofitems-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex b/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex
index d178e5e73f8..d44bae56932 100644
--- a/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex
+++ b/Master/texmf-dist/doc/generic/listofitems/listofitems-en.tex
@@ -222,8 +222,7 @@ If the index is empty, \verb|\foo[]| produces the complete \verb|<list>|.
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}
diff --git a/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf b/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf
index f60c4e73a4c..db32bd99660 100644
--- a/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf
+++ b/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex b/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex
index 783dace854f..27e44bf8764 100644
--- a/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex
+++ b/Master/texmf-dist/doc/generic/listofitems/listofitems-fr.tex
@@ -158,7 +158,8 @@ D'une façon générale, si une \verb|<liste>| a une longueur $n$, alors l'index
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 :
diff --git a/Master/texmf-dist/tex/generic/listofitems/listofitems.tex b/Master/texmf-dist/tex/generic/listofitems/listofitems.tex
index 39634b434b3..5d4c776d246 100644
--- a/Master/texmf-dist/tex/generic/listofitems/listofitems.tex
+++ b/Master/texmf-dist/tex/generic/listofitems/listofitems.tex
@@ -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,14 +184,9 @@
%%%%%%%%%%%%%%%%%%%%%% macro publique \readlist %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcount\loi_nestcnt
-\def\greadlist{%
- \let\loi_def\gdef \let\loi_edef\xdef \def\loi_let{\global\let}%
- \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
+\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\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 @@ v1.5 06/10/2017
- 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