summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3backend/l3backend-color.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3backend/l3backend-color.dtx')
-rw-r--r--macros/latex/contrib/l3backend/l3backend-color.dtx31
1 files changed, 17 insertions, 14 deletions
diff --git a/macros/latex/contrib/l3backend/l3backend-color.dtx b/macros/latex/contrib/l3backend/l3backend-color.dtx
index 2d33f8ed4e..72254382f5 100644
--- a/macros/latex/contrib/l3backend/l3backend-color.dtx
+++ b/macros/latex/contrib/l3backend/l3backend-color.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2021-08-04}
+% \date{Released 2021-10-12}
%
% \maketitle
%
@@ -500,9 +500,10 @@
% \begin{macro}
% {
% \@@_backend_separation_init:nnnnn,
-% \@@_backend_separation_init:nxxnn,
-% \@@_backend_separation_init_aux:nnnnn
+% \@@_backend_separation_init:nxxnn
% }
+% \begin{macro}
+% {\@@_backend_separation_init_aux:nnnnnn}
% \begin{macro}[EXP]
% {
% \@@_backend_separation_init_/DeviceCMYK:nnn ,
@@ -528,29 +529,30 @@
{
\bool_if:NT \g__kernel_backend_header_bool
{
- \__kernel_backend_first_shipout:n
+ \exp_args:Nx \__kernel_backend_first_shipout:n
{
- \exp_not:N \@@_backend_separation_init_aux:nnnnn
+ \exp_not:N \@@_backend_separation_init_aux:nnnnnn
+ { \exp_not:N \int_use:N \g_@@_model_int }
{#1} {#2} {#3} {#4} {#5}
}
}
}
\cs_generate_variant:Nn \@@_backend_separation_init:nnnnn { nxx }
-\cs_new_protected:Npn \@@_backend_separation_init_aux:nnnnn #1#2#3#4#5
+\cs_new_protected:Npn \@@_backend_separation_init_aux:nnnnnn #1#2#3#4#5#6
{
\__kernel_backend_literal:e
{
!
TeXDict ~ begin ~
- /color \int_use:N \g_@@_model_int
+ /color #1
{
[ ~
- /Separation ~ ( \str_convert_pdfname:n {#1} ) ~
- [ ~ #2 ~ ] ~
+ /Separation ~ ( \str_convert_pdfname:n {#2} ) ~
+ [ ~ #3 ~ ] ~
{
- \cs_if_exist_use:cF { @@_backend_separation_init_ #2 :nnn }
+ \cs_if_exist_use:cF { @@_backend_separation_init_ #3 :nnn }
{ \@@_backend_separation_init:nnn }
- {#3} {#4} {#5}
+ {#4} {#5} {#6}
}
] ~ setcolorspace
} ~ def ~
@@ -720,6 +722,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\@@_backend_devicen_init:nnn}
% Trivial as almost all of the work occurs in the shared code.
@@ -877,7 +880,7 @@
[ ~
\prg_replicate:nn
{ 0 \@@_backend_devicen_init:w #1 ~ \s_@@_stop }
- { 0 ~ 1 ~ } ~
+ { 0 ~ 1 ~ }
] ~
/Range ~
[ ~
@@ -889,7 +892,7 @@
} ~
]
}
- {#3}
+ { {#3} }
}
\@@_backend_separation_init:n
{
@@ -900,7 +903,7 @@
}
\bool_lazy_and:nnT
{ \cs_if_exist_p:N \pdfmanagement_if_active_p: }
- { \pdfmanagement_if_active_p:}
+ { \pdfmanagement_if_active_p: }
{
\use:x
{