latexdiff generates files which cannot be compiled when --math-markup=2 or 3
Hi
I attach 4 files.
test1-old.tex
test.tex
and files generated by
usr/local/bin/latexdiff --math-markup=2 test1.tex test1-old.tex > diff2.tex
or usr/local/bin/latexdiff --math-markup=3 test1.tex test1-old.tex > diff.tex
both diff files cannot be compiled
latexdiff-test2.zip
OK, I just tested this, and in fact it does not work even with --math-markup=whole (1). The last can be easily fixed though by not having any completely empty lines within equations - ulem does not seem to be able to handle them. After deleting the empty line in the latex code for eq. 7, --math-markup=whole works for me. If you want to retain the empty line for visual clarity just use % (right at the beginning of the line). (arguably this might be automatised)
I can confirm that the failure to process this properly with markup mode "coarse" (2) is a bug. However, I had a short look and these will be quite tricky to fix I think. Given the large number of changes, occurrence of replaced equations etc in the document, --math-markup=whole seems appropriate in any case. I will leave the issue open, and eventually might get round to it, but unless new information comes along, it will not be the highest priority, and a number of other issues will be dealt with first.