diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/expl3/l3clist.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/expl3/l3clist.sty | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/expl3/l3clist.sty b/Master/texmf-dist/tex/latex/expl3/l3clist.sty index 33051453762..b9dacde3d00 100644 --- a/Master/texmf-dist/tex/latex/expl3/l3clist.sty +++ b/Master/texmf-dist/tex/latex/expl3/l3clist.sty @@ -48,7 +48,7 @@ %% %% ----------------------------------------------------------------------- \RequirePackage{l3names} -\GetIdInfo$Id: l3clist.dtx 1362 2009-05-28 20:19:21Z joseph $ +\GetIdInfo$Id: l3clist.dtx 1441 2009-08-05 19:23:23Z joseph $ {L3 Experimental comma separated lists} \ProvidesExplPackage {\filename}{\filedate}{\fileversion}{\filedescription} @@ -71,6 +71,15 @@ \cs_new_eq:NN \clist_gset_eq:cN \cs_gset_eq:cN \cs_new_eq:NN \clist_gset_eq:Nc \cs_gset_eq:Nc \cs_new_eq:NN \clist_gset_eq:cc \cs_gset_eq:cc +\cs_new:Npn \clist_set_from_seq_aux:NNN #1#2#3 { + \cs_set:Npn \seq_elt:w ##1 \seq_elt_end: ##2 { + \exp_not:n {##1} + \quark_if_nil:NF ##2 { , ##2 } + } + #1 #2 { #3 \q_nil } +} +\cs_new:Npn \clist_set_from_seq:NN { \clist_set_from_seq_aux:NNN \tl_set:Nx } +\cs_new:Npn \clist_gset_from_seq:NN { \clist_set_from_seq_aux:NNN \tl_gset:Nx } \prg_new_eq_conditional:NNn \clist_if_empty:N \tl_if_empty:N {p,TF,T,F} \prg_new_eq_conditional:NNn \clist_if_empty:c \tl_if_empty:c {p,TF,T,F} \cs_new_nopar:Npn \clist_if_empty_err:N #1 { |