touying-typ / touying

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

Unclear why layout did not converge within 5 attempts #72

Closed pvelayudhan closed 2 days ago

pvelayudhan commented 2 months ago

Hello,

Thank you for all the amazing recent updates you have made!

I am finding that some slides I am preparing with a combination of pauses and figures have been returning the warning: layout did not converge within 5 attempts message and am not exactly sure why that is.

Here is a MWE that results in this issue:

#import "@preview/touying:0.5.2": *
#import themes.dewdrop: *
#show: dewdrop-theme

= A

#figure(image("square.svg", height: 40%))

#pause 1

= B

2 #pause

= C

I've attached square.svg as a file here:

square

For whatever reason, any of the following adjustments renders the slides without any problems:

  1. Removing the figure
  2. Removing either of the lines containing pauses
  3. Removing section headers B or C

Any insight as to what I may be doing wrong here or how to avoid this would be greatly appreciated!

OrangeX4 commented 2 months ago

This will be fixed in typst 0.12 and you can fix it by config-common(enable-frozen-states-and-counters: false) for now.

pvelayudhan commented 2 months ago

Great to hear and that did fix it, thank you!

OrangeX4 commented 1 month ago

This issue should have been fixed in Typst 0.12 and I'll close this issue.

nycex commented 3 weeks ago

I do still have an (at least similar) issue with typst 0.12.0:

#import "@preview/touying:0.5.3": *
#import themes.metropolis: *

#show: metropolis-theme.with(
  // config-common(enable-frozen-states-and-counters: false)
)

#figure(
  "B",
)
#pause

- U

#pagebreak()

+ V
#pause

W

#pagebreak()

Y
#pause
Z

Here, I also get a layout did not converge within 5 attempts that is fixed by config-common(enable-frozen-states-and-counters: false).