latexdiff icon indicating copy to clipboard operation
latexdiff copied to clipboard

DIFadd and 1.000

Open Friedrich2 opened this issue 3 years ago • 1 comments

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!

Friedrich2 avatar Aug 22 '22 11:08 Friedrich2

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

ftilmann avatar Aug 23 '22 12:08 ftilmann