Can the latex template print the corresponding author's email in the paper's header?
Closed this issue · 5 comments
In the example paper.md, the corresponding author adds their email: https://github.com/openjournals/inara/blob/main/example/paper.md?plain=1. As far as I can tell, the GitHub action does not print the corresponding author's email anywhere. It doesn't seem like the latex template is accessing this field. Is it possible to add this to the GitHub action? Some preprint servers ask authors to have at least one email on the preprint. Thanks!
Good idea, thanks! Done.
No rush, but would appreciate guidance when someone has the time. I added my email to the paper.md and pushed the change, but the pdf did not render with my email. Any ideas on what I can do differently to get the email to render? Please let me know what files would be useful for me to upload to work through the issue. As far as I can tell, my paper.md header looks the same as the example with the author's email. Thanks!
The corresponding author needs to have both the email and the corresponding: true
field.
authors:
- name: John Doe
affiliation: [1, 2]
orcid: 0000-0001-2345-5678
email: j.doe@example.edu
corresponding: true
If you have time, a PR to add this to the docs would be greatly appreciated.
Re: adding to docs - Happy to. I will try to get to it soon.
Re: markdown header - I have something that looks like that:
authors:
- name: Adam Pollack
corresponding: true
email: adam.b.pollack@dartmouth.edu
orcid: 0000-0001-6642-0591
affiliation: 1
and I have the following github action
on: [push]
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: joss_submission/paper.md
- name: Upload
uses: actions/upload-artifact@v3
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: joss_submission/paper.pdf
but I don't see the email show up in the pdf header (see below).
Sorry if I'm missing something super obvious.
![Screenshot 2024-05-23 at 8 32 01 AM](https://private-user-images.githubusercontent.com/7188728/333182576-52cf56f4-23d3-4f1a-868c-df68d8157938.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0MTA4NTIsIm5iZiI6MTcxOTQxMDU1MiwicGF0aCI6Ii83MTg4NzI4LzMzMzE4MjU3Ni01MmNmNTZmNC0yM2QzLTRmMWEtODY4Yy1kZjY4ZDgxNTc5MzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjZUMTQwMjMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWNiZmIzM2NmYWIwNDM5Y2I3NjZiMWU5ZDhjMzg1YzU2YjJjOWMxYTJjYzc4ZmNlM2JmYzdmY2FmNmI2YzE5MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.jaYQW6M7uV7BvDbtpzRI9fRdvzNTKnFKSq9o9WMmcWY)
I'm actually not sure why it's like that, and whether that's an oversight or intentional behavior. Could you open an issue for that?