All products

Draw diagrams in Typst with AI

Build an editable vector figure with CeTZ and compile it alongside the surrounding text. Test connections and labels at the width the figure will occupy.

Draw diagrams in Typst with AI when a figure needs to evolve alongside the explanation. A returns procedure may gain a review step just before the report goes to print. Keeping the shapes and labels in the source makes it possible to revise the figure and compile it with the rest of the document.

The typst-cetz skill covers drawing primitives, named points, coordinates, styling and marks such as arrowheads. Anchoring a connection to the edge of a named shape helps when its text grows. You still need to inspect the rendered result because a label can collide with a neighbouring line.

What it does

  • Build a flowchart from a short process description
  • Anchor arrows to named shapes
  • Style related lines and marks consistently
  • Adjust labels that compete for space
  • Check a vector figure inside the actual document layout

Install and use

  1. Use Typst with the CeTZ package and a compatible file-editing agent. Supply a short description of the process and the available width on the page.
  2. Ask, “Draw a three-stage returns check. Add a route back to inspection when an item is incomplete, and label that route clearly.”
  3. Compile the page and inspect it at print size. Try a longer stage name and check that arrowheads, connections and text remain readable.

FAQ

Source

Made by Ulrich Atz. Original skill: typst-cetz, published on GitHub under the CC-BY-4.0 licence. The files are unchanged.

View on GitHub