-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typst writer: fix handling of pixel image dimensions.
These are now converted to inches as in the LaTeX writer. Closes #9945.
- Loading branch information
Showing
2 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
``` | ||
% pandoc -t typst --dpi 300 | ||
![](image.jpg){width=300 height=300} | ||
^D | ||
#box(image("image.jpg", height: 1in, width: 1in)) | ||
``` | ||
|
||
``` | ||
% pandoc -t typst --dpi 600 | ||
![](image.jpg){width=300px height=300px} | ||
^D | ||
#box(image("image.jpg", height: 0.5in, width: 0.5in)) | ||
``` | ||
|
||
``` | ||
% pandoc -t typst --dpi 600 | ||
![](image.jpg){width=1in height=3cm} | ||
^D | ||
#box(image("image.jpg", height: 3cm, width: 1in)) | ||
``` | ||
|
||
|
||
``` | ||
% pandoc -t typst --dpi 600 | ||
![](image.jpg){.foo .bar baz=3} | ||
^D | ||
#box(image("image.jpg")) | ||
``` |