tectonic
tectonic copied to clipboard
Is it possible to compile packages and use them on the web?
For example, I want to use AMS-LaTeX in wasm, and then use it as an alternative to KaTeX or Mathjax.
Rust code can be ported to wasm with wasm-pack, what are other difficulties to be solved?
@GalAster Well ... I don't know! This has been an area of interest for a long time, but no one has sat down to do the work to try to make it happen, as far as I know.
Tectonic relies on native C/C+ libraries like harfbuzz, so those would nee to be wasm-ified with emscripten, but we can deliver statically linked Tectonic executables so I think that part should be doable. That's the only obvious wrinkle that I can think of.
For info, texlive has already be ported using emscripten : https://github.com/manuels/texlive.js