diff options
author | Norbert Preining <norbert@preining.info> | 2021-02-05 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-02-05 03:01:00 +0000 |
commit | 6dd01829674e94f8b6b4829e703e6e0686f07a25 (patch) | |
tree | 2d7666cb4df65d2e581d1c20dc5df6b826a2ac63 /macros/latex/contrib/xsim/xsim.sty | |
parent | c18f29fc8bbdc114e808b53b99e9244054483190 (diff) |
CTAN sync 202102050301
Diffstat (limited to 'macros/latex/contrib/xsim/xsim.sty')
-rw-r--r-- | macros/latex/contrib/xsim/xsim.sty | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/macros/latex/contrib/xsim/xsim.sty b/macros/latex/contrib/xsim/xsim.sty index 157fd3eb82..c802477528 100644 --- a/macros/latex/contrib/xsim/xsim.sty +++ b/macros/latex/contrib/xsim/xsim.sty @@ -29,10 +29,10 @@ \ExplSyntaxOn -\tl_const:Nn \c_xsim_date_tl {2021/02/02} +\tl_const:Nn \c_xsim_date_tl {2021/02/03} \tl_const:Nn \c_xsim_version_major_number_tl {0} \tl_const:Nn \c_xsim_version_minor_number_tl {20} -\tl_const:Nn \c_xsim_version_subrelease_tl {b} +\tl_const:Nn \c_xsim_version_subrelease_tl {c} \tl_const:Nx \c_xsim_version_number_tl { \c_xsim_version_major_number_tl . @@ -1497,7 +1497,7 @@ \xsim_verbose:n { Saving~ #3~ environment~ type~ `#1'~ id~ `#2' } \xsim_set_property:nnnn {#1} {#2} {#3-body} {#4} \xsim_if_exchange:nnnF {#1} {#2} {#3} - { \xsim_set_property:nnnn {#1} {#2} {solution-body} {#3} } + { \xsim_set_property:nnnn {#1} {#2} {solution-body} {#4} } } \cs_new:Npn \__xsim_save_environment_body_end: { } @@ -1608,7 +1608,9 @@ { \xsim_if_write_to_files:TF { - \__xsim_set_file_signature:nnn {#1} {#2} {#3} + \xsim_if_exchange:nnnTF {#1} {#2} {#3} + { \__xsim_set_file_signature:nnn {#1} {#2} {exercise} } + { \__xsim_set_file_signature:nnn {#1} {#2} {#3} } \file_if_exist:VTF \l__xsim_file_path_and_name_tl { \prg_return_true: } { \prg_return_false: } @@ -1656,8 +1658,8 @@ { \__xsim_set_file_signature:nnn {#1} {#2} {#3} } \xsim_if_write_to_files:TF { - \file_if_exist:nTF { \exp_not:V \l__xsim_file_path_and_name_tl } - { \file_input:n { \exp_not:V \l__xsim_file_path_and_name_tl } } + \file_if_exist:VTF \l__xsim_file_path_and_name_tl + { \file_input:V \l__xsim_file_path_and_name_tl } { \xsim_verbose:n { File~ `\l__xsim_file_path_and_name_tl'~ doesn't~ exist. } @@ -4816,7 +4818,7 @@ { \XSIMifblankTF {#1} {#2} {} } \NewExpandableDocumentCommand \XSIMifblankF {+m+m} - { \XSIMifblankTF {#1} {} {#2} {} } + { \XSIMifblankTF {#1} {} {#2} } % ---------------------------------------------------------------------------- |