From 68b2e8de533b0fa7353ece3997bfd87a34ff458a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 5 Feb 2022 21:33:23 +0000 Subject: l3 (5feb22) git-svn-id: svn://tug.org/texlive/trunk@61903 c570f23f-e606-0410-a88d-b1316a301751 --- .../l3experimental/l3benchmark/l3benchmark.sty | 4 +- .../tex/latex/l3experimental/l3bitset/l3bitset.sty | 2 +- .../tex/latex/l3experimental/l3draw/l3draw.sty | 4 +- .../latex/l3experimental/l3graphics/l3graphics.sty | 4 +- .../latex/l3experimental/l3opacity/l3opacity.sty | 4 +- .../latex/l3experimental/l3str/l3str-format.sty | 4 +- .../l3experimental/l3sys-shell/l3sys-shell.sty | 4 +- .../tex/latex/l3experimental/xcoffins/xcoffins.sty | 4 +- .../tex/latex/l3experimental/xgalley/l3galley.sty | 4 +- .../tex/latex/l3experimental/xgalley/xgalley.sty | 4 +- .../texmf-dist/tex/latex/l3kernel/expl3-code.tex | 145 +++++++++++++++------ .../tex/latex/l3kernel/expl3-generic.tex | 2 +- Master/texmf-dist/tex/latex/l3kernel/expl3.ltx | 2 +- Master/texmf-dist/tex/latex/l3kernel/expl3.sty | 2 +- 14 files changed, 129 insertions(+), 60 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3benchmark/l3benchmark.sty b/Master/texmf-dist/tex/latex/l3experimental/l3benchmark/l3benchmark.sty index 4ae4d86161f..7b54fcc0c1f 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3benchmark/l3benchmark.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3benchmark/l3benchmark.sty @@ -6,7 +6,7 @@ %% %% l3benchmark.dtx (with options: `package') %% -%% Copyright (C) 2018-2021 The LaTeX Project +%% Copyright (C) 2018-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -20,7 +20,7 @@ %% %% File: l3benchmark.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3benchmark}{2021-11-12}{} +\ProvidesExplPackage{l3benchmark}{2022-02-05}{} {L3 Experimental benchmarking} \fp_new:N \g_benchmark_duration_target_fp \fp_gset:Nn \g_benchmark_duration_target_fp { 1 } diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty b/Master/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty index b6984dc454c..4432b33d208 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: l3bitset.dtx -\ProvidesExplPackage{l3bitset}{2021-11-12}{} +\ProvidesExplPackage{l3bitset}{2022-02-05}{} {L3 Experimental bitset support} \cs_new_protected:Npn \bitset_new:N #1 { diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3draw/l3draw.sty b/Master/texmf-dist/tex/latex/l3experimental/l3draw/l3draw.sty index 4a5d2b8eb92..fbfe2908518 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3draw/l3draw.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3draw/l3draw.sty @@ -14,7 +14,7 @@ %% l3draw-state.dtx (with options: `package') %% l3draw-transforms.dtx (with options: `package') %% -%% Copyright (C) 2018-2021 The LaTeX Project +%% Copyright (C) 2018-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -28,7 +28,7 @@ %% %% File: l3draw.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3draw}{2021-11-12}{} +\ProvidesExplPackage{l3draw}{2022-02-05}{} {L3 Experimental core drawing support} \scan_new:N \s__draw_mark \scan_new:N \s__draw_stop diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3graphics/l3graphics.sty b/Master/texmf-dist/tex/latex/l3experimental/l3graphics/l3graphics.sty index 913a74aaa7f..a052de7518d 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3graphics/l3graphics.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3graphics/l3graphics.sty @@ -6,7 +6,7 @@ %% %% l3graphics.dtx (with options: `package') %% -%% Copyright (C) 2019-2021 The LaTeX Project +%% Copyright (C) 2019-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -20,7 +20,7 @@ %% %% File: l3graphics.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3graphics}{2021-11-12}{} +\ProvidesExplPackage{l3graphics}{2022-02-05}{} {L3 Experimental graphics inclusion support} \ior_new:N \l__graphics_tmp_ior \tl_new:N \l__graphics_tmp_tl diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3opacity/l3opacity.sty b/Master/texmf-dist/tex/latex/l3experimental/l3opacity/l3opacity.sty index 25a405a27f5..df90c3478c3 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3opacity/l3opacity.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3opacity/l3opacity.sty @@ -6,7 +6,7 @@ %% %% l3opacity.dtx (with options: `package') %% -%% Copyright (C) 2021 The LaTeX Project +%% Copyright (C) 2021,2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -20,7 +20,7 @@ %% %% File: l3opacity.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3opacity}{2021-11-12}{} +\ProvidesExplPackage{l3opacity}{2022-02-05}{} {L3 Experimental opacity support} \cs_new_protected:Npn \opacity_select:n #1 { \__opacity_select:nN {#1} \__opacity_backend_select:n } diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-format.sty b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-format.sty index 3f2bb4309a7..9ca33411af2 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-format.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-format.sty @@ -6,7 +6,7 @@ %% %% l3str-format.dtx (with options: `package') %% -%% Copyright (C) 2011-2021 The LaTeX Project +%% Copyright (C) 2011-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -20,7 +20,7 @@ %% %% File: l3str-format.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3str-format}{2021-11-12}{} +\ProvidesExplPackage{l3str-format}{2022-02-05}{} {L3 Experimental string formatting} \cs_generate_variant:Nn \use:nn { nf } \cs_generate_variant:Nn \use:nnn { fnf } diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3sys-shell/l3sys-shell.sty b/Master/texmf-dist/tex/latex/l3experimental/l3sys-shell/l3sys-shell.sty index d0d5e2bca72..3584a776156 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3sys-shell/l3sys-shell.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3sys-shell/l3sys-shell.sty @@ -6,7 +6,7 @@ %% %% l3sys-shell.dtx (with options: `package') %% -%% Copyright (C) 2018-2021 The LaTeX Project +%% Copyright (C) 2018-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -20,7 +20,7 @@ %% %% File: l3sys-shell.dtx \RequirePackage{expl3} -\ProvidesExplPackage{l3sys-shell}{2021-11-12}{} +\ProvidesExplPackage{l3sys-shell}{2022-02-05}{} {L3 Experimental system shell functions} \scan_new:N \s__sys_stop \quark_new:N \q__sys_nil diff --git a/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty b/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty index 38442e8587f..f3ccc5818ce 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty @@ -6,7 +6,7 @@ %% %% xcoffins.dtx (with options: `package') %% -%% Copyright (C) 2010-2021 The LaTeX Project +%% Copyright (C) 2010-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: xcoffins.dtx -\ProvidesExplPackage{xcoffins}{2021-11-12}{} +\ProvidesExplPackage{xcoffins}{2022-02-05}{} {L3 Experimental design level coffins} \keys_define:nn { coffin } { diff --git a/Master/texmf-dist/tex/latex/l3experimental/xgalley/l3galley.sty b/Master/texmf-dist/tex/latex/l3experimental/xgalley/l3galley.sty index 07ab8d0ab38..20faae1e90f 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/xgalley/l3galley.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/xgalley/l3galley.sty @@ -6,7 +6,7 @@ %% %% l3galley.dtx (with options: `package') %% -%% Copyright (C) 2010-2021 The LaTeX Project +%% Copyright (C) 2010-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -32,7 +32,7 @@ }% \endinput } -\ProvidesExplPackage{l3galley}{2021-11-12}{} +\ProvidesExplPackage{l3galley}{2022-02-05}{} {L3 Experimental galley code} \int_new:N \l__galley_tmp_int \seq_new:N \g__galley_tmpa_seq diff --git a/Master/texmf-dist/tex/latex/l3experimental/xgalley/xgalley.sty b/Master/texmf-dist/tex/latex/l3experimental/xgalley/xgalley.sty index b4ac834f378..a741b024460 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/xgalley/xgalley.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/xgalley/xgalley.sty @@ -6,7 +6,7 @@ %% %% xgalley.dtx (with options: `package') %% -%% Copyright (C) 2010-2021 The LaTeX Project +%% Copyright (C) 2010-2022 The LaTeX Project %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: xgalley.dtx -\ProvidesExplPackage{xgalley}{2021-11-12}{} +\ProvidesExplPackage{xgalley}{2022-02-05}{} {L3 Experimental galley} \RequirePackage{xtemplate,l3galley} \clist_new:N \l__galley_tmpa_clist diff --git a/Master/texmf-dist/tex/latex/l3kernel/expl3-code.tex b/Master/texmf-dist/tex/latex/l3kernel/expl3-code.tex index 23d911d0fc0..99f5218c8d0 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/expl3-code.tex +++ b/Master/texmf-dist/tex/latex/l3kernel/expl3-code.tex @@ -70,7 +70,7 @@ %% and all files in that bundle must be distributed together. %% %% File: expl3.dtx -\def\ExplFileDate{2022-01-21}% +\def\ExplFileDate{2022-02-05}% \begingroup \def\next{\endgroup}% \expandafter\ifx\csname PackageError\endcsname\relax @@ -178,11 +178,11 @@ \def\ShortText{Required primitives not found}% \def\LongText% {% - LaTeX3 requires the e-TeX primitives and additional functionality as - described in the README file. + The L3 programming layer requires the e-TeX primitives and additional + functionality as described in the README file. \LineBreak These are available in the engines\LineBreak - - pdfTeX v1.40\LineBreak + - pdfTeX v1.40.0\LineBreak - XeTeX v0.99992\LineBreak - LuaTeX v1.10\LineBreak - e-(u)pTeX mid-2012\LineBreak @@ -190,25 +190,15 @@ \LineBreak }% \ifnum0% - \expandafter\ifx\csname pdfstrcmp\endcsname\relax + \expandafter\ifx\csname expanded\endcsname\relax + \ifx\csname pdfstrcmp\endcsname\relax\else 1\fi \else - \expandafter\ifx\csname pdftexversion\endcsname\relax - \expandafter\ifx\csname Ucharcat\endcsname\relax - \expandafter\ifx\csname kanjiskip\endcsname\relax - \else - 1% - \fi - \else - 1% - \fi + \expandafter\ifx\csname luatexversion\endcsname\relax + 1% \else - \ifnum\pdftexversion<140 \else 1\fi + \ifnum\luatexversion<110 \else 1\fi \fi \fi - \expandafter\ifx\csname directlua\endcsname\relax - \else - \ifnum\luatexversion<110 \else 1\fi - \fi =0 % \newlinechar`\^^J % \def\LineBreak{\noexpand\MessageBreak}% @@ -13608,22 +13598,6 @@ { \__keys_value_requirement:nn { forbidden } {#1} } \cs_new_protected:cpn { \c__keys_props_root_str .value_required:n } #1 { \__keys_value_requirement:nn { required } {#1} } -\group_begin: - \cs_set_protected:Npn \__keys_tmp:nn #1#2 - { - \quark_if_recursion_tail_stop:n {#1} - \cs_new_eq:cc - { \c__keys_props_root_str . #2 } - { \c__keys_props_root_str . #1 } - \__keys_tmp:nn - } - \__keys_tmp:nn - { legacy_if_set:n } { if } - { tl_set:N } { store } - { usage:n } { usage } - { \q_recursion_tail } { } - \q_recursion_stop -\group_end: \cs_new_protected:Npn \keys_set:nn #1#2 { \use:x @@ -28324,12 +28298,14 @@ } \scan_new:N \s__color_stop \cs_new_protected:Npn \__color_select:N #1 - { \exp_after:wN \__color_select:nn #1 } -\cs_new_protected:Npn \__color_select:nn #1#2 { - \use:c { __color_backend_select_ #1 :n } {#2} + \exp_after:wN \__color_select:nn #1 \group_insert_after:N \__color_backend_reset: } +\cs_new_protected:Npn \__color_select_math:N #1 + { \exp_after:wN \__color_select:nn #1 } +\cs_new_protected:Npn \__color_select:nn #1#2 + { \use:c { __color_backend_select_ #1 :n } {#2} } \tl_new:N \l__color_current_tl \tl_set:Nn \l__color_current_tl { { gray } { 0 } } @@ -28832,6 +28808,99 @@ \tl_set:Nx #1 { { \l_color_fixed_model_tl } { \l__color_value_tl } } } +\tl_new:N \l_color_math_active_tl +\tl_set:Nn \l_color_math_active_tl { ' } +\seq_new:N \g__color_math_seq +\cs_new_protected:Npn \color_math:nn #1#2 + { + \__color_math:nn {#2} + { \__color_parse:nN {#1} \l__color_current_tl } + } +\cs_new_protected:Npn \color_math:nnn #1#2#3 + { + \__color_math:nn {#3} + { + \__color_select_main:Nw \l__color_current_tl + #1 / / \s__color_mark #2 / / \s__color_stop + } + } +\cs_new_protected:Npn \__color_math:nn #1#2 + { + \seq_gpush:NV \g__color_math_seq \l__color_current_tl + #2 + \__color_select_math:N \l__color_current_tl + #1 + \__color_math_scan:w + } +\cs_new_protected:Npn \__color_math_scan:w + { + \peek_remove_filler:n + { + \peek_catcode:NTF \c_alignment_token + { \__color_math_scan_end: } + { \__color_math_scan_auxi: } + } + } +\cs_new_protected:Npn \__color_math_scan_auxi: + { + \token_case_meaning:NnTF \l_peek_token + { + \c_math_subscript_token { } + \c_math_superscript_token { } + } + { \__color_math_scripts:Nw } + { + \token_case_meaning:NnTF \l_peek_token + { + \tex_limits:D { \tex_limits:D } + \tex_nolimits:D { \tex_nolimits:D } + \tex_displaylimits:D { \tex_displaylimits:D } + } + { \__color_math_scan:w \use_none:n } + { \__color_math_scan_auxii: } + } + } +\cs_new_protected:Npn \__color_math_scan_auxii: + { + \tl_map_inline:Nn \l_color_math_active_tl + { + \token_if_eq_meaning:NNT \l_peek_token ##1 + { + \tl_map_break:n + { + \use_i:nn + { \__color_math_scan_auxiii:N ##1 } + } + } + \__color_math_scan_end: + } + } +\cs_new_protected:Npn \__color_math_scan_auxiii:N #1 + { + \exp_after:wN \exp_after:wN \exp_after:wN \__color_math_scan:w + \char_generate:nn { `#1 } { 13 } + } +\cs_new_protected:Npn \__color_math_scan_end: + { + \__color_backend_reset: + \seq_gpop:NN \g__color_math_seq \l__color_current_tl + } +\cs_new_protected:Npn \__color_math_scripts:Nw #1 + { + #1 + \c_group_begin_token + \c_group_begin_token + \seq_get:NN \g__color_math_seq \l__color_current_tl + \__color_select:N \l__color_current_tl + \group_insert_after:N \c_group_end_token + \group_insert_after:N \__color_math_scan:w + \peek_remove_filler:n + { + \peek_catcode_remove:NF \c_group_begin_token + { \__color_math_script_aux:N } + } + } +\cs_new_protected:Npn \__color_math_script_aux:N #1 { #1 \c_group_end_token } \cs_new_protected:Npn \color_fill:n #1 { \__color_parse:nN {#1} \l__color_current_tl diff --git a/Master/texmf-dist/tex/latex/l3kernel/expl3-generic.tex b/Master/texmf-dist/tex/latex/l3kernel/expl3-generic.tex index 64b2f374e05..412f6a5a994 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/expl3-generic.tex +++ b/Master/texmf-dist/tex/latex/l3kernel/expl3-generic.tex @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: expl3.dtx -\def\ExplFileDate{2022-01-21}% +\def\ExplFileDate{2022-02-05}% \let\ExplLoaderFileDate\ExplFileDate \begingroup \catcode`\_=11 diff --git a/Master/texmf-dist/tex/latex/l3kernel/expl3.ltx b/Master/texmf-dist/tex/latex/l3kernel/expl3.ltx index 081e49f0d96..f83aa6897f0 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/expl3.ltx +++ b/Master/texmf-dist/tex/latex/l3kernel/expl3.ltx @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: expl3.dtx -\def\ExplFileDate{2022-01-21}% +\def\ExplFileDate{2022-02-05}% \let\ExplLoaderFileDate\ExplFileDate \begingroup \catcode`\_=11 diff --git a/Master/texmf-dist/tex/latex/l3kernel/expl3.sty b/Master/texmf-dist/tex/latex/l3kernel/expl3.sty index 901c554c513..fd2ee37ce0a 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/expl3.sty +++ b/Master/texmf-dist/tex/latex/l3kernel/expl3.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: expl3.dtx -\def\ExplFileDate{2022-01-21}% +\def\ExplFileDate{2022-02-05}% \let\ExplLoaderFileDate\ExplFileDate \ProvidesPackage{expl3} [% -- cgit v1.2.3