aboutsummaryrefslogtreecommitdiff
path: root/test/writer.typst
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-06-05 16:07:36 -0700
committerJohn MacFarlane <[email protected]>2023-06-05 16:07:36 -0700
commit2c8de4c12939d8f9c0df0950e1f16fdccb1d86e6 (patch)
tree0e1e22d4ddf71cb01574ec8cff697606198427dd /test/writer.typst
parent5539eecd0bac048494a551b3da17f33d9b11c069 (diff)
Typst writer: use `#footnote` for notes.
Closes #8893.
Diffstat (limited to 'test/writer.typst')
-rw-r--r--test/writer.typst47
1 files changed, 13 insertions, 34 deletions
diff --git a/test/writer.typst b/test/writer.typst
index 37a17128b..77deb5e24 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -774,29 +774,9 @@ Here is a movie #image("movie.jpg") icon.
= Footnotes
<footnotes>
-Here is a footnote reference,#super[1] and another.#super[2] This should
-#emph[not] be a footnote reference, because it contains a space.\[^my note\]
-Here is an inline note.#super[3]
-
-#blockquote[
-Notes can go in quotes.#super[4]
-]
-
-+ And in list items.#super[5]
-
-This paragraph should not be part of the note, as it is not indented.
-
-#v(1em)
-#block[
-#horizontalrule
-#set text(size: .88em)
-#v(3pt) // otherwise first note marker is swallowed, bug?
-
-#endnote([1], [Here is the footnote. It can go anywhere after the footnote
-reference. It need not be placed at the end of the document.
-])
-
-#endnote([2], [Here’s the long note. This one contains multiple blocks.
+Here is a footnote reference,#footnote[Here is the footnote. It can go anywhere
+after the footnote reference. It need not be placed at the end of the document.]
+and another.#footnote[Here’s the long note. This one contains multiple blocks.
Subsequent blocks are indented to show that they belong to the footnote (as with
list items).
@@ -806,17 +786,16 @@ list items).
```
If you want, you can indent every line, but you can also be lazy and just indent
-the first line of each block.
-])
-
-#endnote([3], [This is #emph[easier] to type. Inline notes may contain
+the first line of each block.] This should #emph[not] be a footnote reference,
+because it contains a space.\[^my note\] Here is an inline note.#footnote[This
+is #emph[easier] to type. Inline notes may contain
#link("http://google.com")[links] and `]` verbatim characters, as well as
-\[bracketed text\].
-])
-
-#endnote([4], [In quote.
-])
+\[bracketed text\].]
-#endnote([5], [In list.
-])
+#blockquote[
+Notes can go in quotes.#footnote[In quote.]
]
+
++ And in list items.#footnote[In list.]
+
+This paragraph should not be part of the note, as it is not indented.