Convert your TikZ diagrams to Typst's CeTZ library. Native vector graphics in Typst.
CeTZ (Canvas-based Typst) is Typst's native library for creating vector graphics. It's inspired by TikZ but designed specifically for Typst's clean syntax.
While TikZ uses LaTeX's verbose command syntax, CeTZ uses Typst's modern function calls. The result: cleaner code, faster compilation, and easier maintenance.
| Element | TikZ | CeTZ |
|---|---|---|
| Basic Line | \draw (0,0) -- (1,1); | line((0,0), (1,1)) |
| Circle | \draw (0,0) circle (1cm); | circle((0,0), radius: 1) |
| Rectangle | \draw (0,0) rectangle (2,1); | rect((0,0), (2,1)) |
| Arrow | \draw[->] (0,0) -- (1,0); | line((0,0), (1,0), mark: (end: ">")) |
| Filled Shape | \fill[blue] (0,0) circle (0.5); | circle((0,0), radius: 0.5, fill: blue) |
| Node with Text | \node at (0,0) {Text}; | content((0,0), [Text]) |
For unsupported features, consider exporting as PDF/SVG from LaTeX and including as an image.
CeTZ compiles with Typst - instant preview, no separate TikZ compilation step.
Modern function-based syntax is easier to read and write than TikZ commands.
CeTZ is built for Typst. Better integration with Typst's styling and layout.
CeTZ is Typst's native vector graphics library, similar to TikZ for LaTeX. It allows you to create diagrams, charts, and illustrations directly in Typst with a clean, modern syntax.
Basic to intermediate TikZ diagrams convert well. Very complex diagrams using specialized TikZ libraries may need manual adjustment. The converter handles most common drawing commands.
CeTZ is still growing. It handles most common drawing tasks well but doesn't yet have all of TikZ's specialized libraries. For most academic diagrams, CeTZ is sufficient.
PGFPlots charts should be converted using dedicated charting libraries in Typst, or you can export plots as images and include them in your Typst document.
Use our full converter to transform entire LaTeX documents to Typst, including TikZ diagrams, math, tables, and text.
Convert LaTeX to Typst