Skip to content

Commit

Permalink
Merge pull request #3 from shunichironomura/box-author-name-and-affil…
Browse files Browse the repository at this point in the history
…iation

Put author name and affiliation into boxes
  • Loading branch information
shunichironomura authored Aug 9, 2024
2 parents d0105ec + 690e25a commit c15f5c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
#authors.enumerate().map(i_author => {
let (i, author) = i_author
if author.presenting [〇]
author.name-ja
box(author.name-ja)
if (
i < authors.len() - 1 and author.affiliation-ja != authors.at(i + 1).affiliation-ja
) or i == authors.len() - 1 [
#author.affiliation-ja
]
) or i == authors.len() - 1 {
box([#author.affiliation-ja])
}
}).join("")
]

Expand All @@ -79,12 +79,12 @@
#set text(size: 10.5pt)
#authors.enumerate().map(i_author => {
let (i, author) = i_author
author.name-en
box(author.name-en)
if (
i < authors.len() - 1 and author.affiliation-en != authors.at(i + 1).affiliation-en
) or i == authors.len() - 1 [
(#author.affiliation-en)
]
) or i == authors.len() - 1 {
box([~(#author.affiliation-en)])
}
}).join(", ", last: " and ")
]

Expand Down

0 comments on commit c15f5c3

Please sign in to comment.