[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Update l3backend to 2021-07-12 (f1dd49a5)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jul 12 23:24:04 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/f1dd49a5d22202fa6816a22618267c8190c5d784

>---------------------------------------------------------------

commit f1dd49a5d22202fa6816a22618267c8190c5d784
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jul 12 20:35:26 2021 +0100

    Update l3backend to 2021-07-12


>---------------------------------------------------------------

f1dd49a5d22202fa6816a22618267c8190c5d784
 texmf/dvips/l3backend/l3backend-dvips.pro        |  2 +-
 texmf/tex/latex/l3backend/l3backend-dvipdfmx.def | 15 +++++--
 texmf/tex/latex/l3backend/l3backend-dvips.def    | 57 +++++++++++++++++++-----
 texmf/tex/latex/l3backend/l3backend-dvisvgm.def  | 13 ++++--
 texmf/tex/latex/l3backend/l3backend-luatex.def   | 13 ++++--
 texmf/tex/latex/l3backend/l3backend-pdftex.def   | 13 ++++--
 texmf/tex/latex/l3backend/l3backend-xetex.def    | 15 +++++--
 7 files changed, 99 insertions(+), 29 deletions(-)

diff --git a/texmf/dvips/l3backend/l3backend-dvips.pro b/texmf/dvips/l3backend/l3backend-dvips.pro
index 3378ac4d..b5a87949 100644
--- a/texmf/dvips/l3backend/l3backend-dvips.pro
+++ b/texmf/dvips/l3backend/l3backend-dvips.pro
@@ -6,7 +6,7 @@
 %%
 %% l3backend-header.dtx  (with options: `header,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
diff --git a/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def b/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
index 1efb4d4a..34c8bdbf 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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/texmf/tex/latex/l3backend/l3backend-dvips.def b/texmf/tex/latex/l3backend/l3backend-dvips.def
index 6565a176..6d5df3b0 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvips.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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/texmf/tex/latex/l3backend/l3backend-dvisvgm.def b/texmf/tex/latex/l3backend/l3backend-dvisvgm.def
index 713edd37..fb5daeac 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvisvgm.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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/texmf/tex/latex/l3backend/l3backend-luatex.def b/texmf/tex/latex/l3backend/l3backend-luatex.def
index f45a9d56..9a08ddb3 100644
--- a/texmf/tex/latex/l3backend/l3backend-luatex.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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/texmf/tex/latex/l3backend/l3backend-pdftex.def b/texmf/tex/latex/l3backend/l3backend-pdftex.def
index fab9c7a8..e4723892 100644
--- a/texmf/tex/latex/l3backend/l3backend-pdftex.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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/texmf/tex/latex/l3backend/l3backend-xetex.def b/texmf/tex/latex/l3backend/l3backend-xetex.def
index 554ced4d..639eaa39 100644
--- a/texmf/tex/latex/l3backend/l3backend-xetex.def
+++ b/texmf/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 at t@r
-  { \cs_new_eq:NN \__kernel_backend_first_shipout:n \AtBeginDvi }
+  {
+    \@ifl at 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:





More information about the latex3-commits mailing list.