touying-typ / touying

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

Unclear why layout did not converge within 5 attempts #72

Open pvelayudhan opened 1 week ago

pvelayudhan commented 1 week 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 1 week 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 1 week ago

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