diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/meta/figure-caption.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/meta/figure-caption.typ')
| -rw-r--r-- | tests/typ/meta/figure-caption.typ | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/tests/typ/meta/figure-caption.typ b/tests/typ/meta/figure-caption.typ deleted file mode 100644 index 0cdc2bbb..00000000 --- a/tests/typ/meta/figure-caption.typ +++ /dev/null @@ -1,64 +0,0 @@ -// Test figure captions. - ---- -// Test figure.caption element -#show figure.caption: emph - -#figure( - [Not italicized], - caption: [Italicized], -) - ---- -// Test figure.caption element for specific figure kinds -#show figure.caption.where(kind: table): underline - -#figure( - [Not a table], - caption: [Not underlined], -) - -#figure( - table[A table], - caption: [Underlined], -) - ---- -// Test creating custom figure and custom caption - -#let gap = 0.7em -#show figure.where(kind: "custom"): it => rect(inset: gap, { - align(center, it.body) - v(gap, weak: true) - line(length: 100%) - v(gap, weak: true) - align(center, it.caption) -}) - -#figure( - [A figure], - kind: "custom", - caption: [Hi], - supplement: [A], -) - -#show figure.caption: it => emph[ - #it.body - (#it.supplement - #context it.counter.display(it.numbering)) -] - -#figure( - [Another figure], - kind: "custom", - caption: [Hi], - supplement: [B], -) - ---- -// Ref: false -#set figure.caption(position: top) - ---- -// Error: 31-38 expected `top` or `bottom`, found horizon -#set figure.caption(position: horizon) |
