|
136 | 136 | */ |
137 | 137 |
|
138 | 138 | set align(center) |
139 | | - text(size: 14pt, weight: "bold", [ |
| 139 | + text(size: 14pt, weight: "bold", hyphenate: false, [ |
140 | 140 | #allcaps(title) |
141 | 141 | #if funding != none { titlefootnote(funding) } |
142 | 142 | ]) |
|
147 | 147 | * Author list |
148 | 148 | */ |
149 | 149 |
|
150 | | - text(size: 12pt, { |
| 150 | + text(size: 12pt, hyphenate: false, { |
151 | 151 | let also_at = (); |
152 | 152 | for aff in authors.map(a => a.affiliation.at(0)).dedup() { |
153 | 153 | for auth in authors.filter(a => a.affiliation.at(0) == aff) { |
154 | 154 | // author name with superscripts |
155 | | - auth.name |
| 155 | + auth.name.replace(" ", sym.space.nobreak) |
156 | 156 | for aff2 in auth.affiliation.slice(1) { |
157 | 157 | if aff2 not in also_at { also_at += (aff2,) } |
158 | 158 | super(str(also_at.len())) |
|
161 | 161 | ", " |
162 | 162 | } |
163 | 163 | // primary affiliations |
| 164 | + { |
| 165 | + show regex(" "): sym.space.nobreak |
164 | 166 | affiliations.at(aff) + "\n" |
| 167 | + } |
165 | 168 | }; |
166 | 169 | // secondary affiliations |
167 | 170 | for i in range(also_at.len()) { |
|
196 | 199 | // SECTION HEADINGS |
197 | 200 | show heading.where(level: 1): it => { |
198 | 201 | set align(center) |
199 | | - set text(size: 12pt, weight: "bold", style: "normal") |
| 202 | + set text(size: 12pt, weight: "bold", style: "normal", hyphenate: false) |
200 | 203 | block( |
201 | 204 | below: 2pt, |
202 | 205 | allcaps(it.body) |
|
207 | 210 | // Subsection Headings |
208 | 211 | show heading.where(level: 2): it => { |
209 | 212 | set align(left) |
210 | | - set text(size: 12pt, weight: "regular", style: "italic") |
| 213 | + set text(size: 12pt, weight: "regular", style: "italic", hyphenate: false) |
211 | 214 | block( |
212 | 215 | below: 2pt, |
213 | 216 | wordcaps(it.body) |
|
0 commit comments