mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Add tests
This commit is contained in:
parent
f5fecbd0c1
commit
2a3c6f5ffe
BIN
tests/ref/outline-entry-force-supplement.png
Normal file
BIN
tests/ref/outline-entry-force-supplement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
tests/ref/outline-entry-no-supplement.png
Normal file
BIN
tests/ref/outline-entry-no-supplement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
@ -171,6 +171,46 @@
|
|||||||
== Middle heading
|
== Middle heading
|
||||||
=== Lower heading
|
=== Lower heading
|
||||||
|
|
||||||
|
--- outline-entry-force-supplement ---
|
||||||
|
#set page(width: 200pt)
|
||||||
|
#set heading(numbering: "1.", supplement: [Chapter])
|
||||||
|
|
||||||
|
#show outline.entry.where(level: 1): it => link(
|
||||||
|
it.element.location(),
|
||||||
|
it.indented(
|
||||||
|
it.prefix(add-supplement: true),
|
||||||
|
it.inner(),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
#outline()
|
||||||
|
|
||||||
|
= Top
|
||||||
|
== Middle
|
||||||
|
=== Lower
|
||||||
|
== Middle Again
|
||||||
|
= Top again
|
||||||
|
#set heading(numbering: none)
|
||||||
|
= Top again again
|
||||||
|
|
||||||
|
--- outline-entry-no-supplement ---
|
||||||
|
#set page(width: 200pt)
|
||||||
|
#set math.equation(numbering: "(i)", supplement: [Eq])
|
||||||
|
|
||||||
|
#show outline.entry.where(level: 1): it => link(
|
||||||
|
it.element.location(),
|
||||||
|
it.indented(
|
||||||
|
it.prefix(add-supplement: false),
|
||||||
|
it.inner(),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
#outline(target: math.equation)
|
||||||
|
|
||||||
|
$ 1 $
|
||||||
|
#set math.equation(numbering: none)
|
||||||
|
$ 2 $
|
||||||
|
|
||||||
--- outline-entry-inner ---
|
--- outline-entry-inner ---
|
||||||
#set heading(numbering: "1.")
|
#set heading(numbering: "1.")
|
||||||
#show outline.entry: it => block(it.inner())
|
#show outline.entry: it => block(it.inner())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user