p.legibility {
text-rendering: LaTeX;
} p.legibility {
text-rendering: LaTeX;
}For your consideration, this is the manual for KOMA-Script: https://mirror.las.iastate.edu/tex-archive/macros/latex/cont...
That's 552 pages worth of typography that only considers page layouting. It doesn't deal with fonts or kerning at all. It's actually a fun read even if just for the author's occasional frustration with how often laymen confidently ignore centuries-old typography rules that exists for a reason.
- no margin on the binding side
- silly colors everywhere
- mixes normal and reverse text for no reason
- uses german typographical conventions but the text is in english
- extreme abuse of monospace italics
- mixed serif/sans/monospace/boldface on every page
- nonstandard paper size (18x21 cm)
All of this could be expected, and not too worrying, for a text about any subject, except a fucking document about page layout!
The online version highlights everything you can click and has tiny margins to avoid on-screen whitespace.
This is ridiculously condescending... everybody is able to zoom-in with their pdf viewer.
https://www.amazon.de/KOMA-Script-Sammlung-Klassen-Paketen-L...
For paper documents you can already do Markup -> LatTeX -> pdf for good quality documents.
Some of it, certainly not.
A (larger IMHO) part of typography wisdom has really been distilled from experience making text easier and prettier to read over generations, and should not be thrown away lightheartedly because "screen is different from paper". Yes it is, but human eyes and brain are the same ;-)
B) converting layout with css to Tex sounds like an absolute nightmare compared to just implementing proper word, line, paragraph, and page flowing/breaking in the browser. In fact, HTML is pretty opposed to page breaking at all, which is arguably a forte of TeX.
src/renderer/texpara.lisp in https://github.com/dym/closure
But when it comes to the web I feel like people spend too much time (and waste my resources) to arrive at a perfect layout. There I would prefer a simple robust layout that renders well on all devices and resolutions.