tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Is it possible to compile packages and use them on the web?

Open oovm opened this issue 5 years ago • 3 comments

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?

oovm avatar Nov 09 '20 10:11 oovm

@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.

pkgw avatar Nov 11 '20 13:11 pkgw

For info, texlive has already be ported using emscripten : https://github.com/manuels/texlive.js

kpym avatar Jan 11 '21 08:01 kpym