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

Multi-argument text commands problem #206

Closed weirdNox closed 3 years ago

weirdNox commented 4 years ago

Hello! Following our discussion in #204, here is the problem I was referring to about text commands. It actually is a bit different of what I described earlier, but I think the behavior is incorrect.

Test files: textcmd_test.zip Command: latexdiff --append-textcmd=cmd old.tex new.tex > diff.tex

After diffing, a text command \cmd with two arguments gets separated into two versions (expected), but the first one only has one argument (problem), and the first argument also ends up with \DIFadd and \DIFdel in both instances (problem, as the manual says only the last argument should be diffed).

ftilmann commented 3 years ago

Was a more subtle issue than expected but should be fixed now with 702f570

weirdNox commented 3 years ago

Awesome! Thank you :)