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

Unclear why layout did not converge within 5 attempts #72

Open
pvelayudhan opened this issue Sep 5, 2024 · 4 comments
Open

Unclear why layout did not converge within 5 attempts #72

pvelayudhan opened this issue Sep 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@pvelayudhan
Copy link
Contributor

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
Copy link
Member

OrangeX4 commented Sep 5, 2024

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

@OrangeX4 OrangeX4 added bug Something isn't working upstream labels Sep 5, 2024
@pvelayudhan
Copy link
Contributor Author

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

@OrangeX4
Copy link
Member

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

@nycex
Copy link

nycex commented Nov 7, 2024

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).

@OrangeX4 OrangeX4 reopened this Nov 7, 2024
@OrangeX4 OrangeX4 removed the upstream label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants