Paragraph-based comparison program?

Does anyone know of a difference viewer or comparison program that can use paragraph-based differentials? My repositories have a large number of LaTeX files that are formatted in 80-character paragraphs (for easy editing with vim). It is currently very difficult to interpret the differences between the different versions, since any editing that breaks the position of the line leads to a change in the results of the many false differences that are found in diff.

+4
source share
4 answers

Do you want wdiff .

Although I support breaking the line at the end of each sentence. This not only facilitates source code management, but also facilitates collaboration with collaborators.

+6
source

It has always been easier for me to manually break lines at the end of sentences. This makes editing easy, since if you print a version of the PDF output and write on it, you can simply view the left side of the page to start the sentence that you want to change.

It also means that any differential program would not produce a ton of false differences.

+2
source

I use latexdiff , which works great for small changes, not so good if you have major changes.

+2
source

If you don't mind reformatting before you do this, you can reformat each paragraph into one very long line, and then use the diff tool, which shows the differences within the line (in addition to the different lines, which in your case will be paragraph of difference).

Alternatively, with smarter reformatting, you can reformat each paragraph so that there is one sentence per line.

0
source

Source: https://habr.com/ru/post/1303506/


All Articles