From ff2650373c97bcd94d7ffac916f5ee631ee42aed Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 13 Sep 2023 15:26:23 +0200 Subject: Fix floating placement within containers Fixes #1879 --- tests/ref/layout/place-float-columns.png | Bin 0 -> 106011 bytes tests/typ/layout/place-float-columns.typ | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/ref/layout/place-float-columns.png create mode 100644 tests/typ/layout/place-float-columns.typ (limited to 'tests') diff --git a/tests/ref/layout/place-float-columns.png b/tests/ref/layout/place-float-columns.png new file mode 100644 index 00000000..186b79d1 Binary files /dev/null and b/tests/ref/layout/place-float-columns.png differ 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) -- cgit v1.2.3