Remix.run Logo
hexasquid 3 hours ago

So many complaints about web technology, where is the replacement? I'd be interested to know if there was the one true layout system that everyone agrees on

gucci-on-fleek 3 hours ago | parent | next [-]

TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its competitors though, even 50 years after its first release.

[0]: https://en.wikipedia.org/wiki/TeX

[1]: But it does work on WEB :) [2]

[2]: https://en.wikipedia.org/wiki/Web_(programming_system)

srdjanr 2 hours ago | parent | next [-]

My understanding is that it's designed for fixed-size documents? There's a big difference between a layout system for that, and one where size of a document can vary wildly, up to completely opposite aspect ratios

gucci-on-fleek 2 hours ago | parent [-]

I guess I'd call it mostly fixed: most TeX engines only produce a single page size at a time, but you generally only need to modify a single variable to change the page size and, after recompiling the document should be perfectly reflowed into the new page size. This is not helpful at all for someone who wants to be able to freely rotate their phone, but it's still better than InDesign or Word where changing the page size will probably break the layout.

There is actually a TeX extension that supports viewers arbitrarily changing the page size of documents [0], but it's fairly new, and as far as I'm aware it has essentially zero adoption.

[0]: https://ctan.org/pkg/hitex

hexasquid 2 hours ago | parent | prev | next [-]

I'm not sure if Tex has a way to express mobile/desktop aware layouts, or to enable the reader to adjust only the font size (my ignorance)

gucci-on-fleek 2 hours ago | parent [-]

Yup, you're correct that TeX can't really handle arbitrary page sizes; see my reply [0] to a sibling comment.

[0]: https://news.ycombinator.com/item?id=48487199

3 hours ago | parent | prev [-]
[deleted]
bazoom42 40 minutes ago | parent | prev [-]

Not which works under the same constraints as the web.

But for simpler scenarios (like fixed-sized paper, desktop displays before super-wide screens), you can have both simpler and more precise layout systems.