New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <title>References
to <ref-list>
for references in JATS output
#8364
Comments
Does it help if you put |
Good idea! I didn't know about that. But sadly it does not add the title into the |
Can you quote the xml more fully so I can see where it adds the title? |
My pleasure!
The full XML in all its glory is here: |
I meant, where does pandoc currently add the title when you use |
With
|
Oh, yes, that's no good at all. |
A quick update: I hack around this limitation in wrapper utilities of pandoc for generating JATS XML. After calling pandoc, I string replace |
I've made some changes that yield this output: <?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>
<permissions>
</permissions>
</article-meta>
</front>
<body>
<p>Doe (2006)</p>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="ref-test">
<mixed-citation>Doe, J. (2006). Test,
<italic>81</italic>.</mixed-citation>
</ref>
</ref-list>
</back>
</article> I think that's desired. |
This enhancement does not appear to be working for element citations, see #9021. |
This feature request is to include a
<title>
in the<ref-list>
that is generated for references. As of 2.19.2 it is not output.For example, here's what pandoc generates:
whereas this is what an eLife XML file (#63435-v3) looks like:
The pandoc command is the following:
with the attached input.md.
In addition to producing JATS XML that is more compatible with other JATS readers, I suspect this feature will also be useful for a separate pandoc JATS reading feature I'll submit separately.
I would tweak the JATS template if I could to get this functionality but the entire
<back>
element is generated from one$back$
template variable.The text was updated successfully, but these errors were encountered: