summaryrefslogtreecommitdiff
path: root/tests/suite/model/figure.typ
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-10-12 00:19:17 -0300
committerPgBiel <9021226+PgBiel@users.noreply.github.com>2024-10-12 00:46:35 -0300
commit84b66d43d601ab0e5d8a890a501002f77b441075 (patch)
tree4ef8ccfac76080610d8a1aa71d33b5dfd0d1f610 /tests/suite/model/figure.typ
parent16736feb13eec87eb9ca114deaeb4f7eeb7409d2 (diff)
repeatable figure captionsrepeat-figure-caption
Diffstat (limited to 'tests/suite/model/figure.typ')
-rw-r--r--tests/suite/model/figure.typ28
1 files changed, 28 insertions, 0 deletions
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")