summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty')
-rw-r--r--Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty20
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
index b9743d48f7e..94fa2667b3c 100644
--- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
+++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
@@ -60,19 +60,25 @@
}
}
\ExplSyntaxOff
-\ProvidesExplPackage{xparse}{2021-05-07}{}
+\ProvidesExplPackage{xparse}{2021-05-27}{}
{L3 Experimental document command parser}
\clist_new:N \l__cmd_options_clist
\DeclareOption* { \clist_put_right:NV \l__cmd_options_clist \CurrentOption }
\ProcessOptions \relax
-\keys_define:nn { ltcmd }
+\cs_set_protected:Npn \__cmd_tmp:w #1
{
- log-declarations .bool_set:N = \l__cmd_log_bool ,
- log-declarations .initial:n = false
+ \keys_define:nn { ltcmd }
+ {
+ log-declarations .bool_set:N = \l__cmd_log_bool ,
+ log-declarations .initial:n = false
+ }
+ \keys_set:nV { ltcmd } \l__cmd_options_clist
+ \bool_if:NF \l__cmd_log_bool
+ { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
}
-\keys_set:nV { ltcmd } \l__cmd_options_clist
-\bool_if:NF \l__cmd_log_bool
- { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
+\msg_if_exist:nnTF { cmd } { define-command }
+ { \__cmd_tmp:w { cmd } }
+ { \__cmd_tmp:w { ltcmd } }
\cs_gset_protected:Npn \__cmd_normalize_arg_spec_loop:n #1
{
\quark_if_recursion_tail_stop:n {#1}