f

finite

@preview

Typst-setting finite automata with CeTZ

v0.5.1
MIT

Package Information

Last Updated
Minimum Typst Version
0.13.0

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/finite:0.5.1

2. Import in your Typst file

Add this to your .typ file:

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

Version History

0.5.10.13.0
4d17271b3542...
0.5.00.13.0
921aaaa66645...
0.4.10.0.12
74e9c850237d...
0.4.00.0.12
45fcf3c0ff16...
0.3.2
ed065016332a...
0.3.0
4414233099db...
0.1.0
552f7ca759e7...

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.