aboutsummaryrefslogtreecommitdiff
path: root/test/writer.jats
diff options
context:
space:
mode:
Diffstat (limited to 'test/writer.jats')
-rw-r--r--test/writer.jats52
1 files changed, 31 insertions, 21 deletions
diff --git a/test/writer.jats b/test/writer.jats
index a4d604607..99cb3230b 100644
--- a/test/writer.jats
+++ b/test/writer.jats
@@ -844,38 +844,48 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
</sec>
<sec id="footnotes">
<title>Footnotes</title>
- <p>Here is a footnote reference,<fn>
+ <p>Here is a footnote reference,<xref ref-type="fn" rid="fn1">1</xref> and
+ another.<xref ref-type="fn" rid="fn2">2</xref> This should
+ <italic>not</italic> be a footnote reference, because it contains a
+ space.[^my note] Here is an inline
+ note.<xref ref-type="fn" rid="fn3">3</xref></p>
+ <disp-quote>
+ <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
+ </disp-quote>
+ <list list-type="order">
+ <list-item>
+ <p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>
+ </list-item>
+ </list>
+ <p>This paragraph should not be part of the note, as it is not indented.</p>
+</sec>
+</body>
+<back>
+<fn-group>
+ <fn id="fn1">
<p>Here is the footnote. It can go anywhere after the footnote reference.
It need not be placed at the end of the document.</p>
- </fn> and another.<fn>
+ </fn>
+ <fn id="fn2">
<p>Here’s the long note. This one contains multiple blocks.</p>
<p>Subsequent blocks are indented to show that they belong to the footnote
(as with list items).</p>
<preformat> { &lt;code&gt; }</preformat>
<p>If you want, you can indent every line, but you can also be lazy and
just indent the first line of each block.</p>
- </fn> This should <italic>not</italic> be a footnote reference, because it
- contains a space.[^my note] Here is an inline note.<fn>
+ </fn>
+ <fn id="fn3">
<p>This is <italic>easier</italic> to type. Inline notes may contain
<ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
and <monospace>]</monospace> verbatim characters, as well as [bracketed
text].</p>
- </fn></p>
- <disp-quote>
- <p>Notes can go in quotes.<fn>
- <p>In quote.</p>
- </fn></p>
- </disp-quote>
- <list list-type="order">
- <list-item>
- <p>And in list items.<fn>
- <p>In list.</p>
- </fn></p>
- </list-item>
- </list>
- <p>This paragraph should not be part of the note, as it is not indented.</p>
-</sec>
-</body>
-<back>
+ </fn>
+ <fn id="fn4">
+ <p>In quote.</p>
+ </fn>
+ <fn id="fn5">
+ <p>In list.</p>
+ </fn>
+</fn-group>
</back>
</article>