diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-13 15:26:23 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-13 15:26:23 +0200 |
| commit | ff2650373c97bcd94d7ffac916f5ee631ee42aed (patch) | |
| tree | d3a02bb6735c0488d4bc6b7f74905cca1cffc3ff /tests | |
| parent | dad7c88576224f636f9292fd60f0f65dd4b3a043 (diff) | |
Fix floating placement within containers
Fixes #1879
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/place-float-columns.png | bin | 0 -> 106011 bytes | |||
| -rw-r--r-- | tests/typ/layout/place-float-columns.typ | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/ref/layout/place-float-columns.png b/tests/ref/layout/place-float-columns.png Binary files differnew file mode 100644 index 00000000..186b79d1 --- /dev/null +++ b/tests/ref/layout/place-float-columns.png diff --git a/tests/typ/layout/place-float-columns.typ b/tests/typ/layout/place-float-columns.typ new file mode 100644 index 00000000..0e5c6d0c --- /dev/null +++ b/tests/typ/layout/place-float-columns.typ @@ -0,0 +1,19 @@ +// Test floats in columns. + +--- +#set page(height: 200pt, width: 300pt) +#show: columns.with(2) + += Introduction +#figure( + placement: bottom, + caption: [A glacier], + image("/files/glacier.jpg", width: 50%), +) +#lorem(45) +#figure( + placement: top, + caption: [A rectangle], + rect[Hello!], +) +#lorem(20) |
