Add tests

This commit is contained in:
Malo 2025-04-03 23:09:12 +02:00
parent f5fecbd0c1
commit 2a3c6f5ffe
3 changed files with 40 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -171,6 +171,46 @@
== Middle 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 ---
#set heading(numbering: "1.")
#show outline.entry: it => block(it.inner())