diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-12 22:10:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-12 22:10:33 +0000 |
commit | 1c26727cf69f1b86d327367894528711b41bff7d (patch) | |
tree | 5a5456ac80c5326c713ec2ccf8a844ce23504647 /Master/texmf-dist/source/latex/l3packages | |
parent | 464faeebf3487adf47a1b79022f04e9fa2279161 (diff) |
l3 (13oct19)
git-svn-id: svn://tug.org/texlive/trunk@52357 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3packages')
5 files changed, 40 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx b/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx index 92f3e82a371..9a10f7ef791 100644 --- a/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx +++ b/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx @@ -62,7 +62,7 @@ % }^^A % } % -% \date{Released 2019-05-28} +% \date{Released 2019-10-11} % % \maketitle % @@ -133,7 +133,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3keys2e}{2019-05-28}{} +\ProvidesExplPackage{l3keys2e}{2019-10-11}{} {LaTeX2e option processing using LaTeX3 keys} % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx b/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx index 1b6cbd36808..33f66c6589d 100644 --- a/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx @@ -64,7 +64,7 @@ % }^^A % } % -% \date{Released 2019-05-28} +% \date{Released 2019-10-11} % % \maketitle % @@ -167,7 +167,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xfp}{2019-05-28}{} +\ProvidesExplPackage{xfp}{2019-10-11}{} {L3 Floating point unit} % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx b/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx index fa1739eee5b..62600c37be0 100644 --- a/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx @@ -65,7 +65,7 @@ % }^^A % } % -% \date{Released 2019-05-28} +% \date{Released 2019-10-11} % % \maketitle % @@ -535,7 +535,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xfrac}{2019-05-28}{} +\ProvidesExplPackage{xfrac}{2019-10-11}{} {L3 Experimental split-level fractions} % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx b/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx index 6aee5f22f6f..2a0b842fbb9 100644 --- a/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx @@ -67,7 +67,7 @@ % }^^A % } % -% \date{Released 2019-05-28} +% \date{Released 2019-10-11} % % \maketitle % @@ -340,6 +340,7 @@ % mailing list. % % \subsection{Default values of arguments} +% \label{sec:defaultvaluesofarguments} % % Uppercase argument types (\texttt{O}, \texttt{D}, \ldots{}) allow to % specify a default value to be used when the argument is missing; their @@ -676,6 +677,23 @@ % followed by \cs{ProcessorB} to the tokens grabbed by the \texttt{m} % argument. % +% It might sometimes be useful to use the value of another argument as +% one of the arguments of a processor. For example, using the +% \cs{SplitList} processor defined below, +% \begin{verbatim} +% \NewDocumentCommand \foo { O{,} >{\SplitList{#1}} m } { \foobar{#2} } +% \foo{a,b;c,d} +% \end{verbatim} +% results in |\foobar| receiving the argument |{a}{b;c}{d}| because +% \cs{SplitList} receives as its two arguments the optional one (whose +% value here is the default, a comma) and the mandatory one. To +% summarize, first the arguments are searched for in the input, then any +% default argument is determined as explained in +% Section~\ref{sec:defaultvaluesofarguments}, then these default +% arguments are passed to any processor. When referring to arguments +% (through |#1|, |#2| and so on) in a processor, the arguments used are +% always those before applying any processor. +% % \begin{variable}{\ProcessedArgument} % \pkg{xparse} defines a very small set of processor functions. In the % main, it is anticipated that code writers will want to create their @@ -898,7 +916,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xparse}{2019-05-28}{} +\ProvidesExplPackage{xparse}{2019-10-11}{} {L3 Experimental document command parser} % \end{macrocode} % @@ -1552,11 +1570,13 @@ % \end{macro} % % \begin{macro}{\@@_args_process:} -% \begin{macro}{\@@_args_process_loop:nn, \@@_args_process_aux:n, \@@_args_process_aux:nn} +% \begin{macro}{\@@_args_process_loop:nn, \@@_args_process_aux:n} % Loop through arguments (stored in \cs{l_@@_args_tl}) and the % corresponding processors (in \cs{l_@@_process_all_tl}) % simultaneously, apply all processors for each argument and store the -% result back into \cs{l_@@_args_tl}. +% result back into \cs{l_@@_args_tl}. To allow processors to depend +% on other arguments, for every processor define a temporary auxiliary +% that receives all arguments \cs{l_@@_args_tl}. % \begin{macrocode} \cs_new_protected:Npn \@@_args_process: { @@ -1575,9 +1595,13 @@ \tl_put_right:No \l_@@_args_ii_tl { \exp_after:wN { \ProcessedArgument } } } -\cs_new_protected:Npn \@@_args_process_aux:n - { \exp_args:No \@@_args_process_aux:nn { \ProcessedArgument } } -\cs_new_protected:Npn \@@_args_process_aux:nn #1#2 { #2 {#1} } +\cs_new_protected:Npn \@@_args_process_aux:n #1 + { + \cs_generate_from_arg_count:NNnn \@@_tmp:w \cs_set:Npn + { \tl_count:N \l_@@_args_tl } {#1} + \exp_args:NNNo \exp_after:wN \@@_tmp:w \l_@@_args_tl + { \ProcessedArgument } + } % \end{macrocode} % \end{macro} % \end{macro} @@ -4336,6 +4360,7 @@ { \@@_peek_nonspace_aux:nNNTF { #1 ~ } #2 #3 {#4} {#5} } { #2 #3 { #4 } { #5 #1 } } } +% \end{macrocode} % \end{macro} % % \subsection{Messages} diff --git a/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx b/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx index 04aa51be36d..c12297b4edd 100644 --- a/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx @@ -63,7 +63,7 @@ % }^^A % } % -% \date{Released 2019-05-28} +% \date{Released 2019-10-11} % % \maketitle % @@ -682,7 +682,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xtemplate}{2019-05-28}{} +\ProvidesExplPackage{xtemplate}{2019-10-11}{} {L3 Experimental prototype document functions} % \end{macrocode} % |