From 1cbbd7b2417e7e77710bec38f8245c0d2231dddd Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 2 Feb 2023 03:04:21 +0000 Subject: CTAN sync 202302020304 --- macros/latex/contrib/l3packages/CHANGELOG.md | 11 ++++++- macros/latex/contrib/l3packages/README.md | 2 +- macros/latex/contrib/l3packages/l3keys2e.dtx | 4 +-- macros/latex/contrib/l3packages/l3keys2e.pdf | Bin 412658 -> 412281 bytes macros/latex/contrib/l3packages/xfp.dtx | 4 +-- macros/latex/contrib/l3packages/xfp.pdf | Bin 332357 -> 331993 bytes macros/latex/contrib/l3packages/xfrac.dtx | 4 +-- macros/latex/contrib/l3packages/xfrac.pdf | Bin 482935 -> 482562 bytes macros/latex/contrib/l3packages/xparse.dtx | 4 +-- macros/latex/contrib/l3packages/xparse.pdf | Bin 534579 -> 534213 bytes macros/latex/contrib/l3packages/xtemplate.dtx | 44 +++++++++++++++++++++++--- macros/latex/contrib/l3packages/xtemplate.pdf | Bin 450100 -> 450311 bytes 12 files changed, 58 insertions(+), 15 deletions(-) (limited to 'macros/latex/contrib/l3packages') diff --git a/macros/latex/contrib/l3packages/CHANGELOG.md b/macros/latex/contrib/l3packages/CHANGELOG.md index 6ad508a7f3..6af289ef1e 100644 --- a/macros/latex/contrib/l3packages/CHANGELOG.md +++ b/macros/latex/contrib/l3packages/CHANGELOG.md @@ -7,6 +7,14 @@ this project uses date-based 'snapshot' version identifiers. ## [Unreleased] +## [2023-02-01] + +### Added +- `\DeclareInstanceCopy` + +### Changes +- Set only known keys in `\SetTemplateKeys` + ## [2023-01-16] ### Fixed @@ -214,7 +222,8 @@ this project uses date-based 'snapshot' version identifiers. - Switch to ISO date format - Improve cross-module use of internal functions -[Unreleased]: https://github.com/latex3/latex3/compare/2023-01-16...HEAD +[Unreleased]: https://github.com/latex3/latex3/compare/2023-02-01...HEAD +[2023-02-01]: https://github.com/latex3/latex3/compare/2023-01-16...2023-02-01 [2023-01-16]: https://github.com/latex3/latex3/compare/2022-12-17...2023-01-16 [2022-12-17]: https://github.com/latex3/latex3/compare/2022-06-22...2022-12-17 [2022-06-22]: https://github.com/latex3/latex3/compare/2022-06-16...2022-06-22 diff --git a/macros/latex/contrib/l3packages/README.md b/macros/latex/contrib/l3packages/README.md index bd73e2a0be..95e8deca21 100644 --- a/macros/latex/contrib/l3packages/README.md +++ b/macros/latex/contrib/l3packages/README.md @@ -1,7 +1,7 @@ LaTeX3 High-Level Concepts ========================== -Release 2023-01-16 +Release 2023-02-01 Overview -------- diff --git a/macros/latex/contrib/l3packages/l3keys2e.dtx b/macros/latex/contrib/l3packages/l3keys2e.dtx index e72854c2f1..599f68f54f 100644 --- a/macros/latex/contrib/l3packages/l3keys2e.dtx +++ b/macros/latex/contrib/l3packages/l3keys2e.dtx @@ -62,7 +62,7 @@ % }^^A % } % -% \date{Released 2023-01-16} +% \date{Released 2023-02-01} % % \maketitle % @@ -154,7 +154,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3keys2e}{2023-01-16}{} +\ProvidesExplPackage{l3keys2e}{2023-02-01}{} {LaTeX2e option processing using LaTeX3 keys} % \end{macrocode} % diff --git a/macros/latex/contrib/l3packages/l3keys2e.pdf b/macros/latex/contrib/l3packages/l3keys2e.pdf index 9455410190..2b68217a40 100644 Binary files a/macros/latex/contrib/l3packages/l3keys2e.pdf and b/macros/latex/contrib/l3packages/l3keys2e.pdf differ diff --git a/macros/latex/contrib/l3packages/xfp.dtx b/macros/latex/contrib/l3packages/xfp.dtx index 836c5e3b55..16c975e049 100644 --- a/macros/latex/contrib/l3packages/xfp.dtx +++ b/macros/latex/contrib/l3packages/xfp.dtx @@ -63,7 +63,7 @@ % }^^A % } % -% \date{Released 2023-01-16} +% \date{Released 2023-02-01} % % \maketitle % @@ -171,7 +171,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xfp}{2023-01-16}{} +\ProvidesExplPackage{xfp}{2023-02-01}{} {L3 Floating point unit} % \end{macrocode} % diff --git a/macros/latex/contrib/l3packages/xfp.pdf b/macros/latex/contrib/l3packages/xfp.pdf index f33457d2d9..7c90dbe0a8 100644 Binary files a/macros/latex/contrib/l3packages/xfp.pdf and b/macros/latex/contrib/l3packages/xfp.pdf differ diff --git a/macros/latex/contrib/l3packages/xfrac.dtx b/macros/latex/contrib/l3packages/xfrac.dtx index 596d639f4c..f09029f9ef 100644 --- a/macros/latex/contrib/l3packages/xfrac.dtx +++ b/macros/latex/contrib/l3packages/xfrac.dtx @@ -65,7 +65,7 @@ % }^^A % } % -% \date{Released 2023-01-16} +% \date{Released 2023-02-01} % % \maketitle % @@ -535,7 +535,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xfrac}{2023-01-16}{} +\ProvidesExplPackage{xfrac}{2023-02-01}{} {L3 Experimental split-level fractions} % \end{macrocode} % diff --git a/macros/latex/contrib/l3packages/xfrac.pdf b/macros/latex/contrib/l3packages/xfrac.pdf index b61304d37e..d1995a4d6a 100644 Binary files a/macros/latex/contrib/l3packages/xfrac.pdf and b/macros/latex/contrib/l3packages/xfrac.pdf differ diff --git a/macros/latex/contrib/l3packages/xparse.dtx b/macros/latex/contrib/l3packages/xparse.dtx index 97dd2f8fd9..15981e5210 100644 --- a/macros/latex/contrib/l3packages/xparse.dtx +++ b/macros/latex/contrib/l3packages/xparse.dtx @@ -67,7 +67,7 @@ % }^^A % } % -% \date{Released 2023-01-16} +% \date{Released 2023-02-01} % % \maketitle % @@ -1064,7 +1064,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xparse}{2023-01-16}{} +\ProvidesExplPackage{xparse}{2023-02-01}{} {L3 Experimental document command parser} % \end{macrocode} % diff --git a/macros/latex/contrib/l3packages/xparse.pdf b/macros/latex/contrib/l3packages/xparse.pdf index f0cf92604c..16140647f9 100644 Binary files a/macros/latex/contrib/l3packages/xparse.pdf and b/macros/latex/contrib/l3packages/xparse.pdf differ diff --git a/macros/latex/contrib/l3packages/xtemplate.dtx b/macros/latex/contrib/l3packages/xtemplate.dtx index eb9ae86e94..42d00c8657 100644 --- a/macros/latex/contrib/l3packages/xtemplate.dtx +++ b/macros/latex/contrib/l3packages/xtemplate.dtx @@ -63,7 +63,7 @@ % }^^A % } % -% \date{Released 2023-01-16} +% \date{Released 2023-02-01} % % \maketitle % @@ -475,6 +475,15 @@ % then inserts the appropriate code into the input stream. % \end{function} % +% \begin{function}{\DeclareInstanceCopy} +% \begin{syntax} +% \cs{DeclareInstanceCopy} +% ~~\Arg{object type} \Arg{instance1} \Arg{instance2} +% \end{syntax} +% Copies the \meta{values} for \meta{instance1} for an +% \meta{object type} to \meta{instance2}. +% \end{function} +% % \section{Document interface} % % After the instances have been chosen, document commands must be @@ -702,7 +711,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xtemplate}{2023-01-16}{} +\ProvidesExplPackage{xtemplate}{2023-02-01}{} {L3 Experimental prototype document functions} % \end{macrocode} % @@ -1987,6 +1996,27 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\@@_copy_instance:nnnn} +% Copy--paste an instance +% \begin{macrocode} +\cs_new_protected:Npn \@@_copy_instance:nnnn #1#2#3#4 + { + \@@_if_instance_exist:nnnTF {#1} {#2} {#3} + { + \@@_recover_values:n { #1 / #2 / #3 } + \@@_store_values:n { #1 / #2 / #4 } + \cs_set_eq:cc { \c_@@_instances_root_tl #1 / #2 / #4 } + { \c_@@_instances_root_tl #1 / #2 / #3 } + } + { + \msg_error:nnxx { xtemplate } { unknown-instance } + {#1} {#3} + } + } +% \end{macrocode} +% \end{macro} +% +% % \begin{macro}{\@@_edit_instance:nnnn} % \begin{macro}{\@@_edit_instance_aux:nnnnn} % \begin{macro}{\@@_edit_instance_aux:nonnn} @@ -1994,7 +2024,7 @@ % variation is the source of the values to use. When editing, they are % recovered from the previous instance run. % \begin{macrocode} -\cs_new_protected:Npn \@@_edit_instance:nnnn #1#2#3 +\cs_new_protected:Npn \@@_edit_instance:nnnn #1#2#3#4 { \@@_if_instance_exist:nnnTF {#1} {#2} {#3} { @@ -2002,7 +2032,7 @@ \prop_get:NnN \l_@@_values_prop { from~template } \l_@@_tmp_tl \@@_edit_instance_aux:nonnn {#1} \l_@@_tmp_tl - {#2} {#3} + {#2} {#3} {#4} } { \msg_error:nnxx { xtemplate } { unknown-instance } @@ -2783,6 +2813,7 @@ % \begin{macro}{\EditTemplateDefaults} % \begin{macro}{\DeclareInstance} % \begin{macro}{\DeclareCollectionInstance} +% \begin{macro}{\DeclareInstanceCopy} % \begin{macro}{\EditInstance} % \begin{macro}{\EditCollectionInstance} % \begin{macro}{\UseTemplate} @@ -2803,6 +2834,8 @@ { \@@_declare_instance:nnnnn {#1} {#3} { } {#2} {#4} } \cs_new_protected:Npn \DeclareCollectionInstance #1#2#3#4#5 { \@@_declare_instance:nnnnn {#2} {#4} {#1} {#3} {#5} } +\cs_new_protected:Npn \DeclareInstanceCopy #1#2#3 + { \@@_copy_instance:nnnn {#1} { } {#2} {#3} } \cs_new_protected:Npn \EditTemplateDefaults #1#2#3 { \@@_edit_defaults:nnn {#1} {#2} {#3} } \cs_new_protected:Npn \EditInstance #1#2#3 @@ -2828,6 +2861,7 @@ % \end{macro} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macro}{\ShowTemplateCode} % \begin{macro}{\ShowTemplateDefaults} @@ -2888,7 +2922,7 @@ % A friendly wrapper % \begin{macrocode} \cs_new_protected:Npn \SetTemplateKeys #1#2#3 - { \keys_set:nn { template / #1 / #2 } {#3} } + { \keys_set_known:nnN { template / #1 / #2 } {#3} \l_@@_tmp_clist } % \end{macrocode} % \end{macro} % diff --git a/macros/latex/contrib/l3packages/xtemplate.pdf b/macros/latex/contrib/l3packages/xtemplate.pdf index ce2f8a6227..eee7287443 100644 Binary files a/macros/latex/contrib/l3packages/xtemplate.pdf and b/macros/latex/contrib/l3packages/xtemplate.pdf differ -- cgit v1.2.3