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 did change a source of some image between new and old version of .tex files, when I run latexdiff it marks such parts like this:

\DIFdelend %DIF > lamp
\DIFaddbegin \begin{figure*}[t]
\DIFaddendFL \begin{center} 

    \subfigure[] {\label{fig:result_lamp_img}\includegraphics[width=0.3\linewidth] {lamp_i\DIFdelbeginFL \DIFdelFL{mg1}\DIFdelendFL \DIFaddbeginFL \DIFaddFL{mg2}\DIFaddendFL .jpg}}

How to force latexdiff not to change the source of image files?

share|improve this question
up vote 2 down vote accepted

Two things that may help:

  1. it seems that the original source was \includegraphics[width=0.3\linewidth] {something}, with a space. If it is so, remove the space, it messes up latexdiff's parsing engine.
  2. If this is not the cause of your error, I suggest that you double-check the value of the configuration variables FLOATENV and PICTUREENV, and change them in a config file to include includegraphics or figure* if needed. But there should already be some magic in place for includegraphics and figure*.
share|improve this answer
N1 was the problem, after i removed spaces everything compiled, thanks a lot!!! – becool_max Feb 2 '12 at 18:53

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.