diff options
author | Karl Berry <karl@freefriends.org> | 2022-07-14 20:19:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-07-14 20:19:30 +0000 |
commit | e5c590d3d29f3dcc26b77a59a737da6d5803a07e (patch) | |
tree | e20168e2ce156f7101cafb157defca305a5a5daa /Master/texmf-dist/source/latex/l3kernel/l3text.dtx | |
parent | 76db0908b0aa00e1078c6f3a26619ac5d4b731e2 (diff) |
l3kernel (14jul22)
git-svn-id: svn://tug.org/texlive/trunk@63894 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3text.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3text.dtx | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx index 45ed617bd79..1a8b2cc6a0d 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2022-07-04} +% \date{Released 2022-07-14} % % \maketitle % @@ -701,6 +701,7 @@ % \@@_expand_explicit:N , % \@@_expand_exclude:N % } +% \begin{macro}[EXP]{\@@_expand_exclude_switch:Nnnnn} % \begin{macro}[EXP]{\@@_expand_exclude:nN} % \begin{macro}[EXP]{\@@_expand_exclude:NN} % \begin{macro}[EXP]{\@@_expand_exclude:Nw} @@ -960,17 +961,26 @@ } % \end{macrocode} % Next we exclude math commands: this is mainly as there \emph{might} be an -% \cs{ensuremath}. +% \cs{ensuremath}. The switching command for case needs special handling +% as it has to work by meaning. % \begin{macrocode} \cs_new:Npn \@@_expand_exclude:N #1 { - \exp_args:Ne \@@_expand_exclude:nN + \cs_if_eq:NNTF #1 \text_case_switch:nnnn + { \@@_expand_exclude_switch:Nnnnn #1 } { - \exp_not:V \l_text_math_arg_tl - \exp_not:V \l_text_expand_exclude_tl - \exp_not:N \text_case_switch:nnnn + \exp_args:Ne \@@_expand_exclude:nN + { + \exp_not:V \l_text_math_arg_tl + \exp_not:V \l_text_expand_exclude_tl + } + #1 } - #1 + } +\cs_new:Npn \@@_expand_exclude_switch:Nnnnn #1#2#3#4#5 + { + \@@_expand_store:n { #1 {#2} {#3} {#4} {#5} } + \@@_expand_loop:w } \cs_new:Npn \@@_expand_exclude:nN #1#2 { @@ -1237,6 +1247,7 @@ % \end{macro} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macro} % { |