Interactive Demo
Try out the LaTeX tools below. Select a tool, configure options, and run it on your LaTeX code.
Input
Output
Features
- TeXcount: Count words in LaTeX documents with multi-file support
- Latexdiff: Generate diff documents showing changes between files
- Latexpand: Expand LaTeX documents by inlining included files
- TeX-Fmt: Format and beautify LaTeX documents using (wasm-bindgen)
- All tools run entirely in the browser with no server required
- Support for complex multi-file LaTeX projects
Installation
npm install wasm-latex-tools
npx wasm-latex-tools copy-assets
Usage
import { WebPerlRunner, TexCount, TexFmt } from 'wasm-latex-tools';
const runner = new WebPerlRunner();
await runner.initialize();
const texCount = new TexCount(runner);
const result = await texCount.count({ input: '...' });
const texFmt = new TexFmt();
const formatted = await texFmt.format({ input: '...', wrap: true });