Remix.run Logo
pwdisswordfishy an hour ago

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

gbear605 25 minutes ago | parent | next [-]

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 …)

ErroneousBosh an hour ago | parent | prev [-]

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.

fooofw 32 minutes ago | parent [-]

That would (mostly if not always) work in the sense of reproducing the layout of the pages, but would defeat the purpose of preserving the semantic information present in the TeX file (what is a heading, a reference and to what, a specific math environment, etc.) which is AFAIK already mostly dropped on conversion to PDF by the latex compiler.