Typst

1 program Added 2026-02-06T00:27:43Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 26964ab6a2 · authored 2026-02-06T01:28:36+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/typst
LLM (this repo) · 1PldbLinguistPygments

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.typlinguistprimary24.9K files
.typpygmentsprimary24.9K files

Related languages

Typed Racket (0.24)Just (0.18)Tact (0.18)Tart (0.18)Toit (0.18)

LLM-contributed programs

Fibonacci Sequence Generator

Provenance: commit 26964ab6a2 · authored 2026-02-06T01:28:36+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.typ · added: 2026-02-06T00:27:43Z
#set document(title: "Fibonacci Sequence")
#set page(numbering: "1")
#set text(font: "Linux Libertine", size: 11pt)

= Fibonacci Sequence Generator

This document demonstrates a simple Typst function.

#let fib(n) = {
  if n <= 1 {
    n
  } else {
    fib(n - 1) + fib(n - 2)
  }
}

The first 10 Fibonacci numbers are:

#for i in range(10) {
  [- $F_(#i) = #fib(i)$]
}

#align(center)[
  _Generated with Typst_
]

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.typ/0.typpredicates[{"kind": "any", "regexes": ["^#(import|show|let|set)"]}]

Contribute — propose a file extension

Tell us where to find evidence about Typst (mapped to pl/typst). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Typst/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← typoscript tyruba →