You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the long latency in reacting. Actually when I tested it, I got error messages on compiling the DIFF file with --math-markup equal to 1 (WHOLE) or 2 (COARSE), as latexdiff did not know about the math environment. This is now fixed by 0d71987 and compilable code results from all math markup modes. The way it's displayed is not quite perfect, though. In FINE (3) mode, the change remains invisible. This is more or less a feature. Format changes are generally not highlighted, and rather the formatting of the new text is adopted (also e.g. changes to type for text). However, this change is marked in the source file, of course.
In WHOLE or COARSE math markup modes, the equation is shown as deleted (without equation number) and added (with equation number). It's not quite good, as also the deleted equation is shown in display math format rather than as inline text format. This would not be difficult to fix, in principle, but would add yet another special case, so in striking a balance with regard to code maintainability I opted to live with this slight imperfection. Correct markup in inline text format will result from use of either $..$ or \(...\) instead of math environment (and the change will then show up for all choices of --math-markup option except NONE. If you feel strongly that correct (i.e. inline) math formatting is important for deleted math environment, please open a new issue.
PS I hope you do not mind that I used your MWE in constructing an example for a test in testsuite
Hi
Old file
New file:
using latexdiff-1.3.0
with
changing math-markup from 3 to 2, to, 1, to 0.
then the corresponding diff files give me a pdf without any visible differences. What is the problem?
replace-equation-diff0.pdf
The text was updated successfully, but these errors were encountered: