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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply