touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/touying/
MIT License
461 stars 10 forks source link

pause with enum and list #10

Open taooceros opened 4 months ago

taooceros commented 4 months ago

pause behave weirdly with enum and list

image

It shouldn't show the number in early slide?

OrangeX4 commented 4 months ago

This is because the hide function in typst upstream doesn't hide the number properly https://[github.com/typst/typst/issues/2040](https://github.com/typst/typst/issues/2040), you could wait for typst 0.11 release, but you can use a hack

#let s = (s.methods.enable-transparent-cover)(self: s, alpha: 100%)
taooceros commented 4 months ago

This is because the hide function in typst upstream doesn't hide the number properly https://[github.com/typst/typst/issues/2040](https://github.com/typst/typst/issues/2040), you could wait for typst 0.11 release, but you can use a hack

#let s = (s.methods.enable-transparent-cover)(self: s, alpha: 100%)

I think this behaves weirdly when image present? Or maybe I miss some document about how to display image.

OrangeX4 commented 4 months ago

You can also use

#let s = (s.methods.update-cover)(self: s, body => box(scale(x: 0%, body)))
yjcui commented 2 months ago

Proposed hack works with #pause, but not with #only or #uncover.

OrangeX4 commented 2 months ago

Proposed hack works with #pause, but not with #only or #uncover.

Can you give a minimal reproducible example?

yjcui commented 2 months ago

I retested and it works now. I think I misplaced the #pause after -. All good here.