ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
514 stars 72 forks source link

Gibberish characters introduced by latexdiff at the beginning of deleted text #164

Closed krishnakumarg1984 closed 5 years ago

krishnakumarg1984 commented 5 years ago

I am using latexdiff for marking up corrections requested by the examiners to my PhD thesis. I have a strange issue with this.

Upon compiling the diff.tex file, I get a specific string 4.0pt=-.55ex at the beginning of each deleted text throughout the document. See this figure.

gibberish at beginning of deleted string

In the source file diff.tex, the highlighted entires correspond to these lines

\DIFdelbegin \DIFdel{references are }\DIFdelend
\DIFdelbegin \DIFdel{\textbf{modified}}\DIFdelend
\DIFdelbegin \DIFdel{Creative Commons Attribution ...}\DIFdelend
\DIFdelbegin \DIFdel{they attribute it, that they :}\DIFdelend
\DIFdelbegin \DIFdel{that they do not alter, transform ...}\DIFdelend

The preamble generated by latexdiff for this diff.tex defines these commands as follows

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

I have tried searching for the string 4.0pt=-.55ex in the diff.tex file, but not even a portion of this exists anywhere! From where is this spurious string originating, and how do I get rid of this problem?

krishnakumarg1984 commented 5 years ago

Please close this. In my thesis, long time ago, I had set the underline depth through the renewcommand method which was wrong. The correct way to set this was setlength{\ULDepth}{4.0pt}. Once this correct definition was done, the problem goes away.