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 try to use latexdiff to point out changes I have made in a document to the other people who need to read it and give me their advice... However, I've been getting this error:

Runaway argument?
{En rajoutant aux interactions la seconde main, qui dans notre cas es\ETC.
! Paragraph ended before \UL@on was complete.
<to be read again> 
l.8 }

regarding this section of code produced by latexdiff :

 \DIFdelbegin \DIFdel{En rajoutant aux interactions la seconde main, qui dans notre cas est la main gauche, l'interface pourrait devenir plus intuitive et plus facile à utiliser.



Where \DIFdelbegin, \DIFdel, \DIFdelend are defined as (in my main .tex, added automagically by latexdiff) :

\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{} %DIF PREAMBLE
\providecommand{\DIFdelend}{} %DIF PREAMBLE

What's wrong & what can I do now?

EDIT : If I replace the \sout{#1} by just #1 (i.e., remove the strike-through formatting), it works, but that strike-through kinda was the best feature of it, making it easy to spot what was removed. Is there another formatting command that would not break with a new paragraph?

If there was a strikethrough environment I could probably use it (by placing a \begin{strikethrough} in \DIFdelbegin and an \end{strikethrough} in \DIFdelend), but I don't think there is one.

share|improve this question
If you remove the blank line in the argument to \DIFdel, does the error persist? – Willie Wong Nov 7 '10 at 19:32
No, but that's part of the problem. Latex diff is inserting this line automatically, I can't be editing all my files manually after latexdiff has parsed them, I'd rather look for another solution than be forced to do it manually. – levesque Nov 7 '10 at 19:37

I had exactly the same problem. Latexdiff seems to introduce Windows line endings, which seemed to caused the problem.

I now run dos2unix on the resulting latexdiff tex files and the problem has disappeared.

I'm running latexdiff 0.5 (Algorithm::Diff 1.15 so)

share|improve this answer
Awesome, I'll make sure to try that. – levesque Jan 20 '11 at 16:13
I had the same issue and this worked for me! – espais Mar 6 '15 at 21:18

I got the same problem when I was doing difflatex in Mac. The exact same error ! What I did was moved up the "}" sign that was causing the problem to the the end of the paragraph and it worked. Don't ask me why, but it worked for me !!!

share|improve this answer

Instead of \sout, try the \st command from the soul package.

share|improve this answer
In my case, neither \sout nor \st work, even if I use the packages. – Frank Apr 6 '11 at 1:02

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.