-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11676 from quarto-dev/bugfix/typst-unitless-image…
…-column-widths typst column layout: interpret unitless image widths as pixels and convert to inches
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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
32 changes: 32 additions & 0 deletions
32
tests/docs/smoke-all/typst/layout/unitless-image-width.qmd
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,32 @@ | ||
--- | ||
title: Unitless image widths in column layout | ||
format: typst | ||
keep-md: true | ||
keep-typ: true | ||
_quarto: | ||
tests: | ||
typst: | ||
ensureTypstFileRegexMatches: | ||
- | ||
['#grid\((\r\n?|\n)columns: \(1fr, 1fr, 1.041667in, 1fr, 0.260417in\), gutter: 1em, rows: 1,'] | ||
|
||
--- | ||
|
||
::: {.callout-note} | ||
|
||
## Plots | ||
|
||
::: {layout-ncol=5} | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}){width=100} | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}){width=25} | ||
|
||
::: | ||
::: |