cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
846 stars 35 forks source link

Feature Request: Images or PDF/SVG #639

Closed manbango closed 3 months ago

manbango commented 3 months ago

It would be nice if nodes could be SVGs,PDFs, or Images.

This would be nice to be able to create flow diagrams which integrate existing assets like logos, plots, or figures created by other means.

fenjalien commented 3 months ago

You can place any Typst content using the content function.

content((1, 2), image("path to image"))

So whatever content you can have in the document you can have in the canvas. Note that rendering PDFs are not supported in Typst.

manbango commented 3 months ago

Thanks, I didn't know that! I tried searching svg,image etc... in the manual and it nothing came up, my bad!