-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Author metadata field does not work with jats output format #4020
Comments
Take a look at the default jats template (pandoc -D jats).
You'll see that it assumes that the author metadata is
structured, and you should do the same in a custom template.
So $author$ won't get you anything, but
$for(author)$
$author.surname$
$endfor$
will list the surnames of the authors.
+++ Paul Dlug [Oct 31 17 23:45 ]:
… Using pandoc 2.0.0.1 with markdown input and jats output the author
metadata field is not present when the template is called. Example with
a barebones template below.
test.md
---
author: Somebody
---
# Test Article
test.jats
<author>$author$</author>
Running this command:
pandoc test.md --template test.jats -s -f markdown -t jats
Results in no output for the author variable:
<author></author>
If I switch the output format to anything else (ex: latex) and run it
with the same template:
pandoc test.md --template test.jats -s -f markdown -t latex
The output contains the value of the author variable properly:
<author>Somebody</author>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #4020
2. https://github.com/notifications/unsubscribe-auth/AAAL5Fi0Z4BBpzLtfCundkEBLo1bWTi7ks5sx7EGgaJpZM4QNkkm
|
The problem exists with the default jats template which is why I replicated it in a smaller standalone template to demonstrate it exists regardless of the template used with the jats output. I've tried using structured authors as well but that doesn't change things. If you switch the output format to "latex" but specify a copy of the default jats template you can see it does output the authors. It just doesn't work if the output format is "jats". |
Good, I see the issue now. |
More feedback welcome -- obviously, this writer has hardly been tested by anyone who knows anything about JATS. |
Thanks it's working for me now. I'll continue testing the JATS output. |
Using pandoc 2.0.0.1 with markdown input and jats output the author metadata field is not present when the template is called. Example with a barebones template below.
test.md
test.jats
Running this command:
Results in no output for the author variable:
If I switch the output format to anything else (ex: latex) and run it with the same template:
The output contains the value of the author variable properly:
The text was updated successfully, but these errors were encountered: