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

Pauses and numbering #113

Open
anderflash opened this issue Oct 23, 2023 · 4 comments
Open

Pauses and numbering #113

anderflash opened this issue Oct 23, 2023 · 4 comments

Comments

@anderflash
Copy link

Hi,

By creating a simple slide with pauses (it can be also uncover, only...), I got error when defining equation numbering:

#slide[
  #set math.equation(numbering: "(1)")

  We define:
  $ phi.alt := (1 + sqrt(5)) / 2 $ <ratio>

  With @ratio, we get:
  $ F_n = floor(1 / sqrt(5) phi.alt^n) $
  #pause
  @ratio
]

Except for the last two content lines, this example comes from the official Typst documentation. But when running it, it says:

label occurs multiple times in the document 

Either I have to give up equation numbering (I guess it happens with all types of numbering) and those dynamic presentations with pauses.

I think those pauses are trying to redefine labels like . I don't know if it's really a polylux or Typst problem.

@andreasKroepelin
Copy link
Owner

Polylux doesn't (can't) do any magic. Things like pause just cause duplicating (parts of) the content on multple PDF pages. So a label you define on a slide with a pause (before the pause) will occur multiple times. There is no way of asking Typst "please replicate this content but without all the labels in it". So currently, labels and dynamic Polylux slides just don't work together, sorry.

@anderflash
Copy link
Author

I see. It also poses a problem to section numbering (it keeps increasing between the pauses). Slides with numbering or labels are fine as long as we don't use pauses (or vice-versa, i.e., + pauses - labels). I don't know about the rendering process, but I understand that we don't duplicate the rendered slide.
Well, should I close this issue? Perhaps a label "won't fix" might help.

@andreasKroepelin
Copy link
Owner

I mean, it is an issue and I see why we should fix it once there is a way. I think the recommendation for now is not to use numbering or labels in Polylux.

@tapyu
Copy link

tapyu commented May 25, 2024

There is no way of asking Typst "please replicate this content but without all the labels in it".

Is there any prospective about this feature in Typst? Numbering things is too basic to simply let it go. I believe that, once Typst provides this feature, #165 can also be solved.

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

3 participants