Open kescobo opened 7 months ago
Can you look into the alternatives
family of functions in the Polylux docs? They might do what you want.
Not quite - You're right I could do that instead of the #only
example at the end, but that still replaces once image with another, rather than stacking them. Eg
#slide(title: [Decision trees])[
#alternatives[#image("assets/decision-tree_1.png")
][#image("assets/decision-tree_2.png")]
]
gives
Whereas I'd like it to be more like this on the second slide:
#slide(title: [Decision Trees])[
#cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
content((0,0), [#image("assets/decision-tree_1.png")])
content((0,0), [#image("assets/decision-tree_2.png")])
})
]
I've tried sticking the calls to #only
and other timing functionality inside the cetz
canvas, but they don't seem to do anything.
Using alternatives-fn
and then having an appropriate if
block in the CeTZ code, deciding whether or not to draw the second image, might work.
OK, I'll look into that, thanks!
I have a series of images that I'd like to animate in, but I'm not sure how to get them to occupy the same space. Eg, say I have
and
which together make
Is there a way to place one on top of the other in animation?
Of course, I can export the combined image (the 3rd) and do something like
but that's less ideal.