[latex3-commits] [git/LaTeX3-latex3-latex3] master: Correct separation selection for XeTeX (d396c5a4f)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Sep 9 13:20:57 CEST 2020


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

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

commit d396c5a4f1d68ab979e091400030f437c3e8f551
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Sep 9 12:17:17 2020 +0100

    Correct separation selection for XeTeX


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

d396c5a4f1d68ab979e091400030f437c3e8f551
 l3backend/CHANGELOG.md        |  3 ++-
 l3backend/l3backend-color.dtx | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index 3bc032aa9..a2d6edc7c 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -6,8 +6,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
-###
+### Fixed
 - Some PDF object functions
+- Separation color selection for `dvipdfmx`/XeTeX
 
 ## [2020-09-01]
 
diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index ed9adb656..e800c7010 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -406,6 +406,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\@@_backend_select_separation:nn}
+% \begin{macro}{\@@_backend_select:n}
 %   Different syntaxes here as the stacks are accessed very differently.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
@@ -415,8 +416,16 @@
 %<*luatex|pdftex>
   { \@@_backend_select:n { /#1 ~ cs ~ /#1 ~ CS ~ #2 ~ scn ~ #2 ~ SCN } }
 %</luatex|pdftex>
+%<*dvipdfmx|xetex>
+\cs_new_protected:Npn \@@_backend_select:n #1
+  {
+    \__kernel_backend_literal:n { pdf: bc ~ #1 }
+    \group_insert_after:N \@@_backend_reset:
+  }
+%</dvipdfmx|xetex>
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}{\@@_backend_separation_init:nnnnn}
 % \begin{macro}{\@@_backend_separation_init:n}
@@ -455,8 +464,10 @@
       }
 %</luatex|pdftex>
   }
+%<*luatex|pdftex>
 \cs_if_exist:NF \pdf_object_now:nn
   { \cs_gset_protected:Npn \@@_backend_separation_init:nnnnn #1#2#3#4#5 { } }
+%</luatex|pdftex>
 \cs_new_protected:Npn \@@_backend_separation_init:n #1
   {
 %<*dvipdfmx|xetex>
@@ -498,8 +509,10 @@
         >>
      }
   }
+%<*luatex|pdftex>
 \cs_if_exist:NF \pdf_object_new:nn
   { \cs_gset_protected:Npn \@@_backend_separation_init_cielab:n #1 { } }
+%</luatex|pdftex>
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.