Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lapreprint.typ
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@
)

// Set the body font.
if (font-face != none) {
set text(font: font-face, size: 10pt)
} else {
set text(size: 10pt)
}
set text(size: 10pt)
set text(font: font-face) if (font-face != none)

// Configure equation numbering and spacing.
set math.equation(numbering: "(1)")
show math.equation: set block(spacing: 1em)
Expand Down
6 changes: 6 additions & 0 deletions template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
[# endif #]
[# if options.kind #]
kind: "[-options.kind-]",
[# endif #]
[# if options.font_face #]
font-face: "[-options.font_face-]",
[# endif #]
[# if options.paper_size #]
paper-size: "[-options.paper_size-]",
[# endif #]
margin: (
[# if parts.acknowledgements #]
Expand Down
6 changes: 6 additions & 0 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ options:
description: |
Heading numbering style.
See also https://typst.app/docs/reference/model/numbering/.
- id: font_face
type: string
description: Font face
- id: paper_size
type: string
description: Paper size

parts:
- id: abstract
Expand Down