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

Layout does not converge with typst 0.11.1 #4

Open
mohe2015 opened this issue Oct 3, 2024 · 3 comments
Open

Layout does not converge with typst 0.11.1 #4

mohe2015 opened this issue Oct 3, 2024 · 3 comments

Comments

@mohe2015
Copy link

mohe2015 commented Oct 3, 2024

Hi,

the following document does not converge with typst 0.11.1. I'm unsure whether this is an issue of this package or of typst itself.

#import "@preview/athena-tu-darmstadt-thesis:0.1.0": *

#show: tudapub

= Test

#lorem(320)

== Test 2

#lorem(50)

#lorem(50)
@mohe2015
Copy link
Author

mohe2015 commented Oct 3, 2024

Likely root cause: reduce_heading_space_when_first_on_page

@mohe2015
Copy link
Author

mohe2015 commented Oct 3, 2024

// Thus when you experience compilation problems (slow, no convergence) set this to false.

Seems like it is working as documented but I would really prefer the default to either not break or this be emphasized somewhere more clearly.

@JeyRunner
Copy link
Owner

Thanks @mohe2015 for opening the issue. Yes this is kind of a known problem, but I did not notice that this feature would break with such simple documents.

I may change the default to false, but set the option as enabled in the example template with the warning comment. In the end this feature is not very important but it is needed for better replication of the original latex template (makes the heading spacing nicer).

It sometimes breaks since it can just be implemented in a hacky way (typst/typst#3127). Probably this can be fixed with a future version of typst.

I hope debugging this did not cost you too much trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants