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

Closed
taooceros opened this issue Feb 22, 2024 · 10 comments · Fixed by #114
Closed

pause with enum and list #10

taooceros opened this issue Feb 22, 2024 · 10 comments · Fixed by #114
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

config-methods(cover: utils.semi-transparent-cover.with(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

OrangeX4 commented Mar 16, 2024

You can also use

config-methods(cover: (self: none, 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
@road21
Copy link

road21 commented Oct 7, 2024

The issue is still relevant (for touying 0.5.2), but workaround is outdated.

Example
#import "@preview/touying:0.5.2": *
#import themes.simple: *

#show: simple-theme.with(aspect-ratio: "16-9")

#slide[
  + One

  #pause

  + Two
]

Is there another workaround for current version?

@7enderhead
Copy link

7enderhead commented Oct 13, 2024

Unfortunately, before there is a fix for that I won't be starting using touying. For my use cases, bullet points need to appear one by one without giving away their total number beforehand.

@OrangeX4
Copy link
Member

Unfortunately, before there is a fix for that I won't be starting using touying. For my use cases, bullet points need to appear one by one without giving away their total number beforehand.

This is a typst upstream issue, packages like touying or polylux cannot currently fix such an upstream issue. You can try the hack mentioned above:

config-methods(cover: (self: none, body) => box(scale(x: 0%, body)))

@OrangeX4
Copy link
Member

OrangeX4 commented Oct 13, 2024

Or use a generic hack that works better:

#show hide: set list(marker: none)

I will consider adding this hack to the next version of touying.

rmburg added a commit to rmburg/touying that referenced this issue Nov 11, 2024
OrangeX4 added a commit that referenced this issue Nov 14, 2024
…114)

* Also hide `enum` numbers

Fixes #10

* use none instead of []

---------

Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
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

Successfully merging a pull request may close this issue.

5 participants