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 | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def index 6ca51746e32..040c5415daf 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}{2023-03-30}{} + {l3backend-luatex.def}{2023-04-19}{} {L3 backend support: PDF output (LuaTeX)} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -493,7 +493,7 @@ \cs_if_exist:NTF \hook_gput_code:nnn { \hook_gput_code:nnn - { file / l3graphics.sty / after } + { package / l3graphics / after } { backend } {#1} } @@ -505,19 +505,20 @@ \l_graphics_search_ext_seq { .pdf , .eps , .ps , .png , .jpg , .jpeg } } -\tl_new:N \l__graphics_graphics_attr_tl +\tl_new:N \l__graphics_attr_tl \cs_new_protected:Npn \__graphics_backend_getbb_jpg:n #1 { \int_zero:N \l__graphics_page_int \tl_clear:N \l__graphics_pagebox_tl - \tl_set:Nx \l__graphics_graphics_attr_tl + \tl_set:Nx \l__graphics_attr_tl { \tl_if_empty:NF \l__graphics_decodearray_str { :D \l__graphics_decodearray_str } \bool_if:NT \l__graphics_interpolate_bool { :I } + \str_if_empty:NF \l__graphics_pdf_str + { :X \l__graphics_pdf_str } } - \tl_clear:N \l__graphics_graphics_attr_tl \__graphics_backend_getbb_auxi:n {#1} } \cs_new_eq:NN \__graphics_backend_getbb_jpeg:n \__graphics_backend_getbb_jpg:n @@ -526,33 +527,38 @@ { \tl_clear:N \l__graphics_decodearray_str \bool_set_false:N \l__graphics_interpolate_bool - \tl_set:Nx \l__graphics_graphics_attr_tl + \tl_set:Nx \l__graphics_attr_tl { : \l__graphics_pagebox_tl \int_compare:nNnT \l__graphics_page_int > 1 { :P \int_use:N \l__graphics_page_int } + \str_if_empty:NF \l__graphics_pdf_str + { :X \l__graphics_pdf_str } } \__graphics_backend_getbb_auxi:n {#1} } \cs_new_protected:Npn \__graphics_backend_getbb_auxi:n #1 { - \__graphics_bb_restore:xF { #1 \l__graphics_graphics_attr_tl } + \__graphics_bb_restore:xF { #1 \l__graphics_attr_tl } { \__graphics_backend_getbb_auxii:n {#1} } } \cs_new_protected:Npn \__graphics_backend_getbb_auxii:n #1 { \exp_args:Ne \__graphics_backend_getbb_auxiii:n { \__graphics_backend_dequote:w #1 " #1 " \s__graphics_stop } - \int_const:cn { c__graphics_ #1 \l__graphics_graphics_attr_tl _int } + \int_const:cn { c__graphics_ #1 \l__graphics_attr_tl _int } { \tex_the:D \tex_pdflastximage:D } - \__graphics_bb_save:x { #1 \l__graphics_graphics_attr_tl } + \__graphics_bb_save:x { #1 \l__graphics_attr_tl } } \cs_new_protected:Npn \__graphics_backend_getbb_auxiii:n #1 { \tex_immediate:D \tex_pdfximage:D - \bool_lazy_or:nnT - { \l__graphics_interpolate_bool } - { ! \tl_if_empty_p:N \l__graphics_decodearray_str } + \bool_lazy_any:nT + { + { \l__graphics_interpolate_bool } + { ! \tl_if_empty_p:N \l__graphics_decodearray_str } + { ! \str_if_empty_p:N \l__graphics_pdf_str } + } { attr ~ { @@ -560,6 +566,7 @@ { /Decode~[ \l__graphics_decodearray_str ] } \bool_if:NT \l__graphics_interpolate_bool { /Interpolate~true } + \l__graphics_pdf_str } } \int_compare:nNnT \l__graphics_page_int > 0 @@ -576,7 +583,7 @@ \cs_new_protected:Npn \__graphics_backend_include_jpg:n #1 { \tex_pdfrefximage:D - \int_use:c { c__graphics_ #1 \l__graphics_graphics_attr_tl _int } + \int_use:c { c__graphics_ #1 \l__graphics_attr_tl _int } } \cs_new_eq:NN \__graphics_backend_include_jpeg:n \__graphics_backend_include_jpg:n \cs_new_eq:NN \__graphics_backend_include_pdf:n \__graphics_backend_include_jpg:n |