From 4e46fb1e5ec1bafe25ffa8ef64dc2a4bfb094090 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 12 Oct 2024 14:01:31 +0200 Subject: Fix logical ordering of floats and footnotes (#5185) --- tests/suite/model/figure.typ | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/suite/model') diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ index fbd0ab29..19e81116 100644 --- a/tests/suite/model/figure.typ +++ b/tests/suite/model/figure.typ @@ -267,3 +267,25 @@ HI#footnote.entry(clearance: 2.5em)[There] // Test that figure caption separator is synthesized correctly. #show figure.caption: c => test(c.separator, [#": "]) #figure(table[], caption: [This is a test caption]) + +--- issue-4966-figure-float-counter --- +#let c = context counter(figure.where(kind: image)).display() +#set align(center) + +#c + +#figure( + square(c), + placement: bottom, + caption: [A] +) + +#c + +#figure( + circle(c), + placement: top, + caption: [B] +) + +#c -- cgit v1.2.3