quarto-journals / elsevier

Quarto template for Elsevier Journals
https://quarto-journals.github.io/elsevier/
MIT License
49 stars 20 forks source link

multiple affiliations #6

Closed maxlindmark closed 1 year ago

maxlindmark commented 2 years ago

Hi, thanks for a nice template! Eager to try it out more. But is it possible to have multiple author affiliations in the elsevier journal format?

The following code for authors, as per the guides on quarto:

author:
  - name: Norah Jones
    affiliations:
      - ref: cmu
      - ref: chicago
affiliations:
  - id: cmu
    name: Carnegie Mellon University
    city: Pittsburgh
    state: PA
  - id: chicago
    name: University of Chicago
    city: Chicago
    state: IL

gives the expected output when using the PLOS template:

plos

but not the elsevier one (I also note that elsevier produces a 1 instead of letters).

elsevier

Could someone help me understand what is happening here?

dragonstyle commented 2 years ago

This looks like purely an error in the Elsevier template (also noting the problematic affiliation address format). I will try to take a closer look today and see if this is something that is straightforward to resolve!

dragonstyle commented 2 years ago

Ok I just pushed changes that should address this - the version is now 0.1.0. If you quarto update extension quarto-journals/elsevier where you're using it you should see the correct behavior now!