diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-08 03:00:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-08 03:00:28 +0000 |
commit | e5ffc42ed260285f76383ae18dd0f4a603c07fa8 (patch) | |
tree | 7d901aebae17ed14f1c9812c9339a88d68dc74e4 /macros/latex/contrib/xsim/code/xsim.sty | |
parent | ba86549c94b1e8b6b19bc82b01e85a7e513e7586 (diff) |
CTAN sync 201910080300
Diffstat (limited to 'macros/latex/contrib/xsim/code/xsim.sty')
-rw-r--r-- | macros/latex/contrib/xsim/code/xsim.sty | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/macros/latex/contrib/xsim/code/xsim.sty b/macros/latex/contrib/xsim/code/xsim.sty index 8570e7a186..01dcbd96b3 100644 --- a/macros/latex/contrib/xsim/code/xsim.sty +++ b/macros/latex/contrib/xsim/code/xsim.sty @@ -25,13 +25,13 @@ % If you have any ideas, questions, suggestions or bugs to report, please % feel free to contact me. % ---------------------------------------------------------------------------- -\RequirePackage {expl3,xparse} +\RequirePackage {expl3,xparse,l3keys2e} \ExplSyntaxOn -\tl_const:Nn \c_xsim_date_tl {2019/09/30} +\tl_const:Nn \c_xsim_date_tl {2019/10/06} \tl_const:Nn \c_xsim_version_major_number_tl {0} -\tl_const:Nn \c_xsim_version_minor_number_tl {12} +\tl_const:Nn \c_xsim_version_minor_number_tl {13} \tl_const:Nn \c_xsim_version_subrelease_tl {} \tl_const:Nx \c_xsim_version_number_tl { @@ -58,24 +58,25 @@ \bool_new:N \g_xsim_final_bool \bool_new:N \g_xsim_verbose_bool \bool_new:N \g_xsim_clear_aux_bool +\bool_new:N \l__xsim_write_to_file_bool -\keys_define:nn {xsim} +\keys_define:nn {xsim/package} { - final .bool_gset:N = \g_xsim_final_bool , - verbose .bool_gset:N = \g_xsim_verbose_bool , - clear-aux .bool_gset:N = \g_xsim_clear_aux_bool + final .bool_gset:N = \g_xsim_final_bool , + verbose .bool_gset:N = \g_xsim_verbose_bool , + clear-aux .bool_gset:N = \g_xsim_clear_aux_bool , + no-files .bool_gset_inverse:N = \g__xsim_write_to_file_bool , + no-files .initial:n = false } -\DeclareOption {final} - { \bool_gset_true:N \g_xsim_final_bool } +\ProcessKeysPackageOptions {xsim/package} -\DeclareOption {verbose} - { \bool_gset_true:N \g_xsim_verbose_bool } - -\DeclareOption {clear-aux} - { \bool_gset_true:N \g_xsim_clear_aux_bool } - -\ProcessOptions \scan_stop: +\prg_new_conditional:Npnn \xsim_if_write_to_files: {p,T,F,TF} + { + \bool_if:NTF \g__xsim_write_to_file_bool + { \prg_return_true: } + { \prg_return_false: } + } % -------------------------------------------------------------------------- |