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

uncover/only hides more content than it should #85

Closed
karuboniru opened this issue Sep 25, 2024 · 1 comment
Closed

uncover/only hides more content than it should #85

karuboniru opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@karuboniru
Copy link

Reproduce:

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

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

#slide[
  - text #uncover("2-")[covered test] text
  - text
  - text
]

#slide[
  - text #only("2-")[covered test] text
  - text
  - text
]

The uncover or only seems to be applied to also the text in the following bullets.

@OrangeX4 OrangeX4 added the bug Something isn't working label Sep 25, 2024
@OrangeX4
Copy link
Member

Thanks for finding this bug, I'll try to fix it in the next release. Currently you can use callback-style uncover and only:

#slide(repeat: 2, self => [
  #let (uncover, only) = utils.methods(self)
  - text #uncover("2-")[covered test] text
  - text
  - text
])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants