diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-17 20:51:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-17 20:51:10 +0000 |
commit | 29116173aae7aa9682c5eb2be190b680b62342fd (patch) | |
tree | 8b77f877edd7634f085c0ac84a31b3d5583464e2 /Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def | |
parent | 77079b6394ae3a4db8618c08200cb6724cdd2f23 (diff) |
l3 (17oct21)
git-svn-id: svn://tug.org/texlive/trunk@60790 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def index 7491d90db83..2b3314ee4bd 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-dvips.def}{2021-10-12}{} + {l3backend-dvips.def}{2021-10-17}{} {L3 backend support: dvips} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -118,6 +118,32 @@ } \cs_new_protected:Npn \__color_backend_reset: { \__kernel_backend_literal:n { color~pop } } +\prop_new:N \g__color_backend_colorant_prop +\cs_new:Npx \__color_backend_devicen_colorants:n #1 + { + \exp_not:N \tl_if_blank:nF {#1} + { + \c_space_tl + << ~ + /Colorants ~ + << ~ + \exp_not:N \__color_backend_devicen_colorants:w #1 ~ + \exp_not:N \q_recursion_tail \c_space_tl + \exp_not:N \q_recursion_stop + >> ~ + >> + } + } +\cs_new:Npn \__color_backend_devicen_colorants:w #1 ~ + { + \quark_if_recursion_tail_stop:n {#1} + \prop_if_in:NnT \g__color_backend_colorant_prop {#1} + { + #1 ~ + \prop_item:Nn \g__color_backend_colorant_prop {#1} ~ + } + \__color_backend_devicen_colorants:w + } \cs_new_protected:Npn \__color_backend_select_separation:nn #1#2 { \__color_backend_select:n { separation ~ #1 ~ #2 } } \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn @@ -131,6 +157,15 @@ { \exp_not:N \int_use:N \g__color_model_int } {#1} {#2} {#3} {#4} {#5} } + \prop_gput:Nxx \exp_not:N \g__color_backend_colorant_prop + { / \exp_not:N \str_convert_pdfname:n {#1} } + { + << ~ + /setcolorspace ~ {} ~ + >> ~ begin ~ + color \exp_not:N \int_use:N \g__color_model_int \c_space_tl + end + } } } \cs_generate_variant:Nn \__color_backend_separation_init:nnnnn { nxx } @@ -283,6 +318,7 @@ [ ~ #1 ~ ] ~ #2 ~ { ~ #3 ~ } ~ + \__color_backend_devicen_colorants:n {#1} ] ~ setcolorspace } ~ def ~ end |