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

Is it possible to access the subslide number in the footer? #21

Closed
ntjess opened this issue Mar 26, 2024 · 2 comments · Fixed by #24
Closed

Is it possible to access the subslide number in the footer? #21

ntjess opened this issue Mar 26, 2024 · 2 comments · Fixed by #24
Labels
enhancement New feature or request

Comments

@ntjess
Copy link
Collaborator

ntjess commented Mar 26, 2024

Consider this case:

#slide(repeat: 3, self => [
  #let (uncover, only, alternatives) = utils.methods(self)

  In subslide #self.subslide,

  test #uncover("2-")[uncover] function,

  and test #only("2-")[only] function,

  #pause

  and paused text.
])

The slide number is 1 in each case. I would like it to show 1.1, 1.2, 1.3 in the footer, but self.subslide is not accessible within footer(self) = ...

Is there another way to achieve this result?

@ntjess
Copy link
Collaborator Author

ntjess commented Mar 26, 2024

Perhaps we can justify adding self.subslide = i here, instead of inside _parse-content?

let (conts, _) = _parse-content(self: self, index: i, ..bodies)

For a similar reason, can we also expose self.repeat = repeat?

@OrangeX4 OrangeX4 added the enhancement New feature or request label Mar 26, 2024
@OrangeX4
Copy link
Member

I think that's a good way to do it.

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

Successfully merging a pull request may close this issue.

2 participants