[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Update l3backend to 2021-02-18 (d7fcc324)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Feb 18 16:16:16 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/d7fcc3249f361d7e0cbfc126adec08e374e01026

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

commit d7fcc3249f361d7e0cbfc126adec08e374e01026
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 18 15:16:16 2021 +0000

    Update l3backend to 2021-02-18


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

d7fcc3249f361d7e0cbfc126adec08e374e01026
 texmf/tex/latex/l3backend/l3backend-dvipdfmx.def | 64 ++++++++++++------------
 texmf/tex/latex/l3backend/l3backend-dvips.def    |  2 +-
 texmf/tex/latex/l3backend/l3backend-dvisvgm.def  |  2 +-
 texmf/tex/latex/l3backend/l3backend-luatex.def   | 64 ++++++++++++------------
 texmf/tex/latex/l3backend/l3backend-pdftex.def   | 64 ++++++++++++------------
 texmf/tex/latex/l3backend/l3backend-xetex.def    | 64 ++++++++++++------------
 6 files changed, 134 insertions(+), 126 deletions(-)

diff --git a/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def b/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
index 97821be3..b05710c7 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
+++ b/texmf/tex/latex/l3backend/l3backend-dvipdfmx.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvipdfmx.def}{2021-02-06}{}
+  {l3backend-dvipdfmx.def}{2021-02-18}{}
   {L3 backend support: dvipdfmx}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -128,7 +128,7 @@
   }
 \int_compare:nNnF \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
   {
-    \cs_new_protected:Npn \__color_backend_stack_push:nn #1#2
+    \cs_new_protected:Npn \__kernel_color_backend_stack_push:nn #1#2
       {
         \__kernel_backend_literal:x
           {
@@ -137,8 +137,8 @@
             push ~ (#2)
           }
       }
-    \cs_generate_variant:Nn \__color_backend_stack_push:nn { nx }
-    \cs_new_protected:Npn \__color_backend_stack_pop:n #1
+    \cs_generate_variant:Nn \__kernel_color_backend_stack_push:nn { nx }
+    \cs_new_protected:Npn \__kernel_color_backend_stack_pop:n #1
       {
         \__kernel_backend_literal:x
           {
@@ -160,11 +160,11 @@
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
     \tl_set:Nn \l__color_backend_stroke_tl {#2}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
     \group_insert_after:N \__color_backend_reset:
   }
 \cs_new_protected:Npn \__color_backend_reset:
-  { \__color_backend_stack_pop:n \l__color_backend_stack_int }
+  { \__kernel_color_backend_stack_pop:n \l__color_backend_stack_int }
 \int_compare:nNnT \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
   {
     \cs_gset_protected:Npn \__color_backend_select_cmyk:n #1
@@ -182,7 +182,7 @@
 \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn
 \cs_new_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5
   {
-    \pdf_object_now:nx { dict }
+    \pdf_object_unnamed_write:nx { dict }
       {
         /FunctionType ~ 2
         /Domain ~ [0 ~ 1]
@@ -194,21 +194,22 @@
       {
         /Separation ~
         / \str_convert_pdfname:n {#1} ~ #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5 { } }
 \cs_new_protected:Npn \__color_backend_separation_init:n #1
   {
-    \pdf_object_now:nx { array } {#1}
+    \pdf_object_unnamed_write:nx { array } {#1}
   }
 \cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
   {
@@ -232,14 +233,14 @@
       { 100 ~ 0 ~ 0 }
       {#3}
   }
-\cs_if_exist:NF \pdf_object_now:nn
+\cs_if_exist:NF \pdf_object_unnamed_write:nn
   {
     \cs_gset_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
       { }
   }
 \cs_new_protected:Npn \__color_backend_devicen_init:nnn #1#2#3
   {
-    \pdf_object_now:nx { stream }
+    \pdf_object_unnamed_write:nx { stream }
       {
         {
           /FunctionType ~ 4 ~
@@ -266,18 +267,19 @@
         /DeviceN ~
         [ ~ #1 ~ ] ~
         #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_devicen_init:nnn #1#2#3 { } }
 \cs_new:Npn \__color_backend_devicen_init:w #1 ~ #2 \s__color_stop
   {
     + 1
@@ -300,7 +302,7 @@
 \cs_new_protected:Npn \__color_backend_fill:n #1
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { #1 ~ \l__color_backend_stroke_tl }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -313,7 +315,7 @@
 \cs_new_protected:Npn \__color_backend_stroke:n #1
   {
     \tl_set:Nn \l__color_backend_stroke_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { \l__color_backend_fill_tl \c_space_tl #1 }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -902,7 +904,7 @@
     \pdfmanagement_add:nnn { Page / Resources / ExtGState }
       { opacity #1 }
       { << /ca ~ #1 /CA ~ #1 >> }
-    \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
       { /opacity #1 ~ gs }
     \group_insert_after:N \__opacity_backend_reset:
   }
@@ -911,7 +913,7 @@
     \cs_gset_protected:Npn \__opacity_backend_select_aux:n #1 { }
   }
 \cs_new_protected:Npn \__opacity_backend_reset:
- { \__opacity_backend_stack_pop:n \c__opacity_backend_stack_int }
+ { \__kernel_color_backend_stack_pop:n \c__opacity_backend_stack_int }
 \cs_new_protected:Npn \__opacity_backend_fill:n #1
   {
     \__opacity_backend_fill_stroke:xx
@@ -937,7 +939,7 @@
         \pdfmanagement_add:nnn { Page / Resources / ExtGState }
           { opacity.stroke #1 }
           { << /CA ~ #2 >> }
-        \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+        \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
          { /opacity.fill #1 ~ gs /opacity.stroke #2 ~ gs }
         \group_insert_after:N \__opacity_backend_reset:
       }
diff --git a/texmf/tex/latex/l3backend/l3backend-dvips.def b/texmf/tex/latex/l3backend/l3backend-dvips.def
index c5002b58..1e47603f 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvips.def
+++ b/texmf/tex/latex/l3backend/l3backend-dvips.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvips.def}{2021-02-06}{}
+  {l3backend-dvips.def}{2021-02-18}{}
   {L3 backend support: dvips}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
diff --git a/texmf/tex/latex/l3backend/l3backend-dvisvgm.def b/texmf/tex/latex/l3backend/l3backend-dvisvgm.def
index 759c1531..078970ec 100644
--- a/texmf/tex/latex/l3backend/l3backend-dvisvgm.def
+++ b/texmf/tex/latex/l3backend/l3backend-dvisvgm.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvisvgm.def}{2021-02-06}{}
+  {l3backend-dvisvgm.def}{2021-02-18}{}
   {L3 backend support: dvisvgm}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
diff --git a/texmf/tex/latex/l3backend/l3backend-luatex.def b/texmf/tex/latex/l3backend/l3backend-luatex.def
index 049a216d..235eaa02 100644
--- a/texmf/tex/latex/l3backend/l3backend-luatex.def
+++ b/texmf/tex/latex/l3backend/l3backend-luatex.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-luatex.def}{2021-02-06}{}
+  {l3backend-luatex.def}{2021-02-18}{}
   {L3 backend support: PDF output (LuaTeX)}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -114,13 +114,13 @@
         {#3}
       }
   }
-\cs_new_protected:Npn \__color_backend_stack_push:nn #1#2
+\cs_new_protected:Npn \__kernel_color_backend_stack_push:nn #1#2
   {
     \tex_pdfextension:D colorstack ~
       \int_eval:n {#1} ~ push ~ {#2}
   }
-\cs_generate_variant:Nn \__color_backend_stack_push:nn { nx }
-\cs_new_protected:Npn \__color_backend_stack_pop:n #1
+\cs_generate_variant:Nn \__kernel_color_backend_stack_push:nn { nx }
+\cs_new_protected:Npn \__kernel_color_backend_stack_pop:n #1
   {
     \tex_pdfextension:D colorstack ~
       \int_eval:n {#1} ~ pop \scan_stop:
@@ -137,17 +137,17 @@
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
     \tl_set:Nn \l__color_backend_stroke_tl {#2}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
     \group_insert_after:N \__color_backend_reset:
   }
 \cs_new_protected:Npn \__color_backend_reset:
-  { \__color_backend_stack_pop:n \l__color_backend_stack_int }
+  { \__kernel_color_backend_stack_pop:n \l__color_backend_stack_int }
 \cs_new_protected:Npn \__color_backend_select_separation:nn #1#2
   { \__color_backend_select:nn { /#1 ~ cs ~ #2 ~ scn  } { /#1 ~ CS ~ #2 ~ SCN } }
 \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn
 \cs_new_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5
   {
-    \pdf_object_now:nx { dict }
+    \pdf_object_unnamed_write:nx { dict }
       {
         /FunctionType ~ 2
         /Domain ~ [0 ~ 1]
@@ -159,21 +159,22 @@
       {
         /Separation ~
         / \str_convert_pdfname:n {#1} ~ #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5 { } }
 \cs_new_protected:Npn \__color_backend_separation_init:n #1
   {
-    \pdf_object_now:nx { array } {#1}
+    \pdf_object_unnamed_write:nx { array } {#1}
   }
 \cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
   {
@@ -197,14 +198,14 @@
       { 100 ~ 0 ~ 0 }
       {#3}
   }
-\cs_if_exist:NF \pdf_object_now:nn
+\cs_if_exist:NF \pdf_object_unnamed_write:nn
   {
     \cs_gset_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
       { }
   }
 \cs_new_protected:Npn \__color_backend_devicen_init:nnn #1#2#3
   {
-    \pdf_object_now:nx { stream }
+    \pdf_object_unnamed_write:nx { stream }
       {
         {
           /FunctionType ~ 4 ~
@@ -231,18 +232,19 @@
         /DeviceN ~
         [ ~ #1 ~ ] ~
         #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_devicen_init:nnn #1#2#3 { } }
 \cs_new:Npn \__color_backend_devicen_init:w #1 ~ #2 \s__color_stop
   {
     + 1
@@ -259,7 +261,7 @@
 \cs_new_protected:Npn \__color_backend_fill:n #1
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { #1 ~ \l__color_backend_stroke_tl }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -272,7 +274,7 @@
 \cs_new_protected:Npn \__color_backend_stroke:n #1
   {
     \tl_set:Nn \l__color_backend_stroke_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { \l__color_backend_fill_tl \c_space_tl #1 }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -773,7 +775,7 @@
     \pdfmanagement_add:nnn { Page / Resources / ExtGState }
       { opacity #1 }
       { << /ca ~ #1 /CA ~ #1 >> }
-    \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
       { /opacity #1 ~ gs }
     \group_insert_after:N \__opacity_backend_reset:
   }
@@ -782,7 +784,7 @@
     \cs_gset_protected:Npn \__opacity_backend_select_aux:n #1 { }
   }
 \cs_new_protected:Npn \__opacity_backend_reset:
- { \__opacity_backend_stack_pop:n \c__opacity_backend_stack_int }
+ { \__kernel_color_backend_stack_pop:n \c__opacity_backend_stack_int }
 \cs_new_protected:Npn \__opacity_backend_fill:n #1
   {
     \__opacity_backend_fill_stroke:xx
@@ -808,7 +810,7 @@
         \pdfmanagement_add:nnn { Page / Resources / ExtGState }
           { opacity.stroke #1 }
           { << /CA ~ #2 >> }
-        \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+        \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
          { /opacity.fill #1 ~ gs /opacity.stroke #2 ~ gs }
         \group_insert_after:N \__opacity_backend_reset:
       }
diff --git a/texmf/tex/latex/l3backend/l3backend-pdftex.def b/texmf/tex/latex/l3backend/l3backend-pdftex.def
index e7f4ad30..93ba0c8e 100644
--- a/texmf/tex/latex/l3backend/l3backend-pdftex.def
+++ b/texmf/tex/latex/l3backend/l3backend-pdftex.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-pdftex.def}{2021-02-06}{}
+  {l3backend-pdftex.def}{2021-02-18}{}
   {L3 backend support: PDF output (pdfTeX)}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -114,13 +114,13 @@
         {#3}
       }
   }
-\cs_new_protected:Npn \__color_backend_stack_push:nn #1#2
+\cs_new_protected:Npn \__kernel_color_backend_stack_push:nn #1#2
   {
     \tex_pdfcolorstack:D
       \int_eval:n {#1} ~ push ~ {#2}
   }
-\cs_generate_variant:Nn \__color_backend_stack_push:nn { nx }
-\cs_new_protected:Npn \__color_backend_stack_pop:n #1
+\cs_generate_variant:Nn \__kernel_color_backend_stack_push:nn { nx }
+\cs_new_protected:Npn \__kernel_color_backend_stack_pop:n #1
   {
     \tex_pdfcolorstack:D
       \int_eval:n {#1} ~ pop \scan_stop:
@@ -137,17 +137,17 @@
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
     \tl_set:Nn \l__color_backend_stroke_tl {#2}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
     \group_insert_after:N \__color_backend_reset:
   }
 \cs_new_protected:Npn \__color_backend_reset:
-  { \__color_backend_stack_pop:n \l__color_backend_stack_int }
+  { \__kernel_color_backend_stack_pop:n \l__color_backend_stack_int }
 \cs_new_protected:Npn \__color_backend_select_separation:nn #1#2
   { \__color_backend_select:nn { /#1 ~ cs ~ #2 ~ scn  } { /#1 ~ CS ~ #2 ~ SCN } }
 \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn
 \cs_new_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5
   {
-    \pdf_object_now:nx { dict }
+    \pdf_object_unnamed_write:nx { dict }
       {
         /FunctionType ~ 2
         /Domain ~ [0 ~ 1]
@@ -159,21 +159,22 @@
       {
         /Separation ~
         / \str_convert_pdfname:n {#1} ~ #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5 { } }
 \cs_new_protected:Npn \__color_backend_separation_init:n #1
   {
-    \pdf_object_now:nx { array } {#1}
+    \pdf_object_unnamed_write:nx { array } {#1}
   }
 \cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
   {
@@ -197,14 +198,14 @@
       { 100 ~ 0 ~ 0 }
       {#3}
   }
-\cs_if_exist:NF \pdf_object_now:nn
+\cs_if_exist:NF \pdf_object_unnamed_write:nn
   {
     \cs_gset_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
       { }
   }
 \cs_new_protected:Npn \__color_backend_devicen_init:nnn #1#2#3
   {
-    \pdf_object_now:nx { stream }
+    \pdf_object_unnamed_write:nx { stream }
       {
         {
           /FunctionType ~ 4 ~
@@ -231,18 +232,19 @@
         /DeviceN ~
         [ ~ #1 ~ ] ~
         #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_devicen_init:nnn #1#2#3 { } }
 \cs_new:Npn \__color_backend_devicen_init:w #1 ~ #2 \s__color_stop
   {
     + 1
@@ -259,7 +261,7 @@
 \cs_new_protected:Npn \__color_backend_fill:n #1
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { #1 ~ \l__color_backend_stroke_tl }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -272,7 +274,7 @@
 \cs_new_protected:Npn \__color_backend_stroke:n #1
   {
     \tl_set:Nn \l__color_backend_stroke_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { \l__color_backend_fill_tl \c_space_tl #1 }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -773,7 +775,7 @@
     \pdfmanagement_add:nnn { Page / Resources / ExtGState }
       { opacity #1 }
       { << /ca ~ #1 /CA ~ #1 >> }
-    \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
       { /opacity #1 ~ gs }
     \group_insert_after:N \__opacity_backend_reset:
   }
@@ -782,7 +784,7 @@
     \cs_gset_protected:Npn \__opacity_backend_select_aux:n #1 { }
   }
 \cs_new_protected:Npn \__opacity_backend_reset:
- { \__opacity_backend_stack_pop:n \c__opacity_backend_stack_int }
+ { \__kernel_color_backend_stack_pop:n \c__opacity_backend_stack_int }
 \cs_new_protected:Npn \__opacity_backend_fill:n #1
   {
     \__opacity_backend_fill_stroke:xx
@@ -808,7 +810,7 @@
         \pdfmanagement_add:nnn { Page / Resources / ExtGState }
           { opacity.stroke #1 }
           { << /CA ~ #2 >> }
-        \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+        \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
          { /opacity.fill #1 ~ gs /opacity.stroke #2 ~ gs }
         \group_insert_after:N \__opacity_backend_reset:
       }
diff --git a/texmf/tex/latex/l3backend/l3backend-xetex.def b/texmf/tex/latex/l3backend/l3backend-xetex.def
index d236bcfc..b4603d6f 100644
--- a/texmf/tex/latex/l3backend/l3backend-xetex.def
+++ b/texmf/tex/latex/l3backend/l3backend-xetex.def
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-xetex.def}{2021-02-06}{}
+  {l3backend-xetex.def}{2021-02-18}{}
   {L3 backend support: XeTeX}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -128,7 +128,7 @@
   }
 \int_compare:nNnF \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
   {
-    \cs_new_protected:Npn \__color_backend_stack_push:nn #1#2
+    \cs_new_protected:Npn \__kernel_color_backend_stack_push:nn #1#2
       {
         \__kernel_backend_literal:x
           {
@@ -137,8 +137,8 @@
             push ~ (#2)
           }
       }
-    \cs_generate_variant:Nn \__color_backend_stack_push:nn { nx }
-    \cs_new_protected:Npn \__color_backend_stack_pop:n #1
+    \cs_generate_variant:Nn \__kernel_color_backend_stack_push:nn { nx }
+    \cs_new_protected:Npn \__kernel_color_backend_stack_pop:n #1
       {
         \__kernel_backend_literal:x
           {
@@ -160,11 +160,11 @@
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
     \tl_set:Nn \l__color_backend_stroke_tl {#2}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int { #1 ~ #2 }
     \group_insert_after:N \__color_backend_reset:
   }
 \cs_new_protected:Npn \__color_backend_reset:
-  { \__color_backend_stack_pop:n \l__color_backend_stack_int }
+  { \__kernel_color_backend_stack_pop:n \l__color_backend_stack_int }
 \int_compare:nNnT \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
   {
     \cs_gset_protected:Npn \__color_backend_select_cmyk:n #1
@@ -182,7 +182,7 @@
 \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn
 \cs_new_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5
   {
-    \pdf_object_now:nx { dict }
+    \pdf_object_unnamed_write:nx { dict }
       {
         /FunctionType ~ 2
         /Domain ~ [0 ~ 1]
@@ -194,21 +194,22 @@
       {
         /Separation ~
         / \str_convert_pdfname:n {#1} ~ #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5 { } }
 \cs_new_protected:Npn \__color_backend_separation_init:n #1
   {
-    \pdf_object_now:nx { array } {#1}
+    \pdf_object_unnamed_write:nx { array } {#1}
   }
 \cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
   {
@@ -232,14 +233,14 @@
       { 100 ~ 0 ~ 0 }
       {#3}
   }
-\cs_if_exist:NF \pdf_object_now:nn
+\cs_if_exist:NF \pdf_object_unnamed_write:nn
   {
     \cs_gset_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
       { }
   }
 \cs_new_protected:Npn \__color_backend_devicen_init:nnn #1#2#3
   {
-    \pdf_object_now:nx { stream }
+    \pdf_object_unnamed_write:nx { stream }
       {
         {
           /FunctionType ~ 4 ~
@@ -266,18 +267,19 @@
         /DeviceN ~
         [ ~ #1 ~ ] ~
         #2 ~
-        \pdf_object_last:
+        \pdf_object_ref_last:
       }
-    \use:x
+    \cs_if_exist:NT \pdfmanagement_add:nnn
       {
-        \pdfmanagement_add:nnn
-          { Page / Resources / ColorSpace }
-          { color \int_use:N \g__color_model_int }
-          { \pdf_object_last: }
+        \use:x
+          {
+            \pdfmanagement_add:nnn
+              { Page / Resources / ColorSpace }
+              { color \int_use:N \g__color_model_int }
+              { \pdf_object_ref_last: }
+          }
       }
   }
-\cs_if_exist:NF \pdf_object_now:nn
-  { \cs_gset_protected:Npn \__color_backend_devicen_init:nnn #1#2#3 { } }
 \cs_new:Npn \__color_backend_devicen_init:w #1 ~ #2 \s__color_stop
   {
     + 1
@@ -300,7 +302,7 @@
 \cs_new_protected:Npn \__color_backend_fill:n #1
   {
     \tl_set:Nn \l__color_backend_fill_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { #1 ~ \l__color_backend_stroke_tl }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -313,7 +315,7 @@
 \cs_new_protected:Npn \__color_backend_stroke:n #1
   {
     \tl_set:Nn \l__color_backend_stroke_tl {#1}
-    \__color_backend_stack_push:nn \l__color_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \l__color_backend_stack_int
       { \l__color_backend_fill_tl \c_space_tl #1 }
     \group_insert_after:N \__color_backend_reset:
   }
@@ -948,7 +950,7 @@
     \pdfmanagement_add:nnn { Page / Resources / ExtGState }
       { opacity #1 }
       { << /ca ~ #1 /CA ~ #1 >> }
-    \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+    \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
       { /opacity #1 ~ gs }
     \group_insert_after:N \__opacity_backend_reset:
   }
@@ -957,7 +959,7 @@
     \cs_gset_protected:Npn \__opacity_backend_select_aux:n #1 { }
   }
 \cs_new_protected:Npn \__opacity_backend_reset:
- { \__opacity_backend_stack_pop:n \c__opacity_backend_stack_int }
+ { \__kernel_color_backend_stack_pop:n \c__opacity_backend_stack_int }
 \cs_new_protected:Npn \__opacity_backend_fill:n #1
   {
     \__opacity_backend_fill_stroke:xx
@@ -983,7 +985,7 @@
         \pdfmanagement_add:nnn { Page / Resources / ExtGState }
           { opacity.stroke #1 }
           { << /CA ~ #2 >> }
-        \__opacity_backend_stack_push:nn \c__opacity_backend_stack_int
+        \__kernel_color_backend_stack_push:nn \c__opacity_backend_stack_int
          { /opacity.fill #1 ~ gs /opacity.stroke #2 ~ gs }
         \group_insert_after:N \__opacity_backend_reset:
       }





More information about the latex3-commits mailing list.