Documentation
¶
Rendered for js/wasm
Overview ¶
Command gotex-wasm compiles the engine to GOOS=js/wasm and exposes LaTeX compilation to JavaScript, so an editor like loom can render LaTeX to SVG *directly in the browser* — no server round-trip, no microVM, no TeX Live. This is the capability TeX Live can never have: client-side live preview.
It registers two globals:
gotexToSVG(source [, {size, margin}]) → { pages: [svgString, …] } | { error }
gotexVersion() → a short identifier string
The built-in font is embedded, so it runs with no assets. \input and \font from disk are unavailable in the browser sandbox (no filesystem); a document's text is compiled with the built-in font unless it selects one another way.
Click to show internal directories.
Click to hide internal directories.