mirror of
https://github.com/typst/typst
synced 2025-05-16 18:15:29 +08:00
35 lines
667 B
Typst
35 lines
667 B
Typst
// Test footnotes.
|
|
|
|
---
|
|
#footnote[Hi]
|
|
|
|
---
|
|
// Test space collapsing before footnote.
|
|
A#footnote[A] \
|
|
A #footnote[A]
|
|
|
|
---
|
|
// Test nested footnotes.
|
|
First \
|
|
Second #footnote[A, #footnote[B, #footnote[C]]] \
|
|
Third #footnote[D, #footnote[E]] \
|
|
Fourth
|
|
|
|
---
|
|
// Currently, numbers a bit out of order if a nested footnote ends up in the
|
|
// same frame as another one. :(
|
|
#footnote[A, #footnote[B]], #footnote[C]
|
|
|
|
---
|
|
// Test customization.
|
|
#show footnote: set text(red)
|
|
#show footnote.entry: set text(8pt, style: "italic")
|
|
#set footnote.entry(
|
|
indent: 0pt,
|
|
gap: 0.6em,
|
|
clearance: 0.3em,
|
|
separator: repeat[.],
|
|
)
|
|
|
|
Beautiful footnotes. #footnote[Wonderful, aren't they?]
|