LaTeX.wasm: LaTeX Engines in Browsers

Hacker News Top Tools

Summary

SwiftLaTeX enables LaTeX compilation directly in the browser using WebAssembly, allowing users to create and edit LaTeX documents without a server-side LaTeX installation.

No content available
Original Article
View Cached Full Text

Cached at: 06/26/26, 05:19 PM

WYSIWYG LaTeX Editor for Browsers

Source: https://www.swiftlatex.com/

It may take a few minutes to download template files for the first time. Please be patient

Step 1: Download latest release fromGithub. Extract the files and put them into your webpage directory.

Step 2: Include the src tag in your page.

<script src="PdfTeXEngine.js"></script>

Step 3: Initial the engine.

const engine = new LaTeXEngine();
await engine.loadEngine();

Step 4: Load the tex files/pictures/fonts to engines.

const engine = new LaTeXEngine();
engine.writeMemFSFile("main.tex", "\documentclass{...");

Step 5: Set the main file and fire the compilation.

engine.setEngineMainFile("main.tex");
let r = await engine.compileLaTeX(); // r contains PDF binray and compilation log.

Similar Articles

Markdown browser for LLMs

Reddit r/LocalLLaMA

The author introduces TextWeb, an open-source tool that renders web pages as markdown for LLMs instead of using expensive vision models, featuring CLI and MCP server support.

luau-wasm 0.1a0

Simon Willison's Blog

luau-wasm 0.1a0, a WebAssembly build of the Luau scripting language, has been released.