Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

Foundations

Foundational types and functions.

Here, you'll find documentation for basic data types like integers and strings as well as details about core computational functions.

Definition

  • Captured arguments to a function.
  • A sequence of values.
  • Ensures that a condition is fulfilled.
  • A value that indicates a smart default.
  • A type with two states.
  • A sequence of bytes.
  • Module for calculations and processing of numeric values.
  • A piece of document content.
  • Represents a date, a time, or a combination of both.
  • A fixed-point decimal number type.
  • A map from string keys to values.
  • Represents a positive or negative span of time.
  • Evaluates a string as Typst code.
  • A floating-point number.
  • A mapping from argument values to a return value.
  • A whole number.
  • A label for an element.
  • A collection of variables and functions that are commonly related to a single theme.
  • A value that indicates the absence of any other value.
  • Fails with an error.
  • Loads a WebAssembly module.
  • A regular expression.
  • Returns the string representation of a value.
  • A filter for selecting elements within the document.
  • A module that contains all globally accessible items.
  • A sequence of Unicode codepoints.
  • A Unicode symbol.
  • Module for system interactions.
  • Returns the current export target.
  • Describes a kind of value.
  • A version with an arbitrary number of components.
Open official docs

Search