Skip to content

Commit

Permalink
Update l3backend and l3kernel to 2022-08-23
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Aug 23, 2022
1 parent 42bb123 commit 0ef3f9e
Show file tree
Hide file tree
Showing 16 changed files with 234 additions and 181 deletions.
2 changes: 1 addition & 1 deletion base/testfiles-ltmarks/xmarks-001.tlg
Expand Up @@ -156,7 +156,7 @@ marks does not exist.
!second foo!
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX3 Error: Erroneous variable \g__mark_mistake_top_foo...
! LaTeX Error: Erroneous variable \g__mark_mistake_top_foo_...
l. ...\TopMark[mistake]{foo}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
Expand Down
4 changes: 2 additions & 2 deletions base/testfiles-ltmarks/xmarks-004.tlg
Expand Up @@ -146,7 +146,7 @@ Marks: baz in OR (twoside-even first column):
column (second):|\__mark_error:n {last-column}|\__mark_error:n {last-column}|\__mark_error:n {last-column}|
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX3 Error: Erroneous variable \g__mark_page_top_foobar...
! LaTeX Error: Erroneous variable \g__mark_page_top_foobar_...
l. ...\TopMark{foobar}
% does not exist
If you say, e.g., `\def\a1{...}', then you must always
Expand All @@ -155,7 +155,7 @@ made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX3 Error: Erroneous variable \g__mark_page_first_foob...
! LaTeX Error: Erroneous variable \g__mark_page_first_fooba...
l. ...\FirstMark{foobar}
% does not exist
If you say, e.g., `\def\a1{...}', then you must always
Expand Down
18 changes: 9 additions & 9 deletions base/testfiles/github-0710.tlg
Expand Up @@ -7,15 +7,15 @@ Author: Joseph Wright
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
\endgroup
l. ...\mypkgtest
LaTeX3 Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX3) option "load-option-A".
LaTeX Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX) option "load-option-A".
> \x=macro:
->111:::.
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
\endgroup
l. ...\mypkgtest
LaTeX3 Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX3) option "load-option-A".
LaTeX Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX) option "load-option-A".
> \x=macro:
->111::333:.
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
Expand All @@ -26,15 +26,15 @@ l. ...\mypkgtest
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
\endgroup
l. ...\mypkgtest
LaTeX3 Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX3) option "load-option-B".
LaTeX Warning: Package "mypkg" has already been loaded: ignoring load-time
(LaTeX) option "load-option-B".
> \x=macro:
->111::333:.
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
\endgroup
l. ...\mypkgtest
! LaTeX3 Error: Key "load-option-A" may only be used during loading of package
(LaTeX3) "mypkg".
! LaTeX Error: Key "load-option-A" may only be used during loading of package
(LaTeX) "mypkg".
For immediate help type H <return>.
...
l. ...\SetKeys[mypkg]{load-option-A = 666}
Expand All @@ -56,7 +56,7 @@ l. ...\mypkgtest
\mypkgtest ...my@A :\my@B :\my@C :\my@D }\show \x
\endgroup
l. ...\mypkgtest
! LaTeX3 Error: Key "preamble-option-D" may only be used in the preamble.
! LaTeX Error: Key "preamble-option-D" may only be used in the preamble.
For immediate help type H <return>.
...
l. ... preamble-option-D = 999}
Expand Down
2 changes: 1 addition & 1 deletion base/testfiles/github-0735.tlg
Expand Up @@ -44,7 +44,7 @@ TEST 3: Unknown variant
============================================================
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX3 Error: Unknown arg expansion "XX"
! LaTeX Error: Unknown arg expansion "XX"
l. ... }
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
Expand Down
2 changes: 1 addition & 1 deletion base/testfiles/github-0892.tlg
Expand Up @@ -28,7 +28,7 @@ Package: l3keys2e-package ....-..-.. v... test
You gave `check' for option1 (again)
You gave `more stuff' for option2
You gave `extra stuff' for option4
! LaTeX3 Error: Unknown option 'option5' for package l3keys2e-package.
! LaTeX Error: Unknown option 'option5' for package l3keys2e-package.
For immediate help type H <return>.
...
l. ...^^M
Expand Down
16 changes: 8 additions & 8 deletions base/testfiles/m3expl009.tlg
Expand Up @@ -3,12 +3,12 @@ Don't change this file in any respect.
\cnta=\count...
(../expl3.sty
Package: expl3 ....-..-.. L3 programming layer (loader)
! LaTeX3 Error: Mismatched LaTeX support files detected.
(LaTeX3) Loading 'expl3.sty' aborted!
(LaTeX3)
(LaTeX3) The L3 programming layer in the LaTeX format
(LaTeX3) is dated ....-..-.., but in your TeX tree the files require
(LaTeX3) at least ....-..-...
! LaTeX Error: Mismatched LaTeX support files detected.
(LaTeX) Loading 'expl3.sty' aborted!
(LaTeX)
(LaTeX) The L3 programming layer in the LaTeX format
(LaTeX) is dated ....-..-.., but in your TeX tree the files require
(LaTeX) at least ....-..-...
For immediate help type H <return>.
...
l. ... \ExplLoaderFileDate{expl3.sty}}
Expand All @@ -24,8 +24,8 @@ later errors. Please ensure that your LaTeX format is correctly regenerated.
Package: expl3 ....-..-.. L3 programming layer (loader)
) (../expl3.sty
Package: expl3 ....-..-.. L3 programming layer (loader)
! LaTeX3 Error: Mismatched LaTeX support files detected.
(LaTeX3) Loading 'expl3.sty' aborted!
! LaTeX Error: Mismatched LaTeX support files detected.
(LaTeX) Loading 'expl3.sty' aborted!
For immediate help type H <return>.
...
l. ... \ExplLoaderFileDate{expl3.sty}}
Expand Down
30 changes: 12 additions & 18 deletions texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
Expand Up @@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
{l3backend-dvipdfmx.def}{2022-08-05}{}
{l3backend-dvipdfmx.def}{2022-08-23}{}
{L3 backend support: dvipdfmx}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
Expand Down Expand Up @@ -66,27 +66,21 @@
\cs_new_protected:Npn \__kernel_backend_scope_end:
{ \__kernel_backend_literal:n { x:grestore } }
%% File: l3backend-color.dtx
\cs_new_protected:Npn \__color_backend_pickup:N #1 { }
\cs_if_exist:cT { ver@color.sty }
\cs_new_protected:Npn \__color_backend_pickup:N #1
{
\cs_set_protected:Npn \__color_backend_pickup:N #1
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\tl_set:Nx #1
{
{ named }
{ \exp_after:wN \use:n \current@color }
}
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\tl_set:Nn #1 { { gray } { 0 } }
\msg_warning:nnx { color } { unhandled }
{ \current@color }
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
\cs_new_protected:Npn \__color_backend_select:n #1
{ \__kernel_backend_literal:n { pdf : bc ~ [ #1 ] } }
\cs_new_eq:NN \__color_backend_select_cmyk:n \__color_backend_select:n
Expand Down
30 changes: 12 additions & 18 deletions texmf/tex/latex/l3backend/l3backend-dvips.def
Expand Up @@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
{l3backend-dvips.def}{2022-08-05}{}
{l3backend-dvips.def}{2022-08-23}{}
{L3 backend support: dvips}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
Expand Down Expand Up @@ -83,27 +83,21 @@
\cs_new_protected:Npn \__kernel_backend_scope_end:
{ \__kernel_backend_literal:n { ps:grestore } }
%% File: l3backend-color.dtx
\cs_new_protected:Npn \__color_backend_pickup:N #1 { }
\cs_if_exist:cT { ver@color.sty }
\cs_new_protected:Npn \__color_backend_pickup:N #1
{
\cs_set_protected:Npn \__color_backend_pickup:N #1
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\tl_set:Nx #1
{
{ named }
{ \exp_after:wN \use:n \current@color }
}
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\tl_set:Nn #1 { { gray } { 0 } }
\msg_warning:nnx { color } { unhandled }
{ \current@color }
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
\cs_new_protected:Npn \__color_backend_select_cmyk:n #1
{ \__color_backend_select:n { cmyk ~ #1 } }
\cs_new_protected:Npn \__color_backend_select_gray:n #1
Expand Down
30 changes: 12 additions & 18 deletions texmf/tex/latex/l3backend/l3backend-dvisvgm.def
Expand Up @@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
{l3backend-dvisvgm.def}{2022-08-05}{}
{l3backend-dvisvgm.def}{2022-08-23}{}
{L3 backend support: dvisvgm}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
Expand Down Expand Up @@ -97,27 +97,21 @@
}
\cs_generate_variant:Nn \__kernel_backend_scope:n { x }
%% File: l3backend-color.dtx
\cs_new_protected:Npn \__color_backend_pickup:N #1 { }
\cs_if_exist:cT { ver@color.sty }
\cs_new_protected:Npn \__color_backend_pickup:N #1
{
\cs_set_protected:Npn \__color_backend_pickup:N #1
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\exp_args:NV \tl_if_head_is_space:nTF \current@color
{
\tl_set:Nx #1
{
{ named }
{ \exp_after:wN \use:n \current@color }
}
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\tl_set:Nn #1 { { gray } { 0 } }
\msg_warning:nnx { color } { unhandled }
{ \current@color }
}
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
}
\cs_new_protected:Npn \__color_backend_pickup:w #1 ~ #2 \s__color_stop #3
{ \tl_set:Nn #3 { {#1} {#2} } }
\cs_new_protected:Npn \__color_backend_select_cmyk:n #1
{ \__color_backend_select:n { cmyk ~ #1 } }
\cs_new_protected:Npn \__color_backend_select_gray:n #1
Expand Down
42 changes: 17 additions & 25 deletions texmf/tex/latex/l3backend/l3backend-luatex.def
Expand Up @@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
{l3backend-luatex.def}{2022-08-05}{}
{l3backend-luatex.def}{2022-08-23}{}
{L3 backend support: PDF output (LuaTeX)}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
Expand Down Expand Up @@ -82,34 +82,26 @@
}
\cs_generate_variant:Nn \__kernel_backend_matrix:n { x }
%% File: l3backend-color.dtx
\cs_new_protected:Npn \__color_backend_pickup:N #1 { }
\cs_if_exist:cT { ver@color.sty }
\cs_new_protected:Npn \__color_backend_pickup:N #1
{
\cs_set_protected:Npn \__color_backend_pickup:N #1
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } ~ 0 ~ 0 ~ 0 \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w
#1 ~ #2 ~ #3 ~ #4 ~ #5 ~ #6 \s__color_stop #7
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } ~ 0 ~ 0 ~ 0 \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w
#1 ~ #2 ~ #3 ~ #4 ~ #5 ~ #6 \s__color_stop #7
{
\str_if_eq:nnTF {#2} { g }
{ \tl_set:Nn #7 { { gray } {#1} } }
{
\str_if_eq:nnTF {#2} { g }
{ \tl_set:Nn #7 { { gray } {#1} } }
\str_if_eq:nnTF {#4} { rg }
{ \tl_set:Nn #7 { { rgb } { #1 ~ #2 ~ #3 } } }
{
\str_if_eq:nnTF {#4} { rg }
{ \tl_set:Nn #7 { { rgb } { #1 ~ #2 ~ #3 } } }
\str_if_eq:nnTF {#5} { k }
{ \tl_set:Nn #7 { { cmyk } { #1 ~ #2 ~ #3 ~ #4 } } }
{
\str_if_eq:nnTF {#5} { k }
{ \tl_set:Nn #7 { { cmyk } { #1 ~ #2 ~ #3 ~ #4 } } }
{
\str_if_eq:nnTF {#2} { cs }
{
\tl_set:Nx #7 { { \use:n #1 } { #5 } }
}
{
\tl_set:Nn #7 { { gray } { 0 } }
}
}
\tl_set:Nn #1 { { gray } { 0 } }
\msg_warning:nnx { color } { unhandled }
{ \current@color }
}
}
}
Expand Down
42 changes: 17 additions & 25 deletions texmf/tex/latex/l3backend/l3backend-pdftex.def
Expand Up @@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
{l3backend-pdftex.def}{2022-08-05}{}
{l3backend-pdftex.def}{2022-08-23}{}
{L3 backend support: PDF output (pdfTeX)}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
Expand Down Expand Up @@ -82,34 +82,26 @@
}
\cs_generate_variant:Nn \__kernel_backend_matrix:n { x }
%% File: l3backend-color.dtx
\cs_new_protected:Npn \__color_backend_pickup:N #1 { }
\cs_if_exist:cT { ver@color.sty }
\cs_new_protected:Npn \__color_backend_pickup:N #1
{
\cs_set_protected:Npn \__color_backend_pickup:N #1
{
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } ~ 0 ~ 0 ~ 0 \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w
#1 ~ #2 ~ #3 ~ #4 ~ #5 ~ #6 \s__color_stop #7
\exp_last_unbraced:Nx \__color_backend_pickup:w
{ \current@color } ~ 0 ~ 0 ~ 0 \s__color_stop #1
}
\cs_new_protected:Npn \__color_backend_pickup:w
#1 ~ #2 ~ #3 ~ #4 ~ #5 ~ #6 \s__color_stop #7
{
\str_if_eq:nnTF {#2} { g }
{ \tl_set:Nn #7 { { gray } {#1} } }
{
\str_if_eq:nnTF {#2} { g }
{ \tl_set:Nn #7 { { gray } {#1} } }
\str_if_eq:nnTF {#4} { rg }
{ \tl_set:Nn #7 { { rgb } { #1 ~ #2 ~ #3 } } }
{
\str_if_eq:nnTF {#4} { rg }
{ \tl_set:Nn #7 { { rgb } { #1 ~ #2 ~ #3 } } }
\str_if_eq:nnTF {#5} { k }
{ \tl_set:Nn #7 { { cmyk } { #1 ~ #2 ~ #3 ~ #4 } } }
{
\str_if_eq:nnTF {#5} { k }
{ \tl_set:Nn #7 { { cmyk } { #1 ~ #2 ~ #3 ~ #4 } } }
{
\str_if_eq:nnTF {#2} { cs }
{
\tl_set:Nx #7 { { \use:n #1 } { #5 } }
}
{
\tl_set:Nn #7 { { gray } { 0 } }
}
}
\tl_set:Nn #1 { { gray } { 0 } }
\msg_warning:nnx { color } { unhandled }
{ \current@color }
}
}
}
Expand Down

0 comments on commit 0ef3f9e

Please sign in to comment.