Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/jats/pandoc/authors.xml
12923 views
1
$if(authors)$
2
<contrib-group>
3
$for(by-author)$
4
<contrib contrib-type="author"$if(it.attributes.equal-contributor)$ equal-contrib="yes"$endif$$if(it.attributes.corresponding)$ corresp="yes"$endif$>
5
$if(it.orcid)$
6
<contrib-id contrib-id-type="orcid">$it.orcid$</contrib-id>
7
$endif$
8
$it:name.xml()$
9
$if(it.degrees)$<degrees>$for(it.degrees)$$it$$sep$, $endfor$</degrees>$endif$
10
$if(it.email)$
11
<email>$it.email$</email>
12
$endif$
13
$for(it.roles)$
14
<role$if(it.degree-of-contribution)$ degree-contribution="$it.degree-of-contribution$"$endif$$if(it.vocab-identifier)$ vocab="$it.vocab-identifier$"$endif$$if(it.vocab-term)$ vocab-term="$it.vocab-term$"$endif$$if(it.vocab-term-identifier)$ vocab-term-identifier="$it.vocab-term-identifier$"$endif$>$it.role$</role>
15
$endfor$
16
$-- if affiliations are listed separately, then create links. Otherwise
17
$-- include them here.
18
$for(it.affiliations)$
19
<xref ref-type="aff" rid="$it.id$">$it.letter$</xref>
20
$endfor$
21
$if(it.attributes.corresponding)$
22
<xref ref-type="corresp" rid="cor-$it.id$">&#x002A;</xref>
23
$endif$
24
$if(it.attributes.deceased)$
25
<xref ref-type="deceased" rid="deceased-$it.id$">&#x2020;</xref>
26
$endif$
27
$if(it.attributes.equal-contributor)$
28
<xref ref-type="deceased" rid="equal-$it.id$">&#x2021;</xref>
29
$endif$
30
$if(it.note.text)$
31
<xref ref-type="author-note" rid="auth-note-$it.id$">$it.number$</xref>
32
$endif$
33
</contrib>
34
$endfor$
35
</contrib-group>
36
$endif$
37
$for(affiliations)$
38
<aff id="$it.id$">
39
$it:affiliation.xml()$
40
</aff>
41
$endfor$
42
$if(quarto-internal.has-author-notes)$
43
<author-notes>
44
$for(authors)$
45
$if(it.attributes.corresponding)$
46
<corresp id="cor-$it.id$">$it.email$</corresp>
47
$endif$
48
$endfor$
49
$for(authors)$
50
$if(it.attributes.deceased)$
51
<fn id="deceased-$it.id$" fn-type="deceased" symbol="&#x2020;"><p>$it.name.literal$</p></fn>
52
$endif$
53
$endfor$
54
$for(authors)$
55
$if(it.attributes.equal-contributor)$
56
<fn id="equal-$it.id$" fn-type="equal" symbol="&#x2021;"><p>$it.name.literal$</p></fn>
57
$endif$
58
$endfor$
59
$for(authors)$
60
$if(it.note.text)$
61
<fn id="auth-note-$it.id$" fn-type="author-note" symbol="$it.number$">$it.note.text$</fn>
62
$endif$
63
$endfor$
64
</author-notes>
65
$endif$
66