Re:Laying Out a Print Book with CSS
by Upvoter33 on Tuesday March 21, 2023 @09:24AM
(#35245764)
The problem with this: LaTeX (or actually TeX) typesetting is way better. It is hard to get all the spacing, kerning, hyphenation, etc., right so that the text looks good. There is no way a CSS-based solution comes close.
[ Parent
| on HN ]
Moreover, one needs controls for:
- widows/orphans
- running paragraphs one or more line longer or shorter
- setting a page spread to be one (or possibly two) lines deeper or shallower
- adjusting the size/cropping of an image/figure/table so as to influence pagination
- adjusting the placement of an image/figure/table so as to influence pagination
In my decades of doing typesetting, I've had exactly _one_ chapter come out perfectly on import w/ no need to adjust _anything_ --- fastest 40 minutes of my life.
Re:Laying Out a Print Book with CSS
by luckystarr on Tuesday March 21, 2023 @10:05AM
(#35246264)
TeX not only handles hyphenation, but also decides on where in a certain word it should hyphenate to optimize the current paragraph as a whole, balancing the hyphenation position in the word (some positions are better than others) against the aesthetics of the paragraph.