|
|
|
|
|
by cubefox
891 days ago
|
|
See also native CSS support for paged media: https://www.w3.org/TR/css-page-3/ When I looked into it several years ago, browser support for some critical features wasn't there yet. Not sure whether this has improved. In principle, this would be a great alternative to proprietary PDF rendering libraries which require you to design your document completely in (e.g. Java) code, and to the typical LaTeX approach. You really appreciate the elegance of HTML+CSS once you had the misfortune of having to do a simple fucking table in LaTeX. |
|
For simple stuff, sure HTML and CSS is great, but when I want something print-perfect I use LaTeX.
A simple table in LaTeX is no harder than in HTML, assuming the same level of knowledge in the tool.
But then when you throw in a simple requirement like "left margins on even pages and right margins on odd pages need to be larger", HTML becomes hell to work in.
HTML and CSS, even with a media query for print, sucks.