701
submitted 2 months ago* (last edited 2 months ago) by renzev@lemmy.world to c/linuxmemes@lemmy.world

Context: LaTeX is a typesetting system. When compiling a document, a lot of really in-depth debugging information is printed, which can be borderline incomprehensible to anyone but LaTeX experts. It can also be a visual hindrance when looking for important information like errors.

you are viewing a single comment's thread
view the rest of the comments
[-] pmk@lemmy.sdf.org 65 points 2 months ago* (last edited 2 months ago)

The reason is that you're reading TeX, not LaTeX. The latter has abstracted away the fundamental building blocks so few people know how an hbox is set anymore. So, an hbox is a box where the content is in horizontal mode. Between the things is glue. Glue can stretch and shrink. Depending on how you have set your tolerance and penalties, there's a maximum percentage of stretch allowed. If the glue stretches more, it becomes bad, this is called badness and can effectively be up to 10000 bad. So why not just put more things into the box? Well, (La)TeX probably tried to do that, but came up with worse badness. TeX always chooses the least bad option on a paragraph level. In practice, the usual suspect is often that you have something else that can't fit the last part of a line, like a really long word. If you can look at it and manually hyphenate it, things might be better.

[-] indianboy42@lemmy.world 5 points 2 months ago

Ironically the tom7 video about it using an AI to rewrite text to look prettier was the first time I learnt what badness and text layout in TeX actually meant.

https://youtu.be/Y65FRxE7uMc

load more comments (7 replies)
this post was submitted on 11 Jul 2024
701 points (98.7% liked)

linuxmemes

20704 readers
238 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS