Typst: Front matter
Outline
#import "@preview/lepub:1.0.0": *
#show: lepub.with(
frontmatter: (
title: string,
subtitle: string,
short-title: string,
keywords: (),
abstract: (
(
title: string,
content: string
),
),
authors: (
(
name: string
orcid: string
email: string
url: string
roles: array
degrees: array
affiliations: (
(
id: string
index: int
),
)
),
),
affiliations: (
(
id: string,
index: int,
name: string,
institution: string,
),
),
open-access: string,
license: (
(
id: string,
url: string,
name: string,
),
),
doi: string,
funding: (
(
source: string
investigator: (
(
ref:
),
),
),
),
part-acknowledgments: string,
bibliography: string
)
)
Parameters
abstract
-
Type: string | dictionary
Aliases:abstracts
Description: The document's abstract(s). When the content is provided directly toabstract, the title isAbstractby default.
Properties:Property Type Description Default titlestring The title of the abstract "Abstract"contentstring The content/body of the abstract none
affiliations
-
Type: string | dictionary
Aliases:affiliation
Description: Institutional affiliations. When the content is provided directly toaffiliation, it is provided tonameby default.
Properties:Property Type Description Default idstring Unique identifier for the affiliation noneindexint Numeric index for the affiliation nonenamestring Name of the affiliation noneinstitutionstring Institution name (use either name or institution) none
authors
-
Type: array<object> | string
Aliases:author
Description: Document authors. Simple strings are converted to((name: string),).
Properties:Property Type Description Default namestring Author's name noneurlstring Author's website (aliases: website,homepage)noneemailstring Author's email address nonephonestring Author's phone number nonefaxstring Author's fax number noneorcidstring ORCID identifier (alias: ORCID)nonenotestring Additional notes about the author nonecorrespondingboolean Whether this is the corresponding author truewhen email setequal-contributorboolean Equal contribution indicator (aliases: equalContributor,equal_contributor)nonedeceasedboolean Whether the author is deceased nonerolesarray<string> Contributor roles (must be valid contributor roles) noneaffiliationsarray<object> Author's affiliations (aliases: affiliation)none
citation
- Type: string
Description: Citation information for the document.
date
- Type: datetime
Description: Publication date. Validates from 'YYYY-MM-DD' if provided as a string.
doi
- Type: string
Description: Digital Object Identifier. Must be only the ID, not the full URL.
keywords
- Type: array
Description: Keywords to be listed underneath the abstract.
license
-
Type: object
Description: License information. Can be set with a SPDX ID for Creative Commons.
Properties:Property Type Description Default idstring License identifier (e.g., SPDX ID) noneurlstring URL to the license text nonenamestring Human-readable license name none
open-access
- Type: boolean
Description: Whether the document is open access.
short-title
- Type: string
Aliases:running-title,running-head
Description: Short version of the title for running headers.
subtitle
- Type: string
Description: Document subtitle.
title
- Type: string
Description: Document title.