From 2c8de4c12939d8f9c0df0950e1f16fdccb1d86e6 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 5 Jun 2023 16:07:36 -0700 Subject: Typst writer: use `#footnote` for notes. Closes #8893. --- test/writer.typst | 47 +++++++++++++---------------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) (limited to 'test') 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 -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. -- cgit v1.2.3