News for hackers. Stuff that matters.
Re:The Beauty of LaTex by dmlorenzetti on Sunday March 07, 2010 @01:02PM (#1173708)
TeX (and hence LaTeX) does this.
Re:The Beauty of LaTex by gjm11 on Sunday March 07, 2010 @01:21PM (#1173747)
Either you're confused or I am. TeX and LaTeX are not aware of rivers. (Nor of lakes, though I would guess that the TeX line-breaking algorithm makes lakes very rare.) The comment you were replying to was saying that TeX does do hyphenation and line-breaking cleverly but doesn't detect rivers and lakes; it looks like maybe you thought it was saying that TeX doesn't do any of those things.
Re:The Beauty of LaTex by dmlorenzetti on Sunday March 07, 2010 @09:29PM (#1174506)
I wasn't confused. I was wrong.

I have an old TeX reference which suggests TeX pays attention to rivers. But based on your challenge, I skimmed through the description of the line-break algorithm in Knuth's "The TeXbook," and found nothing about rivers. (There is a bit of attention paid to making sure adjacent lines are compatible in terms of how squashed or spread out they are, but apparently nothing that tries to catch rivers.)

Re:The Beauty of LaTex by gjm11 on Tuesday March 09, 2010 @12:27PM (#1178837)
Right. I think the TeXbook explicitly says that TeX doesn't know about rivers, but I forget; anyway, I've read the code, and there is no river detection in TeX.