diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def | 59 |
1 files changed, 23 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def index 9be080803a7..82de7e19712 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-luatex.def}{2022-08-23}{} + {l3backend-luatex.def}{2022-08-30}{} {L3 backend support: PDF output (LuaTeX)} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -205,8 +205,8 @@ { \use:x { - \pdf_object_new:nn { color \int_use:N \g__color_model_int } { array } - \pdf_object_write:nn { color \int_use:N \g__color_model_int } + \pdf_object_new:n { color \int_use:N \g__color_model_int } + \pdf_object_write:nnn { color \int_use:N \g__color_model_int } { array } { /Separation /#1 ~ #2 ~ \pdf_object_ref_last: } } \prop_gput:Nnx \g__color_backend_colorant_prop { /#1 } @@ -216,8 +216,8 @@ { \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 } + \pdf_object_new:n { __color_illuminant_CIELAB_ #1 } + \pdf_object_write:nnx { __color_illuminant_CIELAB_ #1 } { array } { /Lab ~ << @@ -260,8 +260,8 @@ } \use:x { - \pdf_object_new:nn { color \int_use:N \g__color_model_int } { array } - \pdf_object_write:nn { color \int_use:N \g__color_model_int } + \pdf_object_new:n { color \int_use:N \g__color_model_int } + \pdf_object_write:nnn { color \int_use:N \g__color_model_int } { array } { /DeviceN ~ [ ~ #1 ~ ] ~ @@ -282,8 +282,8 @@ { \pdf_object_if_exist:nF { __color_icc_ #1 } { - \pdf_object_new:nn { __color_icc_ #1 } { fstream } - \pdf_object_write:nx { __color_icc_ #1 } + \pdf_object_new:n { __color_icc_ #1 } + \pdf_object_write:nnx { __color_icc_ #1 } { fstream } { { /N ~ \exp_not:n { #2 } ~ @@ -300,8 +300,8 @@ { \pdf_object_if_exist:nF { __color_icc_ #1 } { - \pdf_object_new:nn { __color_icc_ #1 } { fstream } - \pdf_object_write:nn { __color_icc_ #1 } + \pdf_object_new:n { __color_icc_ #1 } + \pdf_object_write:nnn { __color_icc_ #1 } { fstream } { { /N ~ #3 } {#1} @@ -736,25 +736,27 @@ { / #1 ~ #2 } } \prop_new:N \g__pdf_backend_object_prop -\cs_new_protected:Npn \__pdf_backend_object_new:nn #1#2 +\cs_new_protected:Npn \__pdf_backend_object_new:n #1 { \tex_pdfextension:D obj ~ reserveobjnum ~ \int_const:cn - { c__pdf_backend_object_ \tl_to_str:n {#1} _int } + { c__pdf_object_ \tl_to_str:n {#1} _int } { \tex_pdffeedback:D lastobj } - \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 } -\cs_new_protected:Npn \__pdf_backend_object_write:nn #1#2 + { \int_use:c { c__pdf_object_ \tl_to_str:n {#1} _int } ~ 0 ~ R } +\cs_new_protected:Npn \__pdf_backend_object_write:nnn #1#2#3 { \tex_immediate:D \tex_pdfextension:D obj ~ useobjnum ~ \int_use:c - { c__pdf_backend_object_ \tl_to_str:n {#1} _int } - \str_case_e:nn - { \prop_item:Nn \g__pdf_backend_object_prop {#1} } + { c__pdf_object_ \tl_to_str:n {#1} _int } + \__pdf_backend_object_write:nn {#2} {#3} + } +\cs_new:Npn \__pdf_backend_object_write:nn #1#2 + { + \str_case:nn {#1} { { array } { { [ ~ \exp_not:n {#2} ~ ] } } { dict } { { << ~ \exp_not:n {#2} ~ >> } } @@ -770,28 +772,13 @@ } } } -\cs_generate_variant:Nn \__pdf_backend_object_write:nn { nx } +\cs_generate_variant:Nn \__pdf_backend_object_write:nnn { nnx } \cs_new:Npn \__pdf_exp_not_i:nn #1#2 { \exp_not:n {#1} } \cs_new:Npn \__pdf_exp_not_ii:nn #1#2 { \exp_not:n {#2} } \cs_new_protected:Npn \__pdf_backend_object_now:nn #1#2 { \tex_immediate:D \tex_pdfextension:D obj ~ - \str_case:nn - {#1} - { - { array } { { [ ~ \exp_not:n {#2} ~ ] } } - { dict } { { << ~ \exp_not:n {#2} ~ >> } } - { fstream } - { - stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~ - file ~ { \__pdf_exp_not_ii:nn #2 } - } - { stream } - { - stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~ - { \__pdf_exp_not_ii:nn #2 } - } - } + \__pdf_backend_object_write:nn {#1} {#2} } \cs_generate_variant:Nn \__pdf_backend_object_now:nn { nx } \cs_new:Npx \__pdf_backend_object_last: |