Draw on top of images #540
-
For constructing slides especially, it would be very useful to be able to place an image (eg using Something like this is possible with tikz, eg:
I tried naively to add a call to
But this gives
Is there any way to accomplish this? |
Beta Was this translation helpful? Give feedback.
Answered by
johannes-wolf
Mar 29, 2024
Replies: 1 comment 1 reply
-
Wrap your E.g. #cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
content((0,0), image("assets/decision-tree_1.png"))
// Draw a circle and place its "west" anchor at the origin.
circle((0,0), anchor: "west")
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kescobo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrap your
image
call in acontent(...)
call. CeTZ'content
is a function to display native Typst content inside a CeTZ canvas.E.g.