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

Sometimes lines aren't broken after failing to fill the previous line perfectly #4

Open
wasamasa opened this issue Sep 19, 2017 · 1 comment

Comments

@wasamasa
Copy link

See the "No editor comes close." sentence in the middle of the picture. I can understand that without hyphenation the justification algorithm can fail to fill lines perfectly and sometimes leaves a word sticking out the line. What I don't understand is why it can happen that the next word isn't put on a new line. Is this some special case TeX deals with on a case-by-case basis?

@Fuco1
Copy link
Owner

Fuco1 commented Sep 19, 2017

Well TeX would try REAAAAAAAAALY hard to hyphenate and not leave an orphan, or just stretch the hell out of everything. It has an almost infinite penalty to have just a single word on a newline. Now probably shifting comes close would induce too much error on the previous line... but frankly I guess I should just ignore it on the last line as a special rule and always break two words.

This might also be a bug as it seems to only happen on the last line?

@Fuco1 Fuco1 added this to Triage Mar 18, 2024
@github-project-automation github-project-automation bot moved this to To triage in Triage Mar 18, 2024
@Fuco1 Fuco1 moved this from To triage to Backlog in Triage Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants