feat: allow-no-company #117

Merged
servostar merged 3 commits from feat/allow-no-company into main 2024-11-30 12:15:44 +00:00
1 changed files with 16 additions and 12 deletions
Showing only changes of commit bb00c83408 - Show all commits

View File

@ -102,19 +102,23 @@
#let rows = int(config.authors.len() / 3 + 0.5)
#for i in range(0, rows) {
let cols = calc.min(config.authors.len() - i * 3, 3)
let cols = calc.min(config.authors.len() - i * 3, 3)
grid(columns: cols, column-gutter: 1.5em, ..config.authors.slice(i * 3, i * 3 + cols).map(author =>
grid(columns: 1, row-gutter: 1em,
text(size: 1.25em, author.name),
text(size: 1em, author.company),
text(size: 1em, author.contact),
[
#str(author.matriculation-number),
#author.course
]
)))
}
grid(columns: cols, column-gutter: 1.5em, ..config
.authors
.slice(i * 3, i * 3 + cols)
.map(author => grid(
columns: 1,
row-gutter: 1em,
text(size: 1.25em, author.name),
text(size: 1em, author.company),
text(size: 1em, author.contact),
[
#str(author.matriculation-number),
#author.course
],
)))
}
]
#set align(bottom)