diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-07-10 18:16:59 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-07-10 18:16:59 +0200 |
| commit | 78f96f844bc54c5385c1efda0b5faad3c49fa79b (patch) | |
| tree | 3231348e9656b4514e8fb66c9a4df91f27ad685f /tests/typ/layout/place-float-auto.typ | |
| parent | 0e8492eac1606edba86748c4de547a2c758cd232 (diff) | |
Basic floating placement
Diffstat (limited to 'tests/typ/layout/place-float-auto.typ')
| -rw-r--r-- | tests/typ/layout/place-float-auto.typ | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/typ/layout/place-float-auto.typ b/tests/typ/layout/place-float-auto.typ new file mode 100644 index 00000000..799c9fc7 --- /dev/null +++ b/tests/typ/layout/place-float-auto.typ @@ -0,0 +1,19 @@ +// Test floating placement. + +--- +#set page(height: 140pt) +#set place(clearance: 5pt) +#lorem(6) +#place(auto, float: true, rect[A]) +#place(auto, float: true, rect[B]) +#place(auto, float: true, rect[C]) +#place(auto, float: true, rect[D]) + +--- +// Error: 2-20 automatic positioning is only available for floating placement +// Hint: 2-20 you can enable floating placement with `place(float: true, ..)` +#place(auto)[Hello] + +--- +// Error: 2-45 floating placement must be `auto`, `top`, or `bottom` +#place(center + horizon, float: true)[Hello] |
