Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pause with enum and list #10

Open
taooceros opened this issue Feb 22, 2024 · 6 comments
Open

pause with enum and list #10

taooceros opened this issue Feb 22, 2024 · 6 comments
Labels
bug Something isn't working upstream

Comments

@taooceros
Copy link

pause behave weirdly with enum and list

image

It shouldn't show the number in early slide?

@OrangeX4
Copy link
Member

OrangeX4 commented Feb 23, 2024

This is because the hide function in typst upstream doesn't hide the number properly 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
Copy link
Author

This is because the hide function in typst upstream doesn't hide the number properly 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
Copy link
Member

You can also use

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

@yjcui
Copy link

yjcui commented Apr 22, 2024

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

@OrangeX4
Copy link
Member

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

Can you give a minimal reproducible example?

@yjcui
Copy link

yjcui commented Apr 23, 2024

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

@OrangeX4 OrangeX4 added the bug Something isn't working label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

3 participants