summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-17 21:32:40 +0000
committerKarl Berry <karl@freefriends.org>2020-03-17 21:32:40 +0000
commitd3055981f6f2eef5eaf0ed6e1407c5c46ba77172 (patch)
tree5024a0fad0ef81a7be8f224c6f523337e69823d6 /Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex
parent636cbf03f6dcdc84f121e242abcf036015800524 (diff)
xsim (17mar20)
git-svn-id: svn://tug.org/texlive/trunk@54380 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex
index 422963792f3..cdd23e3a209 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex
@@ -94,7 +94,7 @@
% #1: random list id
% #2: sequence variable to set list from
\cs_new_protected:Npn \xsim_save_random_list:nN #1#2
- {
+ { % TODO: check if #2 is empty
\xsim_random_list_if_exist:nF {#1}
{ \xsim_new_random_list:n {#1} }
\xsim_random_list_if_empty:nT {#1}
@@ -103,6 +103,7 @@
\xsim_add_property_to_aux:nn {random}
{ {#1} { \xsim_use_random_list:nn {#1} {,} } }
}
+\cs_generate_variant:Nn \xsim_save_random_list:nN {x}
% #1: collection
% #2: number of items
@@ -142,7 +143,7 @@
{ \l__xsim_tmpa_int }
\g__xsim_random_list_seq
}
- \xsim_save_random_list:nN
+ \xsim_save_random_list:xN
{ \int_to_alph:n { \g__xsim_random_list_id_int } }
\g__xsim_random_list_seq
\xsim_verbose:x