|
11 | 11 | #let make-author(author) = box({ |
12 | 12 | author.name |
13 | 13 |
|
14 | | - let auth-affiliation = if author.affiliations.at(0) == "" { |
| 14 | + let auth-affiliation = if author.at("affiliations", default: none) == none { |
15 | 15 | none |
16 | 16 | } else { |
17 | 17 | author.affiliations.map((key) => {key}) |
18 | 18 | } |
19 | 19 |
|
20 | | - let auth-rest = if (author.at("corresponding", default: false) == true){ |
21 | | - (sym.ast,) |
| 20 | + let auth-rest |
| 21 | + let iscorr |
| 22 | + if author.at("corresponding", default: false) == true { |
| 23 | + auth-rest = (sym.ast,) |
| 24 | + iscorr = true |
| 25 | + } else { |
| 26 | + auth-rest = none |
| 27 | + iscorr = false |
22 | 28 | } |
23 | 29 |
|
24 | 30 | sym.space.thin |
25 | 31 | if auth-affiliation == none { |
26 | | - super({ |
27 | | - auth-rest.join([ ]) |
28 | | - }) |
| 32 | + if iscorr {super(sym.ast)} |
29 | 33 | } else { |
30 | | - super({ |
31 | | - (auth-affiliation + auth-rest).join([,]) |
32 | | - }) |
| 34 | + super((auth-affiliation + auth-rest).join([,])) |
33 | 35 | } |
34 | 36 | }) |
35 | 37 |
|
|
40 | 42 |
|
41 | 43 | #let make-author-meta(authors) = { |
42 | 44 | let names = () |
| 45 | + |
| 46 | + if authors.len() == 0 {return ()} |
| 47 | + |
43 | 48 | for author in authors { |
44 | 49 | if type(author.name) == content { |
45 | 50 | names.push(author.name.text) |
|
63 | 68 | set text(size: 10pt) |
64 | 69 | set par(leading: 0.5em,) |
65 | 70 | if els-columns == 1 { |
66 | | - [#h(1em);#super[#sym.ast]#h(0.1em);Corresponding author. E-mail address: #if (author.at("email", default: none)) != none {author.email} else {text("No email provided")}] |
| 71 | + [#h(1em);#super[#sym.ast]#h(0.1em);Corresponding author. E-mail address: #if (author.at("email", default: none)) != none {author.email} else {"No email provided"}] |
67 | 72 | } else { |
68 | | - [#h(1em);#super[#sym.ast]#h(0.1em);Corresponding author. #linebreak() #h(1.4em);E-mail address: #if (author.at("email", default: none)) != none {author.email} else {text("No email provided")}] |
| 73 | + [#h(1em);#super[#sym.ast]#h(0.1em);Corresponding author. #linebreak() #h(1.4em);E-mail address: #if (author.at("email", default: none)) != none {author.email} else {"No email provided"}] |
69 | 74 | } |
70 | 75 | } |
71 | 76 | ) |
|
74 | 79 |
|
75 | 80 | #let make-affiliation(key, value) = { |
76 | 81 | super[#key] |
77 | | - if key != "" { |
| 82 | + if key != " " { |
78 | 83 | sym.space.thin |
79 | 84 | } |
80 | 85 | text(style:"italic", value) |
|
0 commit comments