I have two files paper.tex and paper_suggested_changes.tex the latter is a modified version of the former with corrections.
I need to go through the two files and choose which changes to accept or reject, how would I go about this?
|
I have two files I need to go through the two files and choose which changes to accept or reject, how would I go about this? |
|||
|
|
Install an utility like Meld (there are other utilities for doing this, too, but I like Meld since it doesn't have KDE/GNOME dependencies) and use it for visually diffing/merging the files.
|
|||||
|
|
You can use any of the above suggested solutions, vimdiff/gvimdiff are great if you are used to with vim. Meld is also good, but I personally like beyondcompare, It's another GUI tool like meld, meld sometimes mislead with big files, so I shifted from meld to bcompare. beyond compare is available on ubuntu software centre, also you can download .deb file from http://www.scootersoftware.com/download.php this link. |
|||
|
|
|
I recommend using version control on the file. Tracking versions in a version control system will make your life a lot easier. The simplest version control system to learn is CVS. It's basic, which means you can quickly learn its useful features, but you won't get the benefit of more complex systems' advanced features. Commit each successive version of the file, and use With several people editing a document concurrently, you will benefit from a distributed version control system. Three common DVCS are Bazaar, Git and Mercurial. Commit each contributor's version on a branch (or better yet, set up a single repository for sharing and have each contributor commit their work to it). Periodically merge versions between branches. The DVCS keeps track of which changes you've already merged — this is a huge help to ensure you don't accidentally lose some work. The DVCS's merge command will also automatically merge parts that have only been changed by one person, so you'll only have to manually clean up the parts where there's a conflict. |
|||||||||||
|
|
As some of the other answers mentioned, use Vimdiff. Here's a short list of most useful key commands you might find useful: http://stackoverflow.com/q/5288875/212942 |
|||
|
|
|
I have never used Meld but based on the screenshot posted by @Renan it looks pretty good for the purpose. I use vim for this and it works perfectly if you don't mind to learn how to use the keystrokes to navigate and work with the differences. The advantage of learning this is that
|
|||||
|
|
I would certainly use vimdiff, simply because vim is my default editor. Check if your editor has a diff option first, as it makes things easier. There are many graphical tools, the most user-friendly being Meld (as suggested by Renan). Also consider using latexdiff to see the differences in a nice pdf format.
That will create a changes.pdf document with changes in different colours, and the old ones striked out. |
||||
|
|