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

Feature request: re-expose subslide counter #204

Closed
Vtec234 opened this issue Jan 31, 2025 · 2 comments
Closed

Feature request: re-expose subslide counter #204

Vtec234 opened this issue Jan 31, 2025 · 2 comments

Comments

@Vtec234
Copy link

Vtec234 commented Jan 31, 2025

Thanks for all your work on this package, it is great! Unfortunately, since version 0.4.0 it seems to have become harder to have content using other packages appear dynamically. Specifically, in polylux 0.3.1 one could easily generate dynamic CeTZ diagrams like so:

context cetz.diagram({
  if 2 <= logic.subslide.get().last() {
    // draw some stuff
  }
})

This counter has been hidden in 0.4.0, so I no longer know how to do this. The feature request is thus for a mechanism for doing the above which is as general as directly accessing the counter (only, uncover, etc don't seem to work because they only take Typst content). In particular, re-exporting logic.subslide would work.

@andreasKroepelin
Copy link
Collaborator

Does this apply? #158 (comment)

@Vtec234
Copy link
Author

Vtec234 commented Feb 2, 2025

#alternatives-fn does it. Thank you!

@Vtec234 Vtec234 closed this as completed Feb 2, 2025
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

2 participants