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.typ | |
| parent | 1ca4ff69e235ca6dde9ef498a8377d0586f2519c (diff) | |
Fr in stack and par
Diffstat (limited to 'tests/typ/layout/stack.typ')
| -rw-r--r-- | tests/typ/layout/stack.typ | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/typ/layout/stack.typ b/tests/typ/layout/stack.typ deleted file mode 100644 index b8d8a09d..00000000 --- a/tests/typ/layout/stack.typ +++ /dev/null @@ -1,39 +0,0 @@ -// Test stack layouts. - ---- -// Test stacks with different directions. -#let widths = ( - 30pt, 20pt, 40pt, 15pt, - 30pt, 50%, 20pt, 100%, -) - -#let shaded = { - let v = 0 - let next() = { v += 0.1; rgb(v, v, v) } - w => rect(width: w, height: 10pt, fill: next()) -} - -#let items = for w in widths { (shaded(w),) } - -#align(right) -#page(width: 50pt, margins: 0pt) -#stack(dir: btt, ..items) -#pagebreak() - ---- -// Test spacing. -#page(width: 50pt, margins: 0pt) -#par(spacing: 5pt) - -#let x = square(size: 10pt, fill: eastern) -#stack(dir: rtl, spacing: 5pt, x, x, x) -#stack(dir: ltr, x, 20%, x, 20%, x) -#stack(dir: ltr, spacing: 5pt, x, x, 7pt, 3pt, x) - ---- -// Test overflow. -#page(width: 50pt, height: 30pt, margins: 0pt) -#box(stack( - rect(width: 40pt, height: 20pt, fill: conifer), - rect(width: 30pt, height: 13pt, fill: forest), -)) |
