Static Web App

latexdiff in the browser

Compare two LaTeX sources and generate `\DIFadd{}` / `\DIFdel{}` markup without a server. This is a lightweight browser implementation inspired by the Perl tool, not a full port.

Engine Token + Myers Diff
Output LaTeX source
Runtime 100% client-side

Controls

Markup Style

Controls both generated preamble and preview

Paste two LaTeX sources, then generate a browser-side diff.

Old

0 chars

New

0 chars

Generated Diff

Visual Preview

Approximate rendering of diff tags

Notes

  • This app is static and works by tokenizing LaTeX text in JavaScript.
  • The generated source is closest to `latexdiff` for ordinary prose-heavy documents.
  • Complex macros, math environments, and package-specific semantics are not fully replicated.
  • For production-sensitive documents, validate the output with the original Perl tool.