diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-13 20:07:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-13 20:07:21 +0000 |
commit | cdf5616cb0197dbd6acad760f46c9cc81e34664e (patch) | |
tree | 5e1366f64394ce4af2bf9e5558e80d6f6fec6ed2 /Master/texmf-dist/tex/latex/l3backend | |
parent | c6abb39c23b0dfdbbcd2dff7970bc57816f65982 (diff) |
l3 (13jul21)
git-svn-id: svn://tug.org/texlive/trunk@59922 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend')
6 files changed, 98 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def index 1efb4d4a440..34c8bdbf85b 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,dvipdfmx') %% l3backend-opacity.dtx (with options: `package,dvipdfmx') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-dvipdfmx.def}{2021-05-07}{} + {l3backend-dvipdfmx.def}{2021-07-12}{} {L3 backend support: dvipdfmx} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_pdf:n #1 { \__kernel_backend_literal:n { pdf:literal~ #1 } } @@ -739,7 +746,7 @@ width ~ \dim_eval:n {#1} ~ height ~ \dim_eval:n {#2} ~ depth ~ \dim_eval:n {#3} ~ - <</Type/Annot #4 >> + << /Type /Annot #4 >> } } \cs_new:Npn \__pdf_backend_annotation_last: diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def index 6565a17666f..6d5df3b0d5d 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,dvips') %% l3backend-opacity.dtx (with options: `package,dvips') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-dvips.def}{2021-05-07}{} + {l3backend-dvips.def}{2021-07-12}{} {L3 backend support: dvips} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_postscript:n #1 { \__kernel_backend_literal:n { ps:: #1 } } @@ -712,7 +719,10 @@ \cs_new_protected:Npn \__pdf_breaklink_postscript:n #1 { } \cs_new_eq:NN \__pdf_breaklink_usebox:N \box_use:N \cs_new_protected:Npn \__pdf_backend_link_begin_goto:nnw #1#2 - { \__pdf_backend_link_begin:nw { #1 /Subtype /Link /A << /S /GoTo /D ( #2 ) >> } } + { + \__pdf_backend_link_begin:nw + { #1 /Subtype /Link /Action << /S /GoTo /D ( #2 ) >> } + } \cs_new_protected:Npn \__pdf_backend_link_begin_user:nnw #1#2 { \__pdf_backend_link_begin:nw {#1#2} } \cs_new_protected:Npn \__pdf_backend_link_begin:nw #1 @@ -983,18 +993,43 @@ } \cs_new_protected:Npn \__opacity_backend_select_aux:n #1 { - \__kernel_backend_postscript:n - { #1 ~ .setfillconstantalpha ~ #1 ~ .setstrokeconstantalpha } + \__opacity_backend:nnn {#1} { fill } { ca } + \__opacity_backend:nnn {#1} { stroke } { CA } } \cs_new_protected:Npn \__opacity_backend_fill:n #1 - { \__opacity_backend:xn { \fp_eval:n { min(max(0,#1),1) } } { fill } } + { + \__opacity_backend:xnn + { \fp_eval:n { min(max(0,#1),1) } } + { fill } + { ca } + } \cs_new_protected:Npn \__opacity_backend_stroke:n #1 - { \__opacity_backend:xn { \fp_eval:n { min(max(0,#1),1) } } { stroke } } -\cs_new_protected:Npn \__opacity_backend:nn #1#2 { - \__kernel_backend_postscript:n { #1 ~ .set #2 constantalpha } + \__opacity_backend:xnn + { \fp_eval:n { min(max(0,#1),1) } } + { stroke } + { CA } + } +\cs_new_protected:Npn \__opacity_backend:nnn #1#2#3 + { + \__kernel_backend_postscript:n + { + product ~ (Ghostscript) ~ search + { + pop ~ pop ~ pop ~ + #1 ~ .set #2 constantalpha + } + { + pop ~ + mark ~ + /#3 ~ #1 + /SetTransparency ~ + pdfmark + } + ifelse + } } -\cs_generate_variant:Nn \__opacity_backend:nn { x } +\cs_generate_variant:Nn \__opacity_backend:nnn { x } %% %% %% End of file `l3backend-dvips.def'. diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def index 713edd3785b..fb5daeac366 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,dvisvgm') %% l3backend-opacity.dtx (with options: `package,dvisvgm') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-dvisvgm.def}{2021-05-07}{} + {l3backend-dvisvgm.def}{2021-07-12}{} {L3 backend support: dvisvgm} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_svg:n #1 { \__kernel_backend_literal:n { dvisvgm:raw~ #1 { ?nl } } } diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def index f45a9d560cf..9a08ddb30d0 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,luatex') %% l3backend-opacity.dtx (with options: `package,luatex') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-luatex.def}{2021-05-07}{} + {l3backend-luatex.def}{2021-07-12}{} {L3 backend support: PDF output (LuaTeX)} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_pdf:n #1 { diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def index fab9c7a8fd1..e4723892379 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,pdftex') %% l3backend-opacity.dtx (with options: `package,pdftex') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-pdftex.def}{2021-05-07}{} + {l3backend-pdftex.def}{2021-07-12}{} {L3 backend support: PDF output (pdfTeX)} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_pdf:n #1 { diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def index 554ced4d558..639eaa396fc 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def @@ -12,7 +12,7 @@ %% l3backend-pdf.dtx (with options: `package,xetex') %% l3backend-opacity.dtx (with options: `package,xetex') %% -%% Copyright (C) 1990-2021 The LaTeX Project +%% Copyright (C) 2019-2021 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 @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-xetex.def}{2021-05-07}{} + {l3backend-xetex.def}{2021-07-12}{} {L3 backend support: XeTeX} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -47,7 +47,14 @@ { \__kernel_backend_literal:e { \exp_not:n {#1} } } \cs_generate_variant:Nn \__kernel_backend_literal:n { x } \cs_if_exist:NTF \@ifl@t@r - { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + { + \@ifl@t@r \fmtversion { 2020-10-01 } + { + \cs_new_protected:Npn \__kernel_backend_first_shipout:n #1 + { \hook_gput_code:nnn { shipout / firstpage } { l3backend } {#1} } + } + { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi } + } { \cs_new_eq:NN \__kernel_backend_first_shipout:n \use:n } \cs_new_protected:Npn \__kernel_backend_literal_pdf:n #1 { \__kernel_backend_literal:n { pdf:literal~ #1 } } @@ -785,7 +792,7 @@ width ~ \dim_eval:n {#1} ~ height ~ \dim_eval:n {#2} ~ depth ~ \dim_eval:n {#3} ~ - <</Type/Annot #4 >> + << /Type /Annot #4 >> } } \cs_new:Npn \__pdf_backend_annotation_last: |