-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use fraction units for typst column layouts
fixes #11578
- Loading branch information
1 parent
a35d0c9
commit 95ce1e1
Showing
5 changed files
with
149 additions
and
8 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
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,30 @@ | ||
--- | ||
title: "Fraction layout" | ||
format: | ||
typst: | ||
keep-typ: true | ||
_quarto: | ||
tests: | ||
typst: | ||
ensureTypstFileRegexMatches: | ||
- | ||
['#grid\((\r\n?|\n)columns: \(1fr, 2fr, 2fr, 1fr, 3fr, 1fr, 1fr\), gutter: 1em, rows: 1,'] | ||
--- | ||
|
||
::: {layout="[1, 2, 2, 1, 3, 1, 1]"} | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
![Placeholder]({{< placeholder 200 >}}) | ||
|
||
::: |
35 changes: 35 additions & 0 deletions
35
tests/docs/smoke-all/typst/layout/overflowing-callout-7.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,35 @@ | ||
--- | ||
title: Test | ||
format: typst | ||
keep-md: true | ||
keep-typ: true | ||
_quarto: | ||
tests: | ||
typst: | ||
ensureTypstFileRegexMatches: | ||
- | ||
['#grid\((\r\n?|\n)columns: \(1fr, 1fr, 100pt, 1fr, 1fr, 1fr, 1fr\), gutter: 1em, rows: 1,'] | ||
|
||
--- | ||
|
||
::: {.callout-note} | ||
|
||
## Plots | ||
|
||
::: {layout-ncol=7} | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}){width="100pt"} | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
::: | ||
::: |
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,33 @@ | ||
--- | ||
title: Test | ||
format: typst | ||
keep-md: true | ||
keep-typ: true | ||
_quarto: | ||
tests: | ||
typst: | ||
ensureTypstFileRegexMatches: | ||
- | ||
['#grid\((\r\n?|\n)columns: \(1fr, 1fr, 1fr, 1fr, 1fr\), gutter: 1em, rows: 1,'] | ||
--- | ||
|
||
::: {.callout-note} | ||
|
||
## Plots | ||
|
||
::: {layout-ncol=5} | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
|
||
![]({{< placeholder format=svg >}}) | ||
::: | ||
|
||
a) Beschreiben Sie die 5 Verteilungsformen. [5 Punkte] | ||
|
||
::: |