I've been pulling my hair out trying to get latexdiff to work with a mathematics document. It produces output that latex can't compile if one of the files is this:
\documentclass{amsart}
\begin{document}
\begin{equation} \label{eq:Psi-action}
2=1+1
\end{equation}
\end{document}
and the other is this:
\documentclass{amsart}
\begin{document}
yo
\end{document}
But I think it chokes on other things as well. Am I doing something wrong? Is anyone able to use latexdiff for mathematics documents more than a few lines long? If anyone is able to use it by making some easy changes to their LaTeX code, are there general guidelines about what kind of LaTeX code to avoid?
Update 1: It appears that latexdiff doesn't like things like \big(. You can sort of get around this by changing every \big( to a \left(.
Update 2: Here is another pair of files that breaks it:
\documentclass{amsart}
\begin{document}
\begin{equation*}
X_{[1],n}
\end{equation*}
\end{document}
and
\documentclass{amsart}
\begin{document}
\begin{equation*}
[1]X_{n}
\end{equation*}
\end{document}
I had only a few such examples and was able to get around them by just commenting out the offending code, but it would be nice to know if there are any rules of thumb to avoid having to worry about it in the first place, like Andrew's helpful comment about Perl and line breaks.
latexdiffstill maintained by its author? The latest version is from over 5 years ago... – YuppieNetworking May 20 '11 at 08:36