summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-11 20:01:56 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-11 20:01:56 +0100
commit1a390deaea040191cf0e5937bd8e1427b49db71b (patch)
treec45b034b7f3179170c649ceac6124ed4666ffd5c /tests
parent529d3e10c6b4d973e88b6c295eb22a45ea426e42 (diff)
Figures
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/meta/figure.pngbin0 -> 25146 bytes
-rw-r--r--tests/typ/meta/figure.typ24
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/meta/figure.png b/tests/ref/meta/figure.png
new file mode 100644
index 00000000..b39f462f
--- /dev/null
+++ b/tests/ref/meta/figure.png
Binary files differ
diff --git a/tests/typ/meta/figure.typ b/tests/typ/meta/figure.typ
new file mode 100644
index 00000000..567e0431
--- /dev/null
+++ b/tests/typ/meta/figure.typ
@@ -0,0 +1,24 @@
+// Test figures.
+
+---
+#set page(width: 150pt)
+#set figure(numbering: "I")
+
+We can clearly see that @fig-cylinder and
+@tab-complex are relevant in this context.
+
+#figure(
+ table(columns: 2)[a][b],
+ caption: [The basic table.],
+) <tab-basic>
+
+#figure(
+ pad(y: -11pt, image("/cylinder.svg", height: 3cm)),
+ caption: [The basic shapes.],
+ numbering: "I",
+) <fig-cylinder>
+
+#figure(
+ table(columns: 3)[a][b][c][d][e][f],
+ caption: [The complex table.],
+) <tab-complex>