touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/
MIT License
620 stars 15 forks source link

Equation numbering increases with `#pause` on each subslide #38

Closed yjcui closed 1 month ago

yjcui commented 5 months ago

When subslide is used (with #pause, #only, etc.), numbering of equation keeps increasing on each subslide, where they should remain the same number.

Code snippet for testing.

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

#slide[
  - Item 1
  #pause
  - Item 2
  #pause
  - Item 3

  $ alpha + beta = f(x) $
]
OrangeX4 commented 5 months ago

This is a known issue and difficult to fix in touying right now, which will need to wait until typst implements frozen state to deal with this. https://laurmaedje.github.io/posts/frozen-state/