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
518 stars 73 forks source link

DIFadd and 1.000 #272

Open Friedrich2 opened 2 years ago

Friedrich2 commented 2 years ago

At least within longtable (probably generally), DIFadd and Co. have problems with numbers with points used as decimal separator. (E.g. 1.000 or 1.0456) yielding

! Missing } inserted.
<inserted text> 
                }
l.1772          5 & \DIFdelbegin \DIFdel{1.035}
                                         \DIFdelend \DIFaddbegin \DIFadd{1,0...

Execution query: latexdiff --graphics-markup=none --packages=amsmath,hyperref,siunitx,biblatex --math-markup=OFF -t CFONT oldfile.tex newfile.tex

How does this happen?

I know that it could take a while to close this bug, so please mention it within the latexdiff manual. The same holds for this issue, since it does not seem to be an easy-to-fix issue and my issue was hard to find (at least for me). As I currently do not have the time to compile a minimal example, I will likely add an MWE later. Besides: Thanks for your great work!

ftilmann commented 2 years ago

Thanks for reporting but I have trouble understanding what exactly is the issue. The example suggests a dot is turned into a comma, but maybe this is just a typo, as off the top of my head I cannot imagine how this could have occurred. Otherwise, this change-highlighting looks fine, or what do you expect? Could you clarify this? Thanks