Generallatexdiff compile errors in sections with changes

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
spinner
Posts: 17
Joined: Wed Apr 21, 2010 6:35 pm

latexdiff compile errors in sections with changes

Post by spinner »

I'm using -latexdiff- to compare 2 tex files and create a third document that tracks the changes between the first two documents. Things work fine except for one issue.

The code that latexdiff attaches to the document's sections that I've changed don't compile. To make the document compile, I've had to delete the latexdiff code for those sections that changed but then of course I can't see the changes in the compare file. Is there a fix for this error in the tex sections?

I'm running latexdiff from the command line as follows:
latexdiff -t UNDERLINE oldfile.tex newfile.tex > comparefile.tex

EDIT: Example of code created by latexdiff that will not compile:
\subsubsection{The \DIFaddbegin \DIFadd{anomalies }\DIFaddend \DIFdelbegin \DIFdel{anomaly }\DIFdelend literature}

MikTex 2.8
WinEdt 6

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply