polylux icon indicating copy to clipboard operation
polylux copied to clipboard

Pauses and numbering

Open anderflash opened this issue 2 years ago • 4 comments

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.

anderflash avatar Oct 23 '23 08:10 anderflash

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.

andreasKroepelin avatar Oct 23 '23 23:10 andreasKroepelin

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.

anderflash avatar Oct 26 '23 08:10 anderflash

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.

andreasKroepelin avatar Oct 26 '23 10:10 andreasKroepelin

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.

tapyu avatar May 25 '24 12:05 tapyu