Codez
Typst/CeTZ package for geometry-aware code rendering and annotation in technical figures
codez is a Typst/CeTZ package for rendering annotated code as figure-native geometry.
Why I Built It
For posters and talks, code often needs more than syntax highlighting: precise overlays, callouts, bounding boxes, and alignment with diagram geometry.
codez provides those capabilities directly inside CeTZ canvases.
Highlights
- Mark-based line and region annotations.
- Overlay geometry anchored to code regions.
- Reusable building blocks for MLIR, Python, and SystemVerilog snippets.
- Published package workflow with example gallery.
Links
- Typst Universe package: https://typst.app/universe/package/codez
- Repository: https://github.com/Bynaryman/codez
- Package PR: https://github.com/typst/packages/pull/4366