latexdiff

Determine differences between two LaTeX files. More information: https://ctan.org/pkg/latexdiff.

latexdiff old.tex new.tex > diff.tex

latexdiff --type=BOLD old.tex new.tex > diff.tex

latexdiff --math-markup=fine --graphics-markup=both old.tex new.tex > diff.tex