About SwiftLaTeX
SwiftLaTeX brings PdfTeX and XeTeX to the web via WebAssembly, allowing you to compile LaTeX documents entirely in the browser. It supports WYSIWYG editing, library integration, and produces output identical to TexLive or MikTeX. The open-source tool is lightweight, fast, and easy to embed in any webpage.
FAQ
Download the latest release from GitHub, extract the files, and place them in your webpage directory. Then include the script tag in your page, initialize the engine, load your TeX files, set the main file, and compile.
LaTeX.wasm supports PdfTeX and XeTeX, both written in 100% WebAssembly and run in browsers.
Yes, LaTeX.wasm is completely open source. You can find the code on GitHub.
LaTeX.wasm runs merely 2X slower than native binaries.
Yes, LaTeX.wasm supports WYSIWYG editing on LaTeX documents using the XeTeX engine.
The main APIs include loadEngine(), isReady(), writeMemFSFile(), makeMemFSFolder(), setEngineMainFile(), compileLaTeX(), flushCache(), and closeWorker().
Initialize the engine, load your TeX files using writeMemFSFile(), set the main file with setEngineMainFile(), and then call compileLaTeX(). The result will contain the PDF binary and compilation log.
Alternatives to consider
Community ratings & full listBadges
Promote SwiftLaTeX giving it more exposure, by adding these badges to your website, documentation, or product listing. Each badge links back to SwiftLaTeX page on Webfolio.
<a href="https://www.webfolio.to/tools/swiftlatex?utm_source=badge&utm_campaign=badge" target="_blank" rel="noopener noreferrer"><img src="https://www.webfolio.to/badges/featured_color.svg" alt="Featured on Webfolio" style="max-width: 150px" /></a>
Categories
Claim this tool
Are you the founder? Claim your profile to update details and track views.