summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-11 20:56:15 +0000
committerKarl Berry <karl@freefriends.org>2020-09-11 20:56:15 +0000
commit669f118b45756491c4d06049f501796b22192227 (patch)
treee5d2a257620ae1db2a056173a16044a2c3aca77c /Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
parent926a0d3532953597dadb382e89a94a7aa9a1cdb4 (diff)
l3 (10sep20)
git-svn-id: svn://tug.org/texlive/trunk@56323 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def59
1 files changed, 31 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
index 1307f33a12c..85d24278f52 100644
--- a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
+++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
@@ -25,7 +25,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
- {l3backend-pdftex.def}{2020-09-01}{}
+ {l3backend-pdftex.def}{2020-09-11}{}
{L3 backend support: PDF output (pdfTeX)}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
@@ -125,17 +125,19 @@
{ \__color_backend_select:n { /#1 ~ cs ~ /#1 ~ CS ~ #2 ~ scn ~ #2 ~ SCN } }
\cs_new_protected:Npn \__color_backend_separation_init:nnnnn #1#2#3#4#5
{
+ \pdf_object_now:nx { dict }
+ {
+ /FunctionType ~ 2
+ /Domain ~ [0 ~ 1]
+ \tl_if_blank:nF {#3} { /Range ~ [#3] }
+ /C0 ~ [#4] ~
+ /C1 ~ [#5] /N ~ 1
+ }
\__color_backend_separation_init:n
{
/Separation
/ \str_convert_pdfname:n {#1} ~ #2 ~
- <<
- /FunctionType ~ 2
- /Domain ~ [0 ~ 1]
- \tl_if_blank:nF {#3} { /Range ~ [#3] }
- /C0 ~ [#4] ~
- /C1 ~ [#5] /N ~ 1
- >>
+ \pdf_object_last:
}
\use:x
{
@@ -151,32 +153,33 @@
{
\pdf_object_now:nx { array } {#1}
}
-\cs_new_protected:Npn \__color_backend_separation_init_cielab:nnnnn #1#2#3#4#5
+\cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
{
+ \pdf_object_if_exist:nF { __color_illuminant_CIELAB_ #1 }
+ {
+ \pdf_object_new:nn { __color_illuminant_CIELAB_ #1 } { array }
+ \pdf_object_write:nx { __color_illuminant_CIELAB_ #1 }
+ {
+ /Lab ~
+ <<
+ /WhitePoint ~
+ [ \tl_use:c { c__color_model_whitepoint_CIELAB_ #1 _tl } ]
+ /Range ~ [ \c__color_model_range_CIELAB_tl ]
+ >>
+ }
+ }
\__color_backend_separation_init:nnnnn
{#2}
- { \pdf_object_ref:n { __color_illuminant_cielab_ #1 } }
- { \c__color_model_range_lab_tl }
+ { \pdf_object_ref:n { __color_illuminant_CIELAB_ #1 } }
+ { \c__color_model_range_CIELAB_tl }
{ 100 ~ 0 ~ 0 }
- { #3 ~ #4 ~ #5 }
+ {#3}
}
\cs_if_exist:NF \pdf_object_now:nn
- { \cs_gset_protected:Npn \__color_backend_separation_init_cielab:nnnnn #1#2#3#4#5 { } }
-\cs_new_protected:Npn \__color_backend_separation_init_cielab:n #1
{
- \pdf_object_new:nn { __color_illuminant_cielab_ #1 } { array }
- \pdf_object_write:nx { __color_illuminant_cielab_ #1 }
- {
- /Lab ~
- <<
- /WhitePoint ~
- [ \tl_use:c { c__color_model_whitepoint_cielab_ #1 _tl } ]
- /Range ~ [ \c__color_model_range_lab_tl ]
- >>
- }
+ \cs_gset_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3
+ { }
}
-\cs_if_exist:NF \pdf_object_new:nn
- { \cs_gset_protected:Npn \__color_backend_separation_init_cielab:n #1 { } }
\cs_new_protected:Npn \__color_backend_fill_cmyk:n #1
{ \__kernel_backend_literal_pdf:n { #1 ~ k } }
\cs_new_protected:Npn \__color_backend_fill_gray:n #1
@@ -479,7 +482,7 @@
\cs_new:Npx \__pdf_backend_annotation_last:
{
\exp_not:N \int_value:w
- \exp_not:N \tex_pdfannot:D
+ \exp_not:N \tex_pdflastannot:D
\c_space_tl 0 ~ R
}
\cs_new_protected:Npn \__pdf_backend_link_begin_goto:nnw #1#2
@@ -555,7 +558,7 @@
\int_const:cn
{ c__pdf_backend_object_ \tl_to_str:n {#1} _int }
{ \tex_pdflastobj:D }
- \prop_gput:Nnn \exp_not:N \g__pdf_backend_object_prop {#1} {#2}
+ \prop_gput:Nnn \g__pdf_backend_object_prop {#1} {#2}
}
\cs_new:Npn \__pdf_backend_object_ref:n #1
{ \int_use:c { c__pdf_backend_object_ \tl_to_str:n {#1} _int } ~ 0 ~ R }