diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-10-12 00:19:17 -0300 |
|---|---|---|
| committer | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-10-12 00:46:35 -0300 |
| commit | 84b66d43d601ab0e5d8a890a501002f77b441075 (patch) | |
| tree | 4ef8ccfac76080610d8a1aa71d33b5dfd0d1f610 /tests | |
| parent | 16736feb13eec87eb9ca114deaeb4f7eeb7409d2 (diff) | |
repeatable figure captionsrepeat-figure-caption
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/figure-caption-repeat-bottom.png | bin | 0 -> 1750 bytes | |||
| -rw-r--r-- | tests/ref/figure-caption-repeat-top.png | bin | 0 -> 1290 bytes | |||
| -rw-r--r-- | tests/suite/model/figure.typ | 28 |
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/ref/figure-caption-repeat-bottom.png b/tests/ref/figure-caption-repeat-bottom.png Binary files differnew file mode 100644 index 00000000..9e72f07d --- /dev/null +++ b/tests/ref/figure-caption-repeat-bottom.png diff --git a/tests/ref/figure-caption-repeat-top.png b/tests/ref/figure-caption-repeat-top.png Binary files differnew file mode 100644 index 00000000..a9fe48c8 --- /dev/null +++ b/tests/ref/figure-caption-repeat-top.png diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ index fbd0ab29..0a073160 100644 --- a/tests/suite/model/figure.typ +++ b/tests/suite/model/figure.typ @@ -219,6 +219,34 @@ We can clearly see that @fig-cylinder and // Error: 31-38 expected `top` or `bottom`, found horizon #set figure.caption(position: horizon) +--- figure-caption-repeat-bottom --- +#show figure.where(kind: table): set block(breakable: true) +#set page(height: 7em) +#figure( + table( + columns: 3, + [A], [B], [C], + [D], [E], [F], + [G], [H], [I], + [J], [K], [L] + ), + caption: figure.caption(repeat: true)[A nice table.] +) + +--- figure-caption-repeat-top --- +#show figure.where(kind: table): set block(breakable: true) +#set page(height: 7em) +#figure( + table( + columns: 3, + [A], [B], [C], + [D], [E], [F], + [G], [H], [I], + [J], [K], [L] + ), + caption: figure.caption(position: top, repeat: true)[A nice table.] +) + --- figure-localization-fr --- // Test French #set text(lang: "fr") |
