rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.47k stars 519 forks source link

Multiple affiliations in Elsevier yaml header #511

Closed hmep closed 1 year ago

hmep commented 1 year ago

I am having trouble finding a way to specify multiple affiliations in the yaml header for the Elsevier template. I have tried generalizing the way multiple entries are specified elsewhere, using indentation and hyphens, like so

- name: NN
affiliation:
    - a university 
    - and another

to no avail. I also tried multiple affiliation entries, like so

- name: NN
affiliation: a university 
affiliation: and another

as well as variations of the following

- name: NN
affiliation: ‘a university, and another’

neither of which worked. Is there a way to accomplish this?


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

temospena commented 1 year ago

Try

author:
  - name: NN
    affiliation: university1,university2 
    #no space between comma
address:
  - code: university1
    address: a university somewhere
  - code: university2
    address: a university elsewhere
cderv commented 1 year ago

Yes you need to use affiliation: university1,university2 syntax in the author part, and then use code in the adress part.

524 will improve the affiliation specification BTW. This will be available in next release.

github-actions[bot] commented 1 year ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.