jneug/typst-finite

Typst-setting finite automata with CeTZ.

163

stars

165

commits

Typst

primary language

Mar 9, 2026

updated

README

Typst Package MIT License

finite is a Typst package for rendering finite automata.


Usage

Import the package from the Typst preview repository:

#import "@preview/finite:0.5.1": automaton

After importing the package, simply call #automaton() with a dictionary holding a transition table:

#import "@preview/finite:0.5.1": automaton

#automaton(
  (
    q0:       (q1: 0, q0: "0,1"),
    q1:       (q0: (0, 1), q2: "0"),
    q2:       none,
  ),
  initial: "q1",
  final: ("q0",),
)

The output should look like this:

Further documentation

See manual.pdf for a full manual of the package.

See the changelog for recent changes.

Contributors

jneug

165 commits

jneug/typst-finite

Typst-setting finite automata with CeTZ.

163

stars

165

commits

Typst

primary language

Mar 9, 2026

updated

README

Typst Package MIT License

finite is a Typst package for rendering finite automata.


Usage

Import the package from the Typst preview repository:

#import "@preview/finite:0.5.1": automaton

After importing the package, simply call #automaton() with a dictionary holding a transition table:

#import "@preview/finite:0.5.1": automaton

#automaton(
  (
    q0:       (q1: 0, q0: "0,1"),
    q1:       (q0: (0, 1), q2: "0"),
    q2:       none,
  ),
  initial: "q1",
  final: ("q0",),
)

The output should look like this:

Further documentation

See manual.pdf for a full manual of the package.

See the changelog for recent changes.

Contributors

jneug

165 commits

Languages

Typst

92.8%

Shell

5.2%

Just

2.1%