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
latexdiff doesn't seem to distinguish between periods followed by spaces/line breaks (used to end a sentence) and periods not followed by spaces/line breaks (as in "i.e., something"). If these two different kinds of periods are matched between the old file and new file, the spacing of the old material will be messed up (I guess because this is treated by latexdiff as "insignificant differences").
MWE:
one.tex
i.e., something
two.tex
one. two.
three.
latexdiff one.tex two.tex
\DIFdelbegin\DIFdel{i. e.
, something }\DIFdelend\DIFaddbegin\DIFadd{one. two.
three. }\DIFaddend
Your assumption on why this is going wrong is correct. It's a somewhat pathological case but I appreciate that it's probably not extremely uncommon. You can force the correct behaviour with --config MINWORDSBLOCK=0 but this will very likely have undesirable effects in longer text. A proper fix is actually not trivial at all, and instead I have hardcoded some common abbreviations (i.e. -- e.g. -- z.B.; the last one occurs in German texts) to be treated atomically. It's kind of ugly but works, and the list is easily extensible in the source code, but currently not configurable).
latexdiff doesn't seem to distinguish between periods followed by spaces/line breaks (used to end a sentence) and periods not followed by spaces/line breaks (as in "i.e., something"). If these two different kinds of periods are matched between the old file and new file, the spacing of the old material will be messed up (I guess because this is treated by latexdiff as "insignificant differences").
MWE:
one.tex
two.tex
latexdiff one.tex two.tex
Expected output:
latexdiff two.tex one.tex
Expected output:
latexdiff --version
The text was updated successfully, but these errors were encountered: