Maybe a dumb question but Im trying drawing an automata with:
#cetz.canvas({
import cetz.draw: circle, line, content
import finite.draw: state, transition
state((0, 0), "q0")
state((4, 0), "q1", final: true)
transition("q0", "q1", label: $epsilon$)
circle("q0.north-west", radius: .4em, stroke: none, fill: black)
let magenta-stroke = 2pt + rgb("#dc41f1")
circle("q0-q1.label.south", radius: .5em, stroke: magenta-stroke)
line(
name: "q0-arrow",
(rel: (.6, .6), to: "q1.state.north-east"),
(rel: (.1, .1), to: "q1.state.north-east"),
stroke: magenta-stroke,
mark: (end: ">"),
)
content(
(rel: (0, .25), to: "q0-arrow.start"),
text(fill: rgb("#dc41f1"), [*very important state*]),
)
})
But how can I import:
import cetz.draw: circle, line, content
import finite.draw: state, transition
I did:
#import "@preview/cetz:0.3.1": *
#import "@preview/finite:0.4.1": *
But is not working