diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-26 14:51:48 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-26 14:56:10 +0200 |
| commit | fb0cd3df6e1e1077c6f19c319726c9aa9678325b (patch) | |
| tree | bde325cdcb0efa59324781bf2af8c4303e5a25de /tests/typ/layout/stack-2.typ | |
| parent | 1ca4ff69e235ca6dde9ef498a8377d0586f2519c (diff) | |
Fr in stack and par
Diffstat (limited to 'tests/typ/layout/stack-2.typ')
| -rw-r--r-- | tests/typ/layout/stack-2.typ | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/typ/layout/stack-2.typ b/tests/typ/layout/stack-2.typ new file mode 100644 index 00000000..afc9de39 --- /dev/null +++ b/tests/typ/layout/stack-2.typ @@ -0,0 +1,24 @@ +// Test fr units in stacks. + +--- +#page(height: 3.5cm) +#stack( + dir: ltr, + spacing: 1fr, + ..for c in "ABCDEFGHI" {([#c],)} +) + +Hello +#v(2fr) +from #h(1fr) the #h(1fr) wonderful +#v(1fr) +World! 🌍 + +--- +#page(height: 2cm) +#font(white) +#box(fill: forest)[ + #v(1fr) + #h(1fr) Hi you! #h(5pt) + #v(5pt) +] |
