Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using latexdiff for showing the difference between two latex documents, but for some reason latexdiff is not displaying differences in the title of a document.

Is there a way to fix this?

share|improve this question
    
Please elaborate on what "title of the document" means. It it the argument to the command \title? Also, give your command-line call that initiates latexdiff. –  Werner Sep 30 '11 at 2:24
    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  N.N. Sep 30 '11 at 12:47
add comment

migrated from stackoverflow.com Sep 30 '11 at 12:41

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

I always use wdiff to mark the changes in two revisions of the same document. I do not know the pros and cons compared with latexdiff, but it works fine for me. First, you have to download and install wdiff. I do not know for windows, but for mac or linux you have to do the usual ./configure & make combination. Now you compare the two latex files with

./wdiff --start-delete='\sout{' --end-delete='}' --start-insert='\uline{' --end-insert='}' version1.tex version2.tex > diff.tex

in the terminal. It puts the deleted parts between \sout{ and }. It also puts the new parts between \uline{ and }. You get a new file diff.tex. Open the file and make sure to use the ulem package. wdiff compares every word in the file, so if your were changing LaTeX macros and won't work well. It also does not like unmatched brackets, if you are changing e.g. only part of an equation.

My example output is

enter image description here

share|improve this answer
add comment

Newer versions of latexdiff (1.0.3) do this out of the box

(Disclosure: I am the author of latexdiff)

share|improve this answer
2  
Welcome to TeX.SX! –  tohecz Jan 2 at 14:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.