ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
513 stars 72 forks source link

bug when change a reference (eqref) example attached #210

Closed ouboub closed 3 years ago

ouboub commented 4 years ago

I run latexdiff-so test2-old.tex test2.tex > diff.tex the diff file has the old wrong reference commented out \DIFdelbegin %DIFDELCMD < \eqref{eq:sec3-applications:1} %%% \DIFdelend \DIFaddbegin \eqref{eq:sec3-applications:15} \DIFaddend with respect to the I attach the files regards Uwe Brauer PS, since github does not allow tex files I had to name them txt, sigh test2.txt test2-old.txt diff.txt diff.pdf

ftilmann commented 3 years ago

This is expected behaviour, as eqref is a special command added by amsmath package that latexdiff doesn't know about . You get the desired behaviour with the --append-safecmd=eqref option. As amsmath is fairly common, of course, I have just added that to the default list.