Purplelink
← All guides

How to track changes in LaTeX with latexdiff

Reviewers and co-authors often want a "track changes" PDF. LaTeX has no such feature built in. However, latexdiff produces one. This guide shows how it works.

When you submit a revision, editors usually ask for a version that highlights what changed. In Word that is Track Changes. In LaTeX the equivalent is latexdiff, which compares two .tex files and produces a marked-up PDF. Our free LaTeX diff tool runs it for you. Upload the old and new versions and get the annotated PDF back.

If your manuscript is split across \input and \include files, see latexdiff online for a multi-file project.

What latexdiff marks

How to use it

  1. Keep your old (submitted) version and your new (revised) version as separate .tex files.
  2. Upload both to the diff tool, old first, new second.
  3. Download the marked-up PDF and include it alongside your revision.

Common pitfalls

For most revisions, latexdiff gives editors the change-tracked PDF they expect, with no manual highlighting. The marked-up PDF shows what changed, not whether the paper is ready. For that, Paper Review ($14 to $39, no account) reads the manuscript as a reviewer would.

Frequently asked questions

What is latexdiff?
latexdiff is a tool that compares two LaTeX source files and produces a marked-up version showing additions (underlined) and deletions (struck through) as a compilable PDF.
Why do my tables break in the diff?
latexdiff can corrupt tabular environments. Our diff tool treats tables as opaque blocks to avoid "Missing \cr" errors and table corruption.
Do I need to install anything?
No. The free diff tool runs latexdiff in the cloud. Upload your two .tex files and download the marked-up PDF. Your files are deleted from our server once the PDF is built.
How are additions and deletions shown?
Added text is underlined and typically blue. Deleted text is struck through and typically red. The result is a normal PDF a reviewer can read.

From the maker of these tools

Writing LaTeX on a Mac?

ModernTex is a native macOS LaTeX studio. It has multi-file manuscript navigation, a PDF preview that stays in sync, BibTeX completion that searches by author or title, and compile errors in plain language. $19.99 once, all updates included, forever.

Requires macOS 14 or later. No account, and the trial is the full app.