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?
Best Answer
Two things that may help:
\includegraphics[width=0.3\linewidth] {something}
, with a space. If it is so, remove the space, it messes up latexdiff's parsing engine.FLOATENV
andPICTUREENV
, and change them in a config file to includeincludegraphics
orfigure*
if needed. But there should already be some magic in place forincludegraphics
andfigure*
.