![]() ![]() We compared two documents with default latexdiff settings, and were very impressed with the results: When equations are changed, additions are marked with a blue font and removals are marked with a red. Out of the box, any removed words are crossed out with a single line and colored red, whereas any added words are underlined with a squiggle and colored blue. This marked file can now be compiled with your choice of TeX compiler (pdfLaTeX etc.). tex files, the resulting diff.tex will also be a. If the two input files you provide are valid. The above command provides latexdiff with the two comparison files and the filename for the resulting marked. Where draft.tex and revision.tex are original and changed versions of your document, and diff.tex is where the markup is stored. To compare two documents simply run latexdiff in the command line like so: latexdiff can be found in any CTAN repository in TeX Live Utility. Mac OS X includes an installation of Perl and no additional setup is required. unzip the latexdiff files and copy them to the Perl > bin folder (default installation in C: drive).If you are a Windows user you will have to go through the following setup to get latexdiff working on your machine: Latexdiff is a Perl script and requires an installation of Perl 5.8 or higher. It definitely reduced my burden of having to read through two files simultaneously where it would be easy to overlook subtle changes like word substitutions and changing numbers or signs in an equation. Latexdiff is an invaluable utility that makes it easy to markup and view changes made to the document. latexdiff was the solution to our problems. We were hoping to find a feature in TeX similar to "Track changes" found in Microsoft Word. It can be hard to keep track of all the changes the contributors make because it's easy to miss a few changed words in text-heavy document. Lately, we have been working on TeX projects that involve a few collaborators. It is reproduced here for the benefit of readers who may be interested to use latexdiff on their own local computing device. ![]() Note: This article was originally published on the ShareLateX blog in February 2013 and describes locally installing and using a Perl script called latexdiff.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |