snippetbashTip
latexdiff — Determine differences between two LaTeX files. More information: <https://ctan.org/pkg/latexdiff>.
Viewed 0 times
commandlatexdiffbetweentwodetermineclilatexdifferences
Problem
How to use the
latexdiff command: Determine differences between two LaTeX files. More information: <https://ctan.org/pkg/latexdiff>.Solution
latexdiff — Determine differences between two LaTeX files. More information: <https://ctan.org/pkg/latexdiff>.Determine changes between different versions of a LaTeX file (the resulting LaTeX file can be compiled to show differences underlined):
latexdiff {{old.tex}} {{new.tex}} > {{diff.tex}}Determine changes between different versions of a LaTeX file by highlighting differences in boldface:
latexdiff --type=BOLD {{old.tex}} {{new.tex}} > {{diff.tex}}Determine changes between different versions of a LaTeX file, and display minor changes in equations with both added and deleted graphics:
latexdiff --math-markup=fine --graphics-markup=both {{old.tex}} {{new.tex}} > {{diff.tex}}Code Snippets
Determine changes between different versions of a LaTeX file (the resulting LaTeX file can be compiled to show differences underlined)
latexdiff {{old.tex}} {{new.tex}} > {{diff.tex}}Determine changes between different versions of a LaTeX file by highlighting differences in boldface
latexdiff --type=BOLD {{old.tex}} {{new.tex}} > {{diff.tex}}Determine changes between different versions of a LaTeX file, and display minor changes in equations with both added and deleted graphics
latexdiff --math-markup=fine --graphics-markup=both {{old.tex}} {{new.tex}} > {{diff.tex}}Context
tldr-pages: common/latexdiff
Revisions (0)
No revisions yet.