[latex3-commits] [git/LaTeX3-latex3-latex3] master: Set image box to size of image (424d1a0)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed May 8 14:33:26 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/424d1a0c57811fa8f97f9a12c8670e6e59d156dc
>---------------------------------------------------------------
commit 424d1a0c57811fa8f97f9a12c8670e6e59d156dc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed May 8 13:33:26 2019 +0100
Set image box to size of image
This is needed for \special-based images,
not in pdfTeX/LuaTeX.
>---------------------------------------------------------------
424d1a0c57811fa8f97f9a12c8670e6e59d156dc
l3experimental/l3image/l3image.dtx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/l3experimental/l3image/l3image.dtx b/l3experimental/l3image/l3image.dtx
index 10635e9..c3b14c7 100644
--- a/l3experimental/l3image/l3image.dtx
+++ b/l3experimental/l3image/l3image.dtx
@@ -527,6 +527,8 @@
\l_@@_name_tl
}
\box_set_dp:Nn \l_@@_internal_box { 0pt }
+ \box_set_ht:Nn \l_@@_internal_box { \l_image_ury_dim - \l_image_lly_dim }
+ \box_set_wd:Nn \l_@@_internal_box { \l_image_urx_dim - \l_image_llx_dim }
\box_use_drop:N \l_@@_internal_box
}
{ \__kernel_msg_error:nnn { image } { unsupported-image-type } {#1} }
More information about the latex3-commits
mailing list