Skip to content
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

Closed
pdlug opened this issue Oct 31, 2017 · 5 comments
Closed

Author metadata field does not work with jats output format #4020

pdlug opened this issue Oct 31, 2017 · 5 comments

Comments

@pdlug
Copy link

pdlug commented Oct 31, 2017

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>
@jgm
Copy link
Owner

jgm commented Nov 1, 2017 via email

@pdlug
Copy link
Author

pdlug commented Nov 1, 2017

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".

@jgm
Copy link
Owner

jgm commented Nov 1, 2017

Good, I see the issue now.

@jgm jgm closed this as completed in 32f6938 Nov 1, 2017
@jgm
Copy link
Owner

jgm commented Nov 1, 2017

More feedback welcome -- obviously, this writer has hardly been tested by anyone who knows anything about JATS.

@pdlug
Copy link
Author

pdlug commented Nov 1, 2017

Thanks it's working for me now. I'll continue testing the JATS output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants