From 9ae7557ac0ac27ee63e8b32aec2bab53b008f72a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2024 10:59:47 -0700 Subject: Typst writer: omit width/height in images unless explicitly specified. Previously we computed width/heigth for images that didn't have size information, because otherwise typst would expand the image to fit page width. This typst behavior has changed in 0.11. This change fixes a bug in which images would sometimes overflow page margins, depending on their intrinsic size. Closes #9236. --- test/writer.typst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/writer.typst b/test/writer.typst index 3367ee602..6fcf3abe5 100644 --- a/test/writer.typst +++ b/test/writer.typst @@ -784,14 +784,14 @@ or here: From "Voyage dans la Lune" by Georges Melies (1902): -#figure([#box(width: 150.0pt, image("lalune.jpg"));], +#figure([#box(image("lalune.jpg"))], caption: [ lalune ], kind: auto ) -Here is a movie #box(width: 20.0pt, image("movie.jpg")) icon. +Here is a movie #box(image("movie.jpg")) icon. #horizontalrule -- cgit v1.2.3