diff options
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/layout/flow/footnote.typ | 7 | ||||
| -rw-r--r-- | tests/suite/layout/flow/place.typ | 1 | ||||
| -rw-r--r-- | tests/suite/model/figure.typ | 22 |
3 files changed, 27 insertions, 3 deletions
diff --git a/tests/suite/layout/flow/footnote.typ b/tests/suite/layout/flow/footnote.typ index 945ae4d3..4cf49777 100644 --- a/tests/suite/layout/flow/footnote.typ +++ b/tests/suite/layout/flow/footnote.typ @@ -9,13 +9,16 @@ A#footnote[A] \ A #footnote[A] --- footnote-nested --- -// Currently, numbers a bit out of order if a nested footnote ends up in the -// same frame as another one. :( First \ Second #footnote[A, #footnote[B, #footnote[C]]] Third #footnote[D, #footnote[E]] \ Fourth #footnote[F] +--- footnote-nested-break-across-pages --- +#set page(height: 80pt) +A #footnote([I: ] + lines(6) + footnote[II]) +B #footnote[III] + --- footnote-entry --- // Test customization. #show footnote: set text(red) diff --git a/tests/suite/layout/flow/place.typ b/tests/suite/layout/flow/place.typ index f3b77118..ec27139f 100644 --- a/tests/suite/layout/flow/place.typ +++ b/tests/suite/layout/flow/place.typ @@ -165,7 +165,6 @@ C place(auto, float: true, block(width: 100%, height: 100%, fill: aqua)) ) - --- place-float-column-align-auto --- #set page(height: 150pt, columns: 2) #set place(auto, float: true, clearance: 10pt) 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 |
