diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-08-23 16:10:00 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-08-23 16:10:00 -0700 |
| commit | 3cb6130d1a6e16f34f98f02ebfdee3f30cdc20c0 (patch) | |
| tree | 3dd2135c13f8f293ac62356a37c36bffa3959cb5 /test/command | |
| parent | d21a9cd7f80cedb18d97cb92163ae7ec0f3a6237 (diff) | |
JATS writer: fix placement of ref-list...
...when no title is specified for the reference section.
(In this case we place it in `back` with an empty title.)
Closes #9017.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/7016.md | 1 | ||||
| -rw-r--r-- | test/command/9017.md | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/test/command/7016.md b/test/command/7016.md index f43fdd21f..4b1e3ea2b 100644 --- a/test/command/7016.md +++ b/test/command/7016.md @@ -39,6 +39,7 @@ Blah [@doe]. </body> <back> <ref-list> + <title></title> <ref id="ref-doe"> <mixed-citation>Doe, J. (2021). Another article. <italic>Proceedings of the Academy of Test Inputs</italic>. diff --git a/test/command/9017.md b/test/command/9017.md new file mode 100644 index 000000000..dd4fd6c51 --- /dev/null +++ b/test/command/9017.md @@ -0,0 +1,53 @@ +``` +% pandoc -t jats --citeproc -s +--- +references: +- author: DeGroot + id: degroot_probability + title: Probability + issued: 2002 +title: Doc example with single reference +--- + +# I like + +[@degroot_probability]. +^D +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN" + "JATS-archivearticle1.dtd"> +<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other"> +<front> +<journal-meta> +<journal-id></journal-id> +<journal-title-group> +</journal-title-group> +<issn></issn> +<publisher> +<publisher-name></publisher-name> +</publisher> +</journal-meta> +<article-meta> +<title-group> +<article-title>Doc example with single reference</article-title> +</title-group> +<permissions> +</permissions> +</article-meta> +</front> +<body> +<sec id="i-like"> + <title>I like</title> + <p>(DeGroot 2002).</p> +</sec> +</body> +<back> +<ref-list> + <title></title> + <ref id="ref-degroot_probability"> + <mixed-citation>DeGroot. 2002. “Probability.”</mixed-citation> + </ref> +</ref-list> +</back> +</article> +``` |
