-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
The following code snippet which is a modification of the cycle example from the gallery has an unintended behaviour:
#import "@preview/cetz:0.4.0"
#import "@preview/cetz-plot:0.1.2": plot, chart, smartart
#let points = (
[$O$],
[$P$],
[$2 P$],
[$3 P$],
[$...$],
[$n-1 times P$],
)
#let colors = (
red,
orange,
yellow,
green,
blue,
).map(c => c.lighten(40%))
#cetz.canvas({
smartart.cycle.basic(
points,
step-style: colors,
equal-width: true,
name: "horloge",
)
})

The following project showcases the bug, https://typst.app/project/r6u48e16qLNb69BdjNul4m.
It looks like the [$n-1 times P$]
breaks stuff in the rendering.
Metadata
Metadata
Assignees
Labels
No labels