TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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
up vote 5 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

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

(Disclosure: I am the author of latexdiff)

share|improve this answer
Welcome to TeX.SX! – yo' Jan 2 '14 at 14:51

Your Answer


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.