diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty index e87a832432f..9a7eab1fe1a 100644 --- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty +++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty @@ -60,7 +60,7 @@ } } \ExplSyntaxOff -\ProvidesExplPackage{xparse}{2024-05-08}{} +\ProvidesExplPackage{xparse}{2024-08-16}{} {L3 Experimental document command parser} \clist_new:N \l__cmd_options_clist \DeclareOption* { \clist_put_right:NV \l__cmd_options_clist \CurrentOption } @@ -239,7 +239,22 @@ { \__kernel_cmd_if_xparse:NTF #1 { - \tl_set:Ne \ArgumentSpecification { \tl_item:Nn #1 { 2 } } + \tl_set:Ne \ArgumentSpecification + { + \exp_args:No \tl_if_head_eq_meaning:nNTF {#1} \__cmd_start_optimized: + { + \prg_replicate:nn + { + \str_count:e + { + \exp_args:Nc \cs_parameter_spec:N + { \cs_to_str:N #1 \c_space_tl code } + } / 2 + } + { m } + } + { \tl_item:Nn #1 { 2 } } + } #2 } {#3} |