#let template(
  title: none,
  authors: (),
  abstract: [],
  doc,
) = {
  set align(center)
  text(17pt, title)

  let count = authors.len()
  let ncols = calc.min(count, 3)
  grid(
    columns: (1fr,) * ncols, 
    row-gutter: 24pt,
    ..authors.map(author => [
      #author.name \
      #author.affiliation \
      #link("mailto:" + author.email)
    ]),
  )
  par(justify: false)[
    *Abstract*
    #abstract
  ]

  set align(left)
  columns(2, doc)
}