Skip to content

Commit

Permalink
Update template.typst
Browse files Browse the repository at this point in the history
set columns in template.typst
  • Loading branch information
jarnowic authored Oct 29, 2024
1 parent 13d74ba commit 2b03d26
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions data/templates/template.typst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
keywords: (),
date: none,
abstract: none,
cols: 1,
margin: (x: 1.25in, y: 1.25in),
paper: "us-letter",
cols: 1,
lang: "en",
region: "US",
font: (),
Expand All @@ -32,10 +32,10 @@
keywords: keywords,
)
set page(
paper: paper,
margin: margin,
numbering: "1",
)
columns: cols,
)
set par(justify: true)
set text(lang: lang,
region: region,
Expand All @@ -44,39 +44,39 @@
set heading(numbering: sectionnumbering)

place(top + center, float: true, scope: "parent", clearance: 4mm)[
#if title != none {
#if title != none {
text(weight: "bold", size: 1.5em)[#title]
(if subtitle != none {
parbreak()
text(weight: "bold", size: 1.25em)[#subtitle]
})
}
}

#if authors != none and authors != [] {
let count = authors.len()
let ncols = calc.min(count, 3)
grid(
#if authors != none and authors != [] {
let count = authors.len()
let ncols = calc.min(count, 3)
grid(
columns: (1fr,) * ncols,
row-gutter: 1.5em,
..authors.map(author =>
align(center)[
#author.name \
#author.affiliation \
#author.email
]
align(center)[
#author.name \
#author.affiliation \
#author.email
]
)
)
}
}

#if date != none {
date
}
#if date != none {
date
}

#if abstract != none {
text(weight: "semibold")[Abstract]
#if abstract != none {
text(weight: "semibold")[Abstract]
h(1em)
abstract
}
]
}
]
doc
}

0 comments on commit 2b03d26

Please sign in to comment.