[latex3-commits] [git/LaTeX3-latex3-latex3] master: Split up separation color backend (777e6fcef)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Aug 26 21:28:03 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/777e6fcefa1d030d5964dc271a98229cdf40d8cb
>---------------------------------------------------------------
commit 777e6fcefa1d030d5964dc271a98229cdf40d8cb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Aug 26 20:18:20 2020 +0100
Split up separation color backend
We will need to split more of it to get this
all right and support PostScript spot colors fully.
>---------------------------------------------------------------
777e6fcefa1d030d5964dc271a98229cdf40d8cb
l3backend/l3backend-color.dtx | 69 ++++++++++++++++++++++++++++++++++++++-----
1 file changed, 61 insertions(+), 8 deletions(-)
diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 6defac481..764ec2eb6 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -66,7 +66,8 @@
% stack available with all modern drivers, and can use that.
% Whilst \texttt{(x)dvipdfmx} does have its own approach to color specials,
% it is easier to use \texttt{dvips}-like ones for all cases except direct
-% PDF output.
+% PDF output. Separations fall in between these \enquote{stools} as we
+% need a different method for essentially each backend.
%
% \subsection{\texttt{dvips}-style}
%
@@ -140,13 +141,6 @@
% \end{macro}
% \end{macro}
%
-% \begin{macro}{\@@_backend_select_separation:nn}
-% \begin{macrocode}
-\cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
- { \@@_backend_select:n {#1} }
-% \end{macrocode}
-% \end{macro}
-%
% \begin{macrocode}
%</dvisvgm|dvipdfmx|dvips|xdvipdfmx>
% \end{macrocode}
@@ -244,6 +238,64 @@
% \end{macro}
% \end{macro}
%
+% \begin{macrocode}
+%</pdfmode>
+% \end{macrocode}
+%
+% \subsection{Separations}
+%
+% Here, life gets interesting and we need essentially one approach per
+% backend.
+%
+% \begin{macrocode}
+%<*dvipdmx|xdvipdfmx>
+% \end{macrocode}
+%
+% \begin{macro}{\@@_backend_select_separation:nn}
+% \begin{macrocode}
+\cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
+ { \@@_backend_select:n {#1} }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+%</dvipdmx|xdvipdfmx>
+% \end{macrocode}
+%
+% \begin{macrocode}
+%<*dvips>
+% \end{macrocode}
+%
+% \begin{macro}{\@@_backend_select_separation:nn}
+% \begin{macrocode}
+\cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
+ { \@@_backend_select:n {#1} }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+%</dvips>
+% \end{macrocode}
+%
+% \begin{macrocode}
+%<*dvisvgm>
+% \end{macrocode}
+%
+% \begin{macro}{\@@_backend_select_separation:nn}
+% \begin{macrocode}
+\cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
+ { \@@_backend_select:n {#1} }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+%</dvisvgm>
+% \end{macrocode}
+%
+% \begin{macrocode}
+%<*pdfmode>
+% \end{macrocode}
+%
% \begin{macro}{\@@_backend_select_separation:nn}
% \begin{macrocode}
\cs_new_protected:Npn \@@_backend_select_separation:nn #1#2
@@ -255,6 +307,7 @@
%</pdfmode>
% \end{macrocode}
%
+%
% \subsection{Fill and stroke color}
%
% Here, \texttt{(x)dvipdfmx} follows \texttt{pdfmode}, while for \texttt{dvips}
More information about the latex3-commits
mailing list.