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

#alternatives are hidden when used alongside #pause or #one-by-one #201

Open
luewolf opened this issue Jan 10, 2025 · 0 comments
Open

#alternatives are hidden when used alongside #pause or #one-by-one #201

luewolf opened this issue Jan 10, 2025 · 0 comments

Comments

@luewolf
Copy link

luewolf commented Jan 10, 2025

Using alternatives alongside pause/one-by-one will skip the first few alternatives if #alternatives is not the first element that is being displayed.

Examples:

#slide[
  foo #pause #alternatives[bar][baz] # pause foobar
]
// or
#slide[
  #one-by-one([foo], alternatives[ bar][ baz], [ foobar])
]
  • Expected result: Slides [foo][foo bar][foo baz][foo baz foobar]
  • Actual result: Slides [foo][foo baz][foo baz foobar]

Sure, it's possible to pass a start index to #alternatives, but that can lead to bugs when adding/removing pauses to a slide and forgetting to update the indices of alternatives on that slide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant