Example:
For a simple example, suppose version 1 of our LaTeX document is the following:
We notice a few errors, so we fix them in version 2 below:
If we want to easily see the differences between the two versions, latexdiff will produce the following:
- Install latexdiff
for example: sudo dnf install -y texlive-latexdiff
(Fedora)
-
Clone this repository
-
Run the following command:
latexdiff version1.tex version2.tex > diff2.tex
-
Compile the resulting diff2.tex
for example:
pdflatex diff2.tex
-
Open the output pdf file with your favorite pdf viewer
for example:
evince diff2.pdf
1. Using overleaf and latexdiff
3. How to calculate circumference of a circle, if you forgot how to