top | item 46176216

(no title)

percentcer | 2 months ago

Dumb question but what stops browsers from rendering TeX directly (aside from the work to implement it)? I assume it's more than just the rendering

discuss

order

bo1024|2 months ago

You mean a display engine that works like an HTML renderer, except starting from TeX source instead of HTML source? I think you could get something that mostly works, but it would be a pain and at the end you wouldn't have CSS or javascript, so I don't think browser makers are interested.

pwdisswordfishy|2 months ago

For starters, TeX is Turing-complete, and the tokenizer is arbitrarily reprogrammable at runtime.

gbear605|2 months ago

Browsers already support JavaScript anyway, so why not add another Turing-complete language into the mix? (Not even accounting for CSS technically being Turing-complete, or WASM, or …)

fph|2 months ago

As far as I know the Tex team has been working hard lately on supporting accessible "tagged pdfs". Hopefully one day Tex/Latex output will be accessible by default and conversion to HTML will not be needed.

ErroneousBosh|2 months ago

Okay then, what would stop you rendering TeX to SVG and embedding that?

Edit: Genuine question, not rhetorical - I don't know how well it would work but it sounds like it should.