Open simon-pfahler opened 4 months ago
Thanks for the report. According to my assessment, this is difficult to fix without causing problems in other situations in a general way. As marked-up versions are usually for internal use only, I would say minor cosmetic imperfections like this are not a priority.
If somebody wants to have a go I think in postprocessing looking for the pattern \(sum|product) \DIF(add\del)begin) \DIF(add/del){\(SUPER/SUB)SCRIPT|_|^...}
and then moving the markup inside the argument of _ or ^ would be the way to go about this.
When a limit of a
\sum
or a\product
is changed in display-style math, latexdiff shows the limits as if they were set in an inline-math environment.Example:
old.tex
new.tex
The resulting
diff.tex
obtained from runninglatexdiff old.tex new.tex > diff.tex
is:diff.tex
The
\DIF
part includes the_{n=0}
, instead of just the0
, therefore the subscripts are not directly behind the sum anymore and get displayed in another way.